Question: How to link a Java-class to end-point of all tasks in 4.3?
Reason: I would like to use own history-activity to track that task has been finished.
I see two ways:
1. Add events to each process tasks. Disadvantage is user should not forget to add the same event for newly added tasks.
2. Use own implementation of HistorySession and analaze events TaskComplete. Disadvantage is unknown task which fired this event as far TaskComplete does not store Task instance.
Could you suggest something?
At this moment HistorySession Chain is the only solution for your requirement.
And you are right, there is no way to get task information from TaskComplete. I think you could open an issue for this scenario.
Now, you have to use reflect to get the execution from TaskComplete, then you could get related task information