if (executions == null) {
executions = 0;
}
executions++;
if (executionsBeforeError == null || executionsBeforeError < executions) {
throw new BpmnError("23", "This is a business fault, which can be caught by a BPMN Error Event.");
} else {
execution.setVariable("executions", executions);
}
}