I have a question about the conditional events. Does it validate only simple expressions like count > 5 or flag === true or it can validate a complex expression as well ? something like given below
Remember that, if your JSON has a property chained to another, you will have to go through all the properties until you reach the one you want to capture the value… let’s say that the ABCCheckStart property is inside property 3 that is chained to property 2 and 1, you would have to do it like this:
Thanks @WilliamR.Alves for your detailed response. I will try your approach. I have one quick follow up question :
Can I use transient variables to trigger the conditional events ? Because I don’t want to save my variables used as flags in DB and contribute in increasing DB size.
You can use setVariableLocal() and getVariableLocal() to create and fetch transient variables that will only be valid in the instance scope and will not be persisted in the database.
I tried the BPMN provided by you but after running a instance, I see that it created a variable in ACT_RU_VARIABLE table so the local variable is getting saved in the DB which is not needed in my requirement.
The ACT_RU_VARIABLE table saves the variables temporarily, as it is an RU (Runtime) table, that is, at runtime.
While this variable has its active lifecycle in the instance, it must appear in the database.
As soon as the instance leaves this scope where the variable was declared, or when the instance is finalized, the variable must be “deleted” from the table.
Hope I helped
If I can help with anything else, I’m available.