I’m having a bit of trouble with a switch activity. So I want the workflow to follow a different path when a specific Error message occurs. So I check for the error message with an element exists (Variable_element).
Then I add a Switch activity and set the typeargument to boolean.
For the condition i’ve used variable_element =true, variable_element=false, variable_element.equals(true) and the false equivalent as well.
It just keeps following the default path…
Does someone see what i did wrong?
If you’re using a boolean for the Switch activity from the Element Exists activity, the argument should be the boolean from the Element Exists activity, and the cases should only be True and False. You won’t need to have variable_element=true in your cases. Just True will be sufficient.
Instead of directly using the Element_Variable in the Switch - You can take an additional Boolean variable say ConditionCheck and assign it value True/ False based on Element_Variable.
Now We can use the Condition_Check Variable in Switch - This will help you to Debug Easily.