cancel
Showing results for 
Search instead for 
Did you mean: 

How to get variable's name and value from condition expression?

xuemzhan
Champ in-the-making
Champ in-the-making
Hi Export(s):

A process instance is on a UserTask A, and there is a exclusive gateway GW followed A, and the two diverge ways to UserTasks B and C. There is a condition expression ${isDepartment == 'true'} to decide which UserTask (B or C) will be executed in next step.

The current status is the system knows UserTasks A,B,C. When a customer choose UserTask B, system will get a condition expression ${isDepartment == 'true'}  from path A->GW->B. The condition expression is blank to system. System needs to resolver expression and get the variable's name and its value for preparing completing UserTask A. So my question is how to get variable name 'isDepartment' and its value from condition expression like ${isDepartment == 'true'} ? 


Thanks,
Xuemin
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
I'm not sure if I'm following your question … you want to get the value of that variable? What about execution.getVariable('isDepartment') (which works in the expression)