use of org.camunda.bpm.engine.impl.bpmn.behavior.ExternalTaskActivityBehavior in project camunda-bpm-platform by camunda.
the class ExternalTaskEntity method bpmnError.
public void bpmnError(String errorCode) {
ensureActive();
ActivityExecution activityExecution = getExecution();
BpmnError bpmnError = new BpmnError(errorCode);
try {
ExternalTaskActivityBehavior behavior = ((ExternalTaskActivityBehavior) activityExecution.getActivity().getActivityBehavior());
behavior.propagateBpmnError(bpmnError, activityExecution);
} catch (Exception ex) {
throw ProcessEngineLogger.CMD_LOGGER.exceptionBpmnErrorPropagationFailed(errorCode, ex);
}
}
Aggregations