Search code examples
bpmncamundacamunda-modeler

How to check using expression if process variable is exist in camunda workflow?


I want to check at exclusive gateway if processInstance exist.I can check if the value of processInstance is set to null or not.


Solution

  • I found a way to check in expression like below

    ${execution.getVariable('xyz') == null}

    execution.getVariable() method works both in service task and expression as well.