JBoss Community

Re: jbpm 5.2 support for XOR gateway and complex gateway.

created by Mauricio Salatino in jBPM - View the full discussion

if you want to return true, just do

return true;

and not return result = true;

If you want to assign the variable result, it must be defined in your process as a process variable and then remove the

return.. because "return result = true" will return always true as the result of the asignation. Unless you want to return the evaluation of the variable with:

return result == true;

Cheers

Reply to this message by going to Community

Start a new discussion in jBPM at Community