Can flow designer be used to make TASK variables read only??? ???

G24
Kilo Sage

This may be an easy question...

 

I generally use UI Policies and UI Policy Actions to make Questions/Variables Visible or Read Only or Mandatory.  Or the opposite.

 

But in some cases I want to do this CONDITIONALLY, based on the specific Catalog Task that is generated in my Flow., since not all questions/variables apply to all Tasks.

 

But of course the Catalog Item Configuration forms have no knowledge of anything involving individual catalog tasks, because the tasks are generated as a part of the Flow.  So there is no way for me to add a Condition to a UI Policy that says "Apply to Tasks" and "If the task is Task XYZ" specifically.  Right?

 

So right now I'm using a magical Client Script on the sc_task table to look for the specific catalog item and the specific task name, and if found, then make some questions/variables Read Only using g_form.setReadOnly().  Is that what I'm supposed to be doing?

 

Or is it possible to use the Flow Designer somehow to specify which task level questions/variables should be read only?  Please advise.  Thanks.

2 REPLIES 2

Carlos Loza
Tera Expert

Hi,

 

I've tried to do the same thing in the past but ended up doing a custom script like you

it seems we don't have much control on the variable editor from the flow/workflow other than just selecting which variables to display there

 

and it kind of makes sense in the way that if we could, we'd have to configure the rules in two places, the catalog item configuration and the workflow

@Carlos Loza I guess.  It just seems like it would be very convenient if, in the Flow, you could say "This task uses these variables, AND BY THE WAY, make these 4 Read Only, and keep the other 3 Read/Write."

 

I just don't like it when there is logic all over the place in several different areas.  Oh well.  Thanks.