Custom Incident Configuration in Process Engine Configuration

182 views
Skip to first unread message

Ritesh Patel

unread,
Jan 14, 2016, 9:41:20 AM1/14/16
to camunda-...@googlegroups.com

Hi,

 

I want to implement the Custom Incident Handler.

 

I have written the Custom Handler class by extending the DefaultIncidentHandler.

 

Now, I need to add this into ProcessEngineConfiguration.

On Camunda documentations it says as bellow.

 

The handleIncident method is called when a new incident is created. The resolveIncident method is called when an incident is resolved. If you want to provide a custom incident handler implementation you can replace one or multiple incident handlers using the following method:

org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.setCustomIncidentHandlers(List<IncidentHandler>)

 

But, where to write this code?

 

Can I configure custom incident handler from process.xml?



--
Ritesh Patel.

Ingo Richtsmeier

unread,
Jan 14, 2016, 9:57:25 AM1/14/16
to camunda BPM users, rites...@gmail.com
Hi Ritesh,

you can add your custom incident handler in a process engine plugin.


Kind Regards,

Ingo
Reply all
Reply to author
Forward
0 new messages