@@ -0,0 +1,722 @@
+package org.example.incidents_as_tasks;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin;%0Aimport org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;%0Aimport org.camunda.bpm.engine.impl.incident.IncidentHandler;%0A%0Apublic class IncidentAsTaskProcessEnginePlugin extends AbstractProcessEnginePlugin %7B%0A%0A  @Override%0A  public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) %7B%0A    List%3CIncidentHandler%3E customIncidentHandlers = new ArrayList%3CIncidentHandler%3E();%0A    customIncidentHandlers.add(new UserTaskFailedJobIncidentHandler());%0A    processEngineConfiguration.setCustomIncidentHandlers(customIncidentHandlers );%0A  %7D%0A%0A%7D%0A

Add process engine plugin