code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public void setCollectionElementVariable(String collectionElementVariable) { this.collectionElementVariable = collectionElementVariable; }
Get the inner activity of the multi instance execution. @param execution of multi instance activity @return inner activity
setCollectionElementVariable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/MultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/MultiInstanceActivityBehavior.java
Apache-2.0
public void execute(ActivityExecution execution) throws Exception { // Join PvmActivity activity = execution.getActivity(); List<PvmTransition> outgoingTransitions = execution.getActivity().getOutgoingTransitions(); execution.inactivate(); lockConcurrentRoot(execution); List<ActivityExecution...
Implementation of the Parallel Gateway/AND gateway as definined in the BPMN 2.0 specification. The Parallel Gateway can be used for splitting a path of execution into multiple paths of executions (AND-split/fork behavior), one for every outgoing sequence flow. The Parallel Gateway can also be used for merging or join...
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ParallelGatewayActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ParallelGatewayActivityBehavior.java
Apache-2.0
@Override public void performExecution(ActivityExecution execution) throws Exception { // Do nothing: waitstate behavior }
A receive task is a wait state that waits for the receival of some message. Currently, the only message that is supported is the external trigger, given by calling the {@link RuntimeService#signal(String)} operation. @author Joram Barrez
performExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ReceiveTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ReceiveTaskActivityBehavior.java
Apache-2.0
@Override public void performExecution(final ActivityExecution execution) throws Exception { executeWithErrorPropagation(execution, new Callable<Void>() { @Override public Void call() throws Exception { ScriptInvocation invocation = new ScriptInvocation(script, execution); Context.getP...
<p> {@link ActivityBehavior} implementation of the BPMN 2.0 script task. </p> @author Joram Barrez @author Christian Stettler @author Falko Menge @author Daniel Meyer
performExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
Apache-2.0
@Override public Void call() throws Exception { ScriptInvocation invocation = new ScriptInvocation(script, execution); Context.getProcessEngineConfiguration().getDelegateInterceptor().handleInvocation(invocation); Object result = invocation.getInvocationResult(); if (result != null...
<p> {@link ActivityBehavior} implementation of the BPMN 2.0 script task. </p> @author Joram Barrez @author Christian Stettler @author Falko Menge @author Daniel Meyer
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
Apache-2.0
protected BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e) { if (e instanceof BpmnError) { return (BpmnError) e; } else if (e.getCause() == null) { return null; } return checkIfCauseOfExceptionIsBpmnError(e.getCause()); }
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
checkIfCauseOfExceptionIsBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
Apache-2.0
public ExecutableScript getScript() { return script; }
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
getScript
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ScriptTaskActivityBehavior.java
Apache-2.0
@Override protected void createInstances(ActivityExecution execution, int nrOfInstances) throws Exception { Collection<?> collection = evaluateCollection(execution); prepareScope(execution, nrOfInstances); setLoopVariable(execution, NUMBER_OF_ACTIVE_INSTANCES, 1); ActivityImpl innerActivity = getInne...
@author Daniel Meyer @author Thorben Lindhauer
createInstances
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
public void complete(ActivityExecution scopeExecution) { int loopCounter = getLoopVariable(scopeExecution, LOOP_COUNTER) + 1; int nrOfInstances = getLoopVariable(scopeExecution, NUMBER_OF_INSTANCES); int nrOfCompletedInstances = getLoopVariable(scopeExecution, NUMBER_OF_COMPLETED_INSTANCES) + 1; setLoop...
@author Daniel Meyer @author Thorben Lindhauer
complete
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
public void concurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) { // cannot happen }
@author Daniel Meyer @author Thorben Lindhauer
concurrentChildExecutionEnded
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
protected void prepareScope(ActivityExecution scopeExecution, int totalNumberOfInstances) { setLoopVariable(scopeExecution, NUMBER_OF_INSTANCES, totalNumberOfInstances); setLoopVariable(scopeExecution, NUMBER_OF_COMPLETED_INSTANCES, 0); }
@author Daniel Meyer @author Thorben Lindhauer
prepareScope
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
public List<ActivityExecution> initializeScope(ActivityExecution scopeExecution, int nrOfInstances) { if (nrOfInstances > 1) { LOG.unsupportedConcurrencyException(scopeExecution.toString(), this.getClass().getSimpleName()); } List<ActivityExecution> executions = new ArrayList<ActivityExecution>(); ...
@author Daniel Meyer @author Thorben Lindhauer
initializeScope
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
@Override public ActivityExecution createInnerInstance(ActivityExecution scopeExecution) { if (hasLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES) && getLoopVariable(scopeExecution, NUMBER_OF_ACTIVE_INSTANCES) > 0) { throw LOG.unsupportedConcurrencyException(scopeExecution.toString(), this.getClass...
@author Daniel Meyer @author Thorben Lindhauer
createInnerInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
@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); }
@author Daniel Meyer @author Thorben Lindhauer
destroyInnerInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SequentialMultiInstanceActivityBehavior.java
Apache-2.0
@Override public void signal(final ActivityExecution execution, final String signalName, final Object signalData) throws Exception { ProcessApplicationReference targetProcessApplication = ProcessApplicationContextUtil.getTargetProcessApplication((ExecutionEntity) execution); if(ProcessApplicationContextUtil.r...
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
signal
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
public Void call() throws Exception { signal(execution, signalName, signalData); return null; }
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
public void doSignal(final ActivityExecution execution, final String signalName, final Object signalData) throws Exception { Object delegate = expression.getValue(execution); applyFieldDeclaration(fieldDeclarations, delegate); final ActivityBehavior activityBehaviorInstance = getActivityBehaviorInstance(exe...
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
doSignal
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
@Override public Void call() throws Exception { ((SignallableActivityBehavior) activityBehaviorInstance).signal(execution, signalName, signalData); return null; }
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
@Override public void performExecution(final ActivityExecution execution) throws Exception { Callable<Void> callable = new Callable<Void>() { @Override public Void call() throws Exception { // Note: we can't cache the result of the expression, because the // execution can change: eg. de...
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
performExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
@Override public Void call() throws Exception { // Note: we can't cache the result of the expression, because the // execution can change: eg. delegateExpression='${mySpringBeanFactory.randomSpringBean()}' Object delegate = expression.getValue(execution); applyFieldDeclaration(fiel...
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution, Object delegateInstance) { if (delegateInstance instanceof ActivityBehavior) { return new CustomActivityBehavior((ActivityBehavior) delegateInstance); } else if (delegateInstance instanceof JavaDelegate) { return ne...
{@link ActivityBehavior} used when 'delegateExpression' is used for a serviceTask. @author Joram Barrez @author Josh Long @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
getActivityBehaviorInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskDelegateExpressionActivityBehavior.java
Apache-2.0
@Override public void performExecution(final ActivityExecution execution) throws Exception { executeWithErrorPropagation(execution, new Callable<Void>() { @Override public Void call() throws Exception { //getValue() can have side-effects, that's why we have to call it independently from the re...
ActivityBehavior that evaluates an expression when executed. Optionally, it sets the result of the expression as a variable on the execution. @author Tom Baeyens @author Christian Stettler @author Frederik Heremans @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
performExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskExpressionActivityBehavior.java
Apache-2.0
@Override public Void call() throws Exception { //getValue() can have side-effects, that's why we have to call it independently from the result variable Object value = expression.getValue(execution); if (resultVariable != null) { execution.setVariable(resultVariable, value); ...
ActivityBehavior that evaluates an expression when executed. Optionally, it sets the result of the expression as a variable on the execution. @author Tom Baeyens @author Christian Stettler @author Frederik Heremans @author Slawomir Wojtasiak (Patch for ACT-1159) @author Falko Menge
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskExpressionActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ServiceTaskExpressionActivityBehavior.java
Apache-2.0
@Override public void execute(ActivityExecution execution) throws Exception { PvmActivity activity = execution.getActivity(); PvmActivity initialActivity = activity.getProperties().get(BpmnProperties.INITIAL_ACTIVITY); ensureNotNull("No initial activity found for subprocess " + execution.getActivity().ge...
Implementation of the BPMN 2.0 subprocess (formally known as 'embedded' subprocess): a subprocess defined within another process definition. @author Joram Barrez
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
Apache-2.0
@Override public void concurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) { // join endedExecution.remove(); scopeExecution.tryPruneLastConcurrentChild(); scopeExecution.forceUpdate(); }
Implementation of the BPMN 2.0 subprocess (formally known as 'embedded' subprocess): a subprocess defined within another process definition. @author Joram Barrez
concurrentChildExecutionEnded
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
Apache-2.0
@Override public void complete(ActivityExecution scopeExecution) { leave(scopeExecution); }
Implementation of the BPMN 2.0 subprocess (formally known as 'embedded' subprocess): a subprocess defined within another process definition. @author Joram Barrez
complete
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
Apache-2.0
@Override public void doLeave(ActivityExecution execution) { CompensationUtil.createEventScopeExecution((ExecutionEntity) execution); super.doLeave(execution); }
Implementation of the BPMN 2.0 subprocess (formally known as 'embedded' subprocess): a subprocess defined within another process definition. @author Joram Barrez
doLeave
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/SubProcessActivityBehavior.java
Apache-2.0
protected void preExecution(ActivityExecution execution) throws Exception { activityInstanceId = execution.getActivityInstanceId(); }
The method which will be called before the execution is performed. @param execution the execution which is used during execution @throws Exception
preExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TaskActivityBehavior.java
Apache-2.0
@Override public void execute(ActivityExecution execution) throws Exception { performExecution(execution); }
The method which will be called after performing the execution. @param execution the execution @throws Exception
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TaskActivityBehavior.java
Apache-2.0
public void execute(ActivityExecution execution) throws Exception { // we are the last execution inside this scope: calling end() ends this scope. execution.end(true); }
<p>The BPMN terminate End Event.</p> <p>The start behavior of the terminate end event is {@link ActivityStartBehavior#INTERRUPT_FLOW_SCOPE}. as a result, the current scope will be interrupted (all concurrent executions cancelled) and this behavior is entered with the scope execution.</p> @author Daniel Meyer @author...
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TerminateEndEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/TerminateEndEventActivityBehavior.java
Apache-2.0
@Override public void execute(ActivityExecution execution) throws Exception { final PvmActivity currentActivity = execution.getActivity(); EscalationEventDefinition escalationEventDefinition = EscalationHandler.executeEscalation(execution, escalation.getEscalationCode()); if (escalationEventDefinition =...
The activity behavior for an intermediate throwing escalation event and an escalation end event. @author Philipp Ossler
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowEscalationEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowEscalationEventActivityBehavior.java
Apache-2.0
protected void leaveExecution(ActivityExecution execution, final PvmActivity currentActivity, EscalationEventDefinition escalationEventDefinition) { // execution tree could have been expanded by triggering a non-interrupting event ExecutionEntity replacingExecution = ((ExecutionEntity) execution).getReplacedBy...
The activity behavior for an intermediate throwing escalation event and an escalation end event. @author Philipp Ossler
leaveExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowEscalationEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowEscalationEventActivityBehavior.java
Apache-2.0
@Override public void execute(ActivityExecution execution) throws Exception { String businessKey = signalDefinition.getEventPayload().getBusinessKey(execution); VariableMap variableMap = signalDefinition.getEventPayload().getInputVariables(execution); String eventName = signalDefinition.resolveExpressio...
Defines activity behavior for signal end event and intermediate throw signal event. @author Daniel Meyer
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
Apache-2.0
protected List<EventSubscriptionEntity> findSignalEventSubscriptions(String signalName, String tenantId) { EventSubscriptionManager eventSubscriptionManager = Context.getCommandContext().getEventSubscriptionManager(); if (tenantId != null) { return eventSubscriptionManager .findSignalEventSubsc...
Defines activity behavior for signal end event and intermediate throw signal event. @author Daniel Meyer
findSignalEventSubscriptions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
Apache-2.0
protected boolean isActiveEventSubscription(EventSubscriptionEntity signalEventSubscriptionEntity) { return isStartEventSubscription(signalEventSubscriptionEntity) || isActiveIntermediateEventSubscription(signalEventSubscriptionEntity); }
Defines activity behavior for signal end event and intermediate throw signal event. @author Daniel Meyer
isActiveEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
Apache-2.0
protected boolean isStartEventSubscription(EventSubscriptionEntity signalEventSubscriptionEntity) { return signalEventSubscriptionEntity.getExecutionId() == null; }
Defines activity behavior for signal end event and intermediate throw signal event. @author Daniel Meyer
isStartEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
Apache-2.0
protected boolean isActiveIntermediateEventSubscription(EventSubscriptionEntity signalEventSubscriptionEntity) { ExecutionEntity execution = signalEventSubscriptionEntity.getExecution(); return execution != null && !execution.isEnded() && !execution.isCanceled(); }
Defines activity behavior for signal end event and intermediate throw signal event. @author Daniel Meyer
isActiveIntermediateEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/ThrowSignalEventActivityBehavior.java
Apache-2.0
@Override public void performExecution(ActivityExecution execution) throws Exception { TaskEntity task = new TaskEntity((ExecutionEntity) execution); task.insert(); // initialize task properties taskDecorator.decorate(task, execution); // fire lifecycle events after task is initialized task....
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
performExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
@Override public void migrateScope(ActivityExecution scopeExecution) { }
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
migrateScope
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
@Override public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) { ExecutionEntity execution = migratingInstance.resolveRepresentativeExecution(); for (TaskEntity task : execution.getTasks()) { migratingInstance.addMigratingDependen...
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
onParseMigratingInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
public TaskDefinition getTaskDefinition() { return taskDecorator.getTaskDefinition(); }
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
getTaskDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
public ExpressionManager getExpressionManager() { return taskDecorator.getExpressionManager(); }
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
getExpressionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
public TaskDecorator getTaskDecorator() { return taskDecorator; }
activity implementation for the user task. @author Joram Barrez @author Roman Smirnov
getTaskDecorator
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java
Apache-2.0
protected void adjustStartEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity oldLatestProcessDefinition) { removeObsoleteTimers(newLatestProcessDefinition); removeObsoleteEventSubscriptions(newLatestProcessDefinition, oldLatestProcessDefinition); addTimerDeclarat...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
adjustStartEventSubscriptions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
@SuppressWarnings("unchecked") public void addTimerDeclarations(ProcessDefinitionEntity processDefinition) { List<TimerDeclarationImpl> timerDeclarations = (List<TimerDeclarationImpl>) processDefinition.getProperty(BpmnParse.PROPERTYNAME_START_TIMER); if (timerDeclarations!=null) { for (TimerDeclaration...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addTimerDeclarations
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void removeObsoleteTimers(ProcessDefinitionEntity processDefinition) { List<JobEntity> jobsToDelete = getJobManager() .findJobsByConfiguration(TimerStartEventJobHandler.TYPE, processDefinition.getKey(), processDefinition.getTenantId()); for (JobEntity job :jobsToDelete) { new DeleteJobs...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
removeObsoleteTimers
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void removeObsoleteEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity latestProcessDefinition) { List<EventSubscriptionEntity> orphanSubscriptions = getOrphanSubscriptionEvents(newLatestProcessDefinition); if(!orphanSubscriptions.isEmpty()) { // remove orpha...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
removeObsoleteEventSubscriptions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected List<EventSubscriptionEntity> getPreviousSubscriptionEvents(ProcessDefinitionEntity latestProcessDefinition) { EventSubscriptionManager eventSubscriptionManager = getEventSubscriptionManager(); List<EventSubscriptionEntity> subscriptionsToDelete = new ArrayList<>(); List<EventSubscriptionEntity>...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getPreviousSubscriptionEvents
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected List<EventSubscriptionEntity> getOrphanSubscriptionEvents(ProcessDefinitionEntity processDefinition) { String configurationLike = processDefinition.getKey() + ":%:%"; return getEventSubscriptionManager().findStartEventSubscriptionsByConfigurationLike(configurationLike) .stream() .filte...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getOrphanSubscriptionEvents
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean isOrphan(EventSubscriptionEntity entity) { return entity.getConfiguration() != null && getProcessDefinitionManager().findLatestProcessDefinitionById(entity.getConfiguration()) == null; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
isOrphan
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public void addEventSubscriptions(ProcessDefinitionEntity processDefinition) { Map<String, EventSubscriptionDeclaration> eventDefinitions = processDefinition.getProperties().get(BpmnProperties.EVENT_SUBSCRIPTION_DECLARATIONS); for (EventSubscriptionDeclaration eventDefinition : eventDefinitions.values()) { ...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addEventSubscriptions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addEventSubscription(ProcessDefinitionEntity processDefinition, EventSubscriptionDeclaration eventDefinition) { if (eventDefinition.isStartEvent()) { String eventType = eventDefinition.getEventType(); if (eventType.equals(EventType.MESSAGE.name())) { addMessageStartEventSubscript...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addMessageStartEventSubscription(EventSubscriptionDeclaration messageEventDefinition, ProcessDefinitionEntity processDefinition) { String tenantId = processDefinition.getTenantId(); if(isSameMessageStartEventSubscriptionAlreadyPresent(messageEventDefinition, tenantId)) { throw LOG.message...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addMessageStartEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean isSameMessageStartEventSubscriptionAlreadyPresent(EventSubscriptionDeclaration eventSubscription, String tenantId) { // look for subscriptions for the same name in db: EventSubscriptionEntity subscriptionForSameMessageName =...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
isSameMessageStartEventSubscriptionAlreadyPresent
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean hasTenantId(EventSubscriptionEntity cachedSubscription, String tenantId) { if(tenantId == null) { return cachedSubscription.getTenantId() == null; } else { return tenantId.equals(cachedSubscription.getTenantId()); } }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
hasTenantId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean isSubscriptionOfDifferentTypeAsDeclaration(EventSubscriptionEntity subscriptionEntity, EventSubscriptionDeclaration declaration) { return (declaration.isStartEvent() && isSubscriptionForIntermediateEvent(subscriptionEntity)) || (!declaration.isStartEvent() && isSubscriptionForStartE...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
isSubscriptionOfDifferentTypeAsDeclaration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean isSubscriptionForStartEvent(EventSubscriptionEntity subscriptionEntity) { return subscriptionEntity.getExecutionId() == null; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
isSubscriptionForStartEvent
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected boolean isSubscriptionForIntermediateEvent(EventSubscriptionEntity subscriptionEntity) { return subscriptionEntity.getExecutionId() != null; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
isSubscriptionForIntermediateEvent
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addSignalStartEventSubscription(EventSubscriptionDeclaration signalEventDefinition, ProcessDefinitionEntity processDefinition) { EventSubscriptionEntity newSubscription = signalEventDefinition.createSubscriptionForStartEvent(processDefinition); newSubscription.insert(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addSignalStartEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addConditionalStartEventSubscription(EventSubscriptionDeclaration conditionalEventDefinition, ProcessDefinitionEntity processDefinition) { EventSubscriptionEntity newSubscription = conditionalEventDefinition.createSubscriptionForStartEvent(processDefinition); newSubscription.insert(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addConditionalStartEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addAuthorizationsFromIterator(Set<Expression> exprSet, ProcessDefinitionEntity processDefinition, ExprType exprType) { if (exprSet != null) { for (Expression expr : exprSet) { IdentityLinkEntity identityLink = new IdentityLinkEntity(); identityLink.setProcessDef(processDefinitio...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addAuthorizationsFromIterator
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected void addAuthorizations(ProcessDefinitionEntity processDefinition) { addAuthorizationsFromIterator(processDefinition.getCandidateStarterUserIdExpressions(), processDefinition, ExprType.USER); addAuthorizationsFromIterator(processDefinition.getCandidateStarterGroupIdExpressions(), processDefinition, Exp...
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
addAuthorizations
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected DbEntityManager getDbEntityManager() { return getCommandContext().getDbEntityManager(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getDbEntityManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected JobManager getJobManager() { return getCommandContext().getJobManager(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getJobManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected JobDefinitionManager getJobDefinitionManager() { return getCommandContext().getJobDefinitionManager(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getJobDefinitionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected EventSubscriptionManager getEventSubscriptionManager() { return getCommandContext().getEventSubscriptionManager(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getEventSubscriptionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
protected ProcessDefinitionManager getProcessDefinitionManager() { return getCommandContext().getProcessDefinitionManager(); }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getProcessDefinitionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public ExpressionManager getExpressionManager() { return expressionManager; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getExpressionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public void setExpressionManager(ExpressionManager expressionManager) { this.expressionManager = expressionManager; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
setExpressionManager
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public BpmnParser getBpmnParser() { return bpmnParser; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
getBpmnParser
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public void setBpmnParser(BpmnParser bpmnParser) { this.bpmnParser = bpmnParser; }
adjust all event subscriptions responsible to start process instances (timer start event, message start event). The default behavior is to remove the old subscriptions and add new ones for the new deployed process definitions.
setBpmnParser
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/deployer/BpmnDeployer.java
Apache-2.0
public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); }
This is a protected filed so you can extend that context with your own namespaces if necessary
getNamespaceURI
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
Apache-2.0
public String getPrefix(String namespaceURI) { return getKeyByValue(namespaceUris, namespaceURI); }
This is a protected filed so you can extend that context with your own namespaces if necessary
getPrefix
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
Apache-2.0
public Iterator<String> getPrefixes(String namespaceURI) { return getKeysByValue(namespaceUris, namespaceURI).iterator(); }
This is a protected filed so you can extend that context with your own namespaces if necessary
getPrefixes
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
Apache-2.0
private static <T, E> Set<T> getKeysByValue(Map<T, E> map, E value) { Set<T> keys = new HashSet<T>(); for (Entry<T, E> entry : map.entrySet()) { if (value.equals(entry.getValue())) { keys.add(entry.getKey()); } } return keys; }
This is a protected filed so you can extend that context with your own namespaces if necessary
getKeysByValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
Apache-2.0
private static <T, E> T getKeyByValue(Map<T, E> map, E value) { for (Entry<T, E> entry : map.entrySet()) { if (value.equals(entry.getValue())) { return entry.getKey(); } } return null; }
This is a protected filed so you can extend that context with your own namespaces if necessary
getKeyByValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/Bpmn20NamespaceContext.java
Apache-2.0
public DiagramLayout getProcessDiagramLayout(InputStream bpmnXmlStream, InputStream imageStream) { Document bpmnModel = parseXml(bpmnXmlStream); return getBpmnProcessDiagramLayout(bpmnModel, imageStream); }
Provides positions and dimensions of elements in a process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. Currently, it only supports BPMN 2.0 models. @param bpmnXmlStream BPMN 2.0 XML file @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats support...
getProcessDiagramLayout
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
public DiagramLayout getBpmnProcessDiagramLayout(Document bpmnModel, InputStream imageStream) { if (imageStream == null) { return null; } DiagramNode diagramBoundsXml = getDiagramBoundsFromBpmnDi(bpmnModel); DiagramNode diagramBoundsImage; if (isExportedFromAdonis50(bpmnModel)) { int off...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getBpmnProcessDiagramLayout
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected Document parseXml(InputStream bpmnXmlStream) { // Initiate DocumentBuilderFactory DocumentBuilderFactory factory = getConfiguredDocumentBuilderFactory(); DocumentBuilder builder; Document bpmnModel; try { // Get DocumentBuilder builder = factory.newDocumentBuilder(); // P...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
parseXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode getDiagramBoundsFromBpmnDi(Document bpmnModel) { Double minX = null; Double minY = null; Double maxX = null; Double maxY = null; // Node positions and dimensions NodeList setOfBounds = bpmnModel.getElementsByTagNameNS(BpmnParser.BPMN_DC_NS, "Bounds"); for (int i = 0;...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getDiagramBoundsFromBpmnDi
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream) { return getDiagramBoundsFromImage(imageStream, 0, 0); }
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getDiagramBoundsFromImage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode getDiagramBoundsFromImage(InputStream imageStream, int offsetTop, int offsetBottom) { BufferedImage image; try { image = ImageIO.read(imageStream); } catch (IOException e) { throw new ProcessEngineException("Error while reading process diagram image.", e); } Diagram...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getDiagramBoundsFromImage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode getDiagramBoundsFromImage(BufferedImage image, int offsetTop, int offsetBottom) { int width = image.getWidth(); int height = image.getHeight(); Map<Integer, Boolean> rowIsWhite = new TreeMap<Integer, Boolean>(); Map<Integer, Boolean> columnIsWhite = new TreeMap<Integer, Boolea...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getDiagramBoundsFromImage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected Map<String, DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel) { Map<String, DiagramNode> listOfBounds = new HashMap<String, DiagramNode>(); // iterate over all DI shapes NodeList shapes = bpmnModel.getElementsByTagNameNS(BpmnParser.BPMN_DI_NS, "BPMNShape"); for (int i = 0; i < shapes...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getElementBoundsFromBpmnDi
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode parseBounds(Element boundsElement) { DiagramNode bounds = new DiagramNode(); bounds.setX(Double.valueOf(boundsElement.getAttribute("x"))); bounds.setY(Double.valueOf(boundsElement.getAttribute("y"))); bounds.setWidth(Double.valueOf(boundsElement.getAttribute("width"))); bounds....
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
parseBounds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected Map<String, DiagramElement> transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, Map<String, DiagramNode> listOfBounds) { Map<String, DiagramElement> listOfBoundsForImage = new HashMap<String, DiagramElement>(); for (Entry<String, DiagramNode> bounds : listOfBounds.ent...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
transformBoundsForImage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DiagramNode transformBoundsForImage(DiagramNode diagramBoundsImage, DiagramNode diagramBoundsXml, DiagramNode elementBounds) { double scalingFactorX = diagramBoundsImage.getWidth() / diagramBoundsXml.getWidth(); double scalingFactorY = diagramBoundsImage.getWidth() / diagramBoundsXml.getWidth(); ...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
transformBoundsForImage
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected Map<String, DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel, Map<String, DiagramNode> elementBoundsFromBpmnDi) { if (isExportedFromAdonis50(bpmnModel)) { Map<String, DiagramNode> mapOfFixedBounds = new HashMap<String, DiagramNode>(); XPathFactory xPathFactory = XPathFacto...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
fixFlowNodePositionsIfModelFromAdonis
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected boolean isExportedFromAdonis50(Document bpmnModel) { return "ADONIS".equals(bpmnModel.getDocumentElement().getAttribute("exporter")) && "5.0".equals(bpmnModel.getDocumentElement().getAttribute("exporterVersion")); }
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
isExportedFromAdonis50
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
protected DocumentBuilderFactory getConfiguredDocumentBuilderFactory() { boolean isXxeParsingEnabled = Context.getProcessEngineConfiguration().isEnableXxeProcessing(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); // Configure XXE Processing try { for (Map.Entry<String, ...
Provides positions and dimensions of elements in a BPMN process diagram as provided by {@link RepositoryService#getProcessDiagram(String)}. @param bpmnModel BPMN 2.0 XML document @param imageStream BPMN 2.0 diagram in PNG format (JPEG and other formats supported by {@link ImageIO} may also w...
getConfiguredDocumentBuilderFactory
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/diagram/ProcessDiagramLayoutFactory.java
Apache-2.0
public static void propagateException(ActivityExecution execution, Exception ex) throws Exception { BpmnError bpmnError = checkIfCauseOfExceptionIsBpmnError(ex); if (bpmnError != null) { propagateBpmnError(bpmnError, execution); } else { propagateExceptionAsError(ex, execution); } }
Decides how to propagate the exception properly, e.g. as bpmn error or "normal" error. @param execution the current execution @param ex the exception to propagate @throws Exception if no error handler could be found
propagateException
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
protected static void propagateExceptionAsError(Exception exception, ActivityExecution execution) throws Exception { if (isProcessEngineExceptionWithoutCause(exception) || isTransactionNotActive()) { throw exception; } else { propagateError(null, exception.getMessage(),exception, execution); ...
Decides how to propagate the exception properly, e.g. as bpmn error or "normal" error. @param execution the current execution @param ex the exception to propagate @throws Exception if no error handler could be found
propagateExceptionAsError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
protected static boolean isTransactionNotActive() { return !Context.getCommandContext().getTransactionContext().isTransactionActive(); }
Decides how to propagate the exception properly, e.g. as bpmn error or "normal" error. @param execution the current execution @param ex the exception to propagate @throws Exception if no error handler could be found
isTransactionNotActive
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
protected static boolean isProcessEngineExceptionWithoutCause(Exception exception) { return exception instanceof ProcessEngineException && exception.getCause() == null; }
Decides how to propagate the exception properly, e.g. as bpmn error or "normal" error. @param execution the current execution @param ex the exception to propagate @throws Exception if no error handler could be found
isProcessEngineExceptionWithoutCause
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
protected static BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e) { if (e instanceof BpmnError) { return (BpmnError) e; } else if (e.getCause() == null) { return null; } return checkIfCauseOfExceptionIsBpmnError(e.getCause()); }
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
checkIfCauseOfExceptionIsBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
public static void propagateBpmnError(BpmnError error, ActivityExecution execution) throws Exception { propagateError(error.getErrorCode(), error.getMessage(), null, execution); }
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
propagateBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
public static void propagateError(String errorCode, String errorMessage, Exception origException, ActivityExecution execution) throws Exception { ActivityExecutionHierarchyWalker walker = new ActivityExecutionHierarchyWalker(execution); final ErrorDeclarationForProcessInstanceFinder errorDeclarationFinder = n...
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
propagateError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
@Override public boolean isFulfilled(ActivityExecutionTuple element) { return errorDeclarationFinder.getErrorEventDefinition() != null || element == null; }
Searches recursively through the exception to see if the exception itself or one of its causes is a {@link BpmnError}. @param e the exception to check @return the BpmnError that was the cause of this exception or null if no BpmnError was found
isFulfilled
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/BpmnExceptionHandler.java
Apache-2.0
public static void throwCompensationEvent(List<EventSubscriptionEntity> eventSubscriptions, ActivityExecution execution, boolean async) { // first spawn the compensating executions for (EventSubscriptionEntity eventSubscription : eventSubscriptions) { // check whether compensating execution is already cr...
we create a separate execution for each compensation handler invocation.
throwCompensationEvent
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java
Apache-2.0
@Override public int compare(EventSubscriptionEntity o1, EventSubscriptionEntity o2) { return o2.getCreated().compareTo(o1.getCreated()); }
we create a separate execution for each compensation handler invocation.
compare
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java
Apache-2.0