@Override public Incident handleIncident(IncidentContext context, String message) { return IncidentEntity.createAndInsertIncident(incidentType, context, message); }
public Incident createIncident(IncidentContext context, String message) { IncidentEntity newIncident = IncidentEntity.createAndInsertIncident(type, context, message); if(context.getExecutionId() != null) { newIncident.createRecursiveIncidents(); } return newIncident; }
public Incident createIncident(IncidentContext context, String message) { IncidentEntity newIncident = IncidentEntity.createAndInsertIncident(type, context, message); if(context.getExecutionId() != null) { newIncident.createRecursiveIncidents(); } return newIncident; }
public Void execute(CommandContext commandContext) { IncidentContext incidentContext = new IncidentContext(); incidentContext.setExecutionId(execution.getId()); IncidentEntity.createAndInsertIncident("foo", incidentContext, null); return null; } });
public Void execute(CommandContext commandContext) { IncidentContext incidentContext = new IncidentContext(); incidentContext.setExecutionId(execution.getId()); IncidentEntity.createAndInsertIncident("foo", incidentContext, null); return null; } });
@Override public Incident handleIncident(IncidentContext context, String message) { return IncidentEntity.createAndInsertIncident(incidentType, context, message); }
public Incident createIncident(IncidentContext context, String message) { IncidentEntity newIncident = IncidentEntity.createAndInsertIncident(type, context, message); if(context.getExecutionId() != null) { newIncident.createRecursiveIncidents(); } return newIncident; }
public Void execute(CommandContext commandContext) { IncidentContext incidentContext = new IncidentContext(); incidentContext.setExecutionId(execution.getId()); IncidentEntity.createAndInsertIncident("foo", incidentContext, null); return null; } });
public Void execute(CommandContext commandContext) { IncidentContext incidentContext = new IncidentContext(); incidentContext.setExecutionId(execution.getId()); IncidentEntity.createAndInsertIncident("foo", incidentContext, null); return null; } });