User Task with Multi Sequential Task - Condition (if .. else) in Expression of Task Listener on complete event

I have bpmn User Task with Sequential Multi Instance. I have 2-3 users defined in “Collection” for Multi Instance. I want post completion of all users task, Task listener with Event Type “complete” to publish data in database. How to evaluate whether all users (2-3) completed task ? Any condition (if else) supports in Expression ?

image

Hi, you probably need the Java class task listener. You may analyze nrOfCompletedInstances and nrOfInstances variable values there. See Flowable docs for details.