Script for XOR gateway with 3 outputs.

Hi,

I have a (human) task in my BPMN where one of three options need to be selected on a form. I have used an XOR gate in the BPMN connecting the input to the outputs. In the forms I am using radio buttons to enable the selection of one of the three options, and have defined the returned key as 0, 1, 2. 

How can I put this is in the script if the individual flows of the outputs of my XOR gateway.

Hi Harsh,

you just have to add a pool variable to store your 0,1,2 return option, filled by a contract data value and use this variable value to define your gateway condition