AnsweredAssumed Answered

End Event ExecutionListener DB Flush Question

Question asked by gokceng1 on Apr 11, 2013
Latest reply on Sep 2, 2013 by trademak
Hello,
I've added a custom parse handler for end events(none and error end) to some process definitions. One of them has only 1 service task. The problem arises here. It works like that:

1-While parsing end event it adds an execution listener with ExecutionListener.EVENTNAME_END.
2-This execution listener can call 2 methods according to end event's behavior(none or error)
3-These methods send some process variable to integration channels.
4- These channels process, enrich etc and come up with a result. But this result may need some other variables from process instance.

What a surprise! I have nothing about this process instance in database :D

What can I do to get notified only after the process ends really? I mean I want to be informed about ending of a process after it completely became history. Is this possible?

Note: I've tried same thing with ProcessParseHandler and ExecutionListener.EVENTNAME_END but it also doesn't write anything to db until execution listener ends.

Outcomes