How does execution listener behave on a multi instance task

Hello dear camunda people,

I Have a workflow with a multi insance service task and want to set an ExecutionListener on start event of it.
The question is that as I see there is no difference in the DelegateExecution instance that is passed to notify method, in multiple calls. how can I differentiate between multiple notify events?

thanks,
sincerely

Hi @mijalil,

there exists several variables that keep track about the state of a multi instance task [1].

Cheers,
Tassilo

[1] https://docs.camunda.org/manual/7.10/reference/bpmn20/tasks/task-markers/

Hi @tasso94,
yes, I know loop counter and other mentioned variables. so to differentiate, the only solution is to read those variables. OK
thank you