protected Email createEmail(String text, String html) { if (html != null) { return createHtmlEmail(text, html); } else if (text != null) { return createTextOnlyEmail(text); } else { throw LOG.emailFormatException(); } }
@Override public void execute(ActivityExecution execution) throws Exception { int nrOfInstances = resolveNrOfInstances(execution); if (nrOfInstances == 0) { leave(execution); } else if (nrOfInstances < 0) { throw LOG.invalidAmountException("instances", nrOfInstances); } else { createInstances(execution, nrOfInstances); } }
@Override public void destroyInnerInstance(ActivityExecution scopeExecution) { removeLoopVariable(scopeExecution, LOOP_COUNTER); int nrOfActiveInstances = getLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES); setLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES, nrOfActiveInstances - 1); }
protected EscalationEventDefinition findMatchingEscalationEventDefinition(List<EscalationEventDefinition> escalationEventDefinitions) { for (EscalationEventDefinition escalationEventDefinition : escalationEventDefinitions) { if (isMatchingEscalationCode(escalationEventDefinition) && !isReThrowingEscalationEventSubprocess(escalationEventDefinition)) { return escalationEventDefinition; } } return null; }
public Void call() throws Exception { signal(execution, signalName, signalData); return null; } }, targetProcessApplication, new InvocationContext(execution));
@Override public Object call() throws Exception { return resolveDelegateClass(execution); } }, targetProcessApplication, new InvocationContext(execution));
public void missingBoundaryCatchEvent(String executionId, String errorCode) { logInfo( "001", "Execution with id '{}' throws an error event with errorCode '{}', but no catching boundary event was defined. " + "Execution is ended (none end event semantics).", executionId, errorCode ); }
/** * Overrides the propagateBpmnError method to made it public. * Is used to propagate the bpmn error from an external task. * @param error the error which should be propagated * @param execution the current activity execution * @throws Exception throwsn an exception if no handler was found */ @Override public void propagateBpmnError(BpmnError error, ActivityExecution execution) throws Exception { super.propagateBpmnError(error, execution); }
@Override public void execute(ActivityExecution execution) throws Exception { // a link event does not behave as a wait state leave(execution); }
@Override public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception { leave(execution); } }
@Override public void execute(final ActivityExecution execution) throws Exception { this.executeWithErrorPropagation(execution, new Callable<Void>() { @Override public Void call() throws Exception { getActivityBehaviorInstance(execution).execute(execution); return null; } }); }
public void noActivityActivation(String activityId, int joinedExecutions, int availableExecution) { logDebug( "031", "Element with id '{}' does not activate. Joined '{}' of '{}' available executions.", activityId, joinedExecutions, availableExecution ); }
/** * Performs the default outgoing BPMN 2.0 behavior, which is having parallel * paths of executions for the outgoing sequence flow. * * More precisely: every sequence flow that has a condition which evaluates to * true (or which doesn't have a condition), is selected for continuation of * the process instance. If multiple sequencer flow are selected, multiple, * parallel paths of executions are created. */ public void performDefaultOutgoingBehavior(ActivityExecution activityExceution) { performOutgoingBehavior(activityExceution, true, false, null); }
@Override public void execute(ActivityExecution execution) throws Exception { int nrOfInstances = resolveNrOfInstances(execution); if (nrOfInstances == 0) { leave(execution); } else if (nrOfInstances < 0) { throw LOG.invalidAmountException("instances", nrOfInstances); } else { createInstances(execution, nrOfInstances); } }
protected Email createEmail(String text, String html) { if (html != null) { return createHtmlEmail(text, html); } else if (text != null) { return createTextOnlyEmail(text); } else { throw LOG.emailFormatException(); } }
@Override public void destroyInnerInstance(ActivityExecution scopeExecution) { removeLoopVariable(scopeExecution, LOOP_COUNTER); int nrOfActiveInstances = getLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES); setLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES, nrOfActiveInstances - 1); }
public Void call() throws Exception { signal(execution, signalName, signalData); return null; } }, targetProcessApplication, new InvocationContext(execution));
@Override public Object call() throws Exception { return resolveDelegateClass(execution); } }, targetProcessApplication, new InvocationContext(execution));
public void missingBoundaryCatchEvent(String executionId, String errorCode) { logInfo( "001", "Execution with id '{}' throws an error event with errorCode '{}', but no catching boundary event was defined. " + "Execution is ended (none end event semantics).", executionId, errorCode ); }