cancel
Showing results for 
Search instead for 
Did you mean: 

check if a variable is null or not, on sequence flows

viravira
Champ in-the-making
Champ in-the-making
On a sequenceFlow, I want to check a condition which may include a variable that may not be defined yet in process instance.
so if it's not defined, I dont want to get ActivitiException of "the variable is not defined", but want the flow to proceed.

I wrote my condition like this:

${ A == null || A.a >= B.b }

then when A is null (not defined yet) I cant proceed 😕

what should I do?
1 REPLY 1

trademak
Star Contributor
Star Contributor
That's not possible. You would need to add some Java logic beforehand to check if the variable is defined and set the outcome in the process context so the sequence flow can evaluate it.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.