Hi Guys,
I have some queries regarding custom incident creation, lets take an example.
I have one service task which I have marked as Async before and after in modeler and in code
public class IncidentTest implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
try{
throw new Exception("throwing from Incident Test Task");
}catch(Exception e){
HFEngineFacadeInstance.facade().runTimeService().createIncident("SERVICE TASK", execution.getId(),"IncidentTest",e.getMessage() );
throw new Exception();
}
}
}
Now I want to create custom incident when any failure in execution but instead it is creating incidentType as failedJob by default in incident table, how and when I should create custom incidents