I want to check at exclusive gateway if processInstance exist.I can check if the value of processInstance is set to null or not.
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.