I need to execute some code on an TaskListener that depends on the path used by the process to reach the task. In other words, i need to know the entire trace the current token has done until the moment.
If it's not possible, could i add an listerner in a sequence flow ?
Hi, System.out.println(((ExecutionListenerExecution)de).getEventSource().getId()) returns id defined in XML. Is there a way to return Previous activity's instance ID ( ID generated at runtime ) in current Activity's execution.
Thanks Martin, Do u mean I should pickup last activity of that process using HistoryService ? What if I am using Asynchronous Activities ? Then It won't be reliable right ?
re: previous activiti Id: all activities can be stored in the event log. You can extend logging as you wish. In the history service you can use an ordering to sort activities. You can take last, previous…. according to ordering.