Search in sources :

Example 1 with HistoricExternalTaskLogEntity

use of org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity in project camunda-bpm-platform by camunda.

the class GetHistoricExternalTaskLogErrorDetailsCmd method execute.

public String execute(CommandContext commandContext) {
    ensureNotNull("historicExternalTaskLogId", historicExternalTaskLogId);
    HistoricExternalTaskLogEntity event = commandContext.getHistoricExternalTaskLogManager().findHistoricExternalTaskLogById(historicExternalTaskLogId);
    ensureNotNull("No historic external task log found with id " + historicExternalTaskLogId, "historicExternalTaskLog", event);
    for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
        checker.checkReadHistoricExternalTaskLog(event);
    }
    return event.getErrorDetails();
}
Also used : HistoricExternalTaskLogEntity(org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity) CommandChecker(org.camunda.bpm.engine.impl.cfg.CommandChecker)

Aggregations

CommandChecker (org.camunda.bpm.engine.impl.cfg.CommandChecker)1 HistoricExternalTaskLogEntity (org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity)1