Hello,
I want to notify my client, when a new process instance has been started. The notification triggers the client to make a pull request for the running process instances
(as result the list contains one additional process instance). I tried to start triggering the sequence from a ProcessEventListener.afterProcessStarted().
But the result doesn't contain the new process instance. Most probably because the transaction started by "startProcess" hasn't been commited yet.
Is there a hook, which is notified, when the new process instance has been commited? Perhaps a CDI observer?
Thx in advance.
Sometimes it helps to just write a few lines down. I achieved the behaviour by firing a CDI event from the process event listener
and anotating the listener with @Observes(during=TransactionPhase.AFTER_SUCCESS) .