AnsweredAssumed Answered

Flow & Gateway variable logic

Question asked by tomoconnell on Dec 9, 2013

Two query's here.

Firstly, should a sequence flow condition expression be readily able to read a variable set in a script task earlier in the workflow? Do I need to reference this somehow or are all the variables set within different sections of the workflow sharing the same namespace? And if so would the following conditional statement within the sequence flow be enough to progress onto the next task?
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${exampleVarFromPreviousTask = "ExampleExpectedValue}]]></conditionExpression>

Second, is a gateway required at every point without multiple sequence flow possibilities?

What I'm trying to do is have a workflow that once started goes to a script task that checks a property of a document in the workflow package.
Depending on the value of the property, the workflow will flow from the script task to one of three possible user tasks.

Thanks for any help.