Hi guys,
I have problems with the implementation of the Java Delegate for the following scenario. The attached process excerpt shows a multi-instance task which is accompanied by a corresponding compensation task.
Now the execution of the compensation task works fine: It executes that often, how often the multi-instance task succeeded. (say, we have 10 interations for the multi-instance task, and it fails at the 4th iteration, then the compensation task executes 3 times.
The problem:
In the delegate implementation of the compensation task, there is no connection to the correlating instance of the multi-instance task.
When I try to get one of the following process variables, they are all NULL:
My first thinking was to iterate over the original collection (e.g. 10 items) and pick out the relevant items by index. But there is no access to the “loopCounter” variable..
Thanks in advance.
Thomas
