Hi folks,
I am trying to implement a custom event handler which I will then supply to CompositeDbHistoryEventHandler to enable sending some information and email at end of process instance.
I plan to use “if (historyEvent.isEventOfType(HistoryEventTypes.PROCESS_INSTANCE_END)” to ensure its the process instance end event.
I need to use some process variable values to determine the content of email to be sent. The only variable I have access to inside the public void handleEvent(HistoryEvent historyEvent) { } funtion is the historyEvent. I am wondering if there is a way to get processVariable information by using this variable. Basically how do I get the DelegateExecution instance for the instance in which this event occurred?
Thanks,
Akhil.