How to check two conditions in exclusive or gateway

Hi

i want to check two conditions on the same exclusive or gateway path how cna i do that ?

for example
i am checking A & B is true then go ahead
i dont want to use two exclusive gateways one after the other but rather do the check at the same time
Vish

can i do this ?
#{(A==2)&(B==2)}

Hi @vishucamunda,

you can have a look at the original documentation here: https://docs.camunda.org/manual/7.11/user-guide/process-engine/expression-language/, which links to http://docs.oracle.com/javaee/5/tutorial/doc/bnahq.html, and https://docs.oracle.com/javaee/5/tutorial/doc/bnahq.html#bnaik shows the operators.

Either #{(A==2) and (B==2)} or #{(A==2)&&(B==2)} are valid expressions.

Hope this helps, Ingo

it works ingo thanks

whats the right way to pass the variables in the gateway path

is it #(someVariable) or $(someVariable)

Hi @vishucamunda,

you can use either ${someVariable} or #{someVariable}.

Both, $ or # are allowed, but you have to use curly brackets.

Hope this helps, Ingo

hi ingo

i am using the same way but for some reason it works for other decision gateway but when i use the same condition for decisiongateway-2 in the same flow it doesnt work
#{(notificationNeeded) and (applicationDeclined)}

where am i doing it wrong can you please correct me

vish