Hi,
I implemented an execution listener which is configured for service and user tasks. I want to notify some component about each task that has been started and completed. Beside the activity id, this call should include a unique id of the activity instance so that the callee can distinguish between the activity instances (e.g. if they have been executed in a loop). From the DelegateExecution interface which is being passed by activiti, I cannot find this information. Am I missing something here?
Only by sending a HistoricActivityInstanceQuery to the HistoryService, I´m somehow able to get the information. However, I don´t know if it is reliable to send such a query within an execution listener.
Any hints?
Best regards,
Stefan