Skip to main content

I'm in a situation where I am looking to use the Zena Flow construct, i.e.

 

I've never used it before and am trying to figure out how it works.

The scenario is that in a previous task, I procure a variable, [TASK.VARIABLE.gl_parse] which is passed on to subsequent tasks.  I then want to call certain tasks that call certain APIs in the subsequent tasks, depending on the value in [TASK.VARIABLE.gl_parse].

I believe the Flow Construct would be the route to go here.  But what would the coding look like?  I gather it is in the Value section of the Flow Construct:

But how would it work here?  I'm thinking check the value of [TASK.VARIABLE.gl_parse], and then would need to call the corresponding API task.  But how would that work exactly?  Assume there are REST Web Services defined, and they are to be called depending on the value stored in [TASK.VARIABLE.gl_parse].






------------------------------
Scott Lackey
Rocket Software Forum Member
------------------------------

I'm in a situation where I am looking to use the Zena Flow construct, i.e.

 

I've never used it before and am trying to figure out how it works.

The scenario is that in a previous task, I procure a variable, [TASK.VARIABLE.gl_parse] which is passed on to subsequent tasks.  I then want to call certain tasks that call certain APIs in the subsequent tasks, depending on the value in [TASK.VARIABLE.gl_parse].

I believe the Flow Construct would be the route to go here.  But what would the coding look like?  I gather it is in the Value section of the Flow Construct:

But how would it work here?  I'm thinking check the value of [TASK.VARIABLE.gl_parse], and then would need to call the corresponding API task.  But how would that work exactly?  Assume there are REST Web Services defined, and they are to be called depending on the value stored in [TASK.VARIABLE.gl_parse].






------------------------------
Scott Lackey
Rocket Software Forum Member
------------------------------

Hi Scott,

click on the insert variable button left of the pencil and select process items from the drop down

click the magnifying glass on in the popup, and click in the next popup the magnifying glass again 

select the process item (task) that contains the variable and click ok next in the token field click the inset variables button and select variables

click ok and in the value field you should see the fully qualified variable name

next in the linker from the flow to the tasks you set the operator and the value for which the condition is true to select the path to the task

 in the operator field the operator like equals greater than etc.  in the values filed the value(s) the display field can be used to clarify under which condition the linker is true 

given that you want to parse parse the value to other tasks you may consider to use a data mapper in front of the flow to populate a process variable f.i. PV_gl_parse with the value of the tasks variable gl_parse which you can use in the flow and the tasks after the flow. you can also use the process items method when assigning  the value to the 'downstream' tasks.

i hope this clarifies the use of the flow and variables in general

 



------------------------------
Frie Van Gils
Principal Sales Engineer
Rocket Internal - All Brands
Geertruidenberg NL
------------------------------

Hi Scott,

click on the insert variable button left of the pencil and select process items from the drop down

click the magnifying glass on in the popup, and click in the next popup the magnifying glass again 

select the process item (task) that contains the variable and click ok next in the token field click the inset variables button and select variables

click ok and in the value field you should see the fully qualified variable name

next in the linker from the flow to the tasks you set the operator and the value for which the condition is true to select the path to the task

 in the operator field the operator like equals greater than etc.  in the values filed the value(s) the display field can be used to clarify under which condition the linker is true 

given that you want to parse parse the value to other tasks you may consider to use a data mapper in front of the flow to populate a process variable f.i. PV_gl_parse with the value of the tasks variable gl_parse which you can use in the flow and the tasks after the flow. you can also use the process items method when assigning  the value to the 'downstream' tasks.

i hope this clarifies the use of the flow and variables in general

 



------------------------------
Frie Van Gils
Principal Sales Engineer
Rocket Internal - All Brands
Geertruidenberg NL
------------------------------

That worked great.  Thanks for the info!



------------------------------
Scott Lackey
Rocket Software Forum Member
------------------------------