cancel
Showing results for 
Search instead for 
Did you mean: 

Registering a custom parse handler at runtime.

shishirg
Champ in-the-making
Champ in-the-making
Hi,

Currently I can configure the parse handlers in the process engine and it becomes universal for all deployments.
Is there a way I can register a custom parse handler with the engine, say after engine has started and while deploying a new bpmn20.xml, so that it just handles that specific deployment?

Thanks
Shishir


1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
As a thrid party, you only know when a specific deployment is happening when you have parsehandlers in place at the moment it's parsed. No way to hook in "before" parsing. What about making your parsehandler smarter, and ignore processes that you're not interested in?

Or make a single (always added) parse handler that is called for each deployment and, if needed, can execute additional logic, based on an internal list of 'dynamic handlers' that can be updated before passing on control to those classes? (kind of a dynamic delegation pattern)