cancel
Showing results for 
Search instead for 
Did you mean: 

form value within a sequence flow condition

lsmall
Champ in-the-making
Champ in-the-making
I am new to Activiti and I hope this question is not too basic.

I have defined 2 transitions (Approve/Reject) from a user task (Review Order). I added a single user action form property of type string with 2 values (Approve/Reject). How do I retrieve the user's form value when he competes the task (I am using the Explorer demo client)? Can I specify a sequence flow condition that references the process variable value for this form property? Or do I need to specify an expression for the task form property?
2 REPLIES 2

lsmall
Champ in-the-making
Champ in-the-making
I guess what I am asking is how do I reference a process variable within a sequence flow condition? Or do I have to retrieve the values programmatically and extend Explorer?

lsmall
Champ in-the-making
Champ in-the-making
I figured it out. The form value maps to a process variable with the same name as the id value (UserAction) in Designer, so was able to reference it as follows:

${UserAction == "Approve"}
${UserAction == "Reject"}

So without the condition, all transitions are taken. With the condition, only the one with the value submitted with the form.