Hi guys,
It is necessary for me to create a listener which is being run each time the engine start a process. The problem is: can I use ExecutionListerner interface? And is it safe to run some database operations inside?
Thank you.
Cheers.
Hi guys,
It is necessary for me to create a listener which is being run each time the engine start a process. The problem is: can I use ExecutionListerner interface? And is it safe to run some database operations inside?
Thank you.
Cheers.
anyone?
Hi,
Sounds like a reasonable approach. Via a BPMN parse listener, you can add your execution listener to every deployed process definition.
If this requires a separate data source and your database update is not idempotent, consider using XA transactions for transactional atomicity of engine and custom updates. I recommend to test the failure cases to make sure you don’t end up with unwanted and inconsistent state.
Cheers,
Thorben