Not able to identify outgoing sequence flow of gateway

Hello,
I have created a model which has custom tasks and i’m setting the variable within the java delegate and trying to use the same variable on gateway conditions.

setting the variable as follows:
execution.setVariable(“isLeavesAvailable”, “yes”);

when i’m trying to start process,getting following exception

org.camunda.bpm.engine.ProcessEngineException: ENGINE-02004 No outgoing sequence flow for the element with id ‘hasLeaves’ could be selected for continuing the process.

Can anyone please help me with this!!!

TestCustomProcess.bpmn (5.4 KB)

Thanks,
Sagari

just set default flow for one of the condition. The condition (Yes or No) can not be found cuz you are setting isLeavesAvailable in the output param to the value: “isLeavesAvailable”

1 Like

Please try update ${isLeavesAvailable == ‘no’} to #{isLeavesAvailable == ‘no’} for outgoing value