use of org.camunda.bpm.engine.impl.persistence.entity.ExternalTaskEntity in project camunda-bpm-platform by camunda.
the class ExternalTaskCmd method execute.
@Override
public Void execute(CommandContext commandContext) {
EnsureUtil.ensureNotNull("externalTaskId", externalTaskId);
validateInput();
ExternalTaskEntity externalTask = commandContext.getExternalTaskManager().findExternalTaskById(externalTaskId);
ensureNotNull(NotFoundException.class, "Cannot find external task with id " + externalTaskId, "externalTask", externalTask);
for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkUpdateProcessInstanceById(externalTask.getProcessInstanceId());
}
execute(externalTask);
return null;
}
Aggregations