06-28-2016 07:30 AM
08-29-2016 07:59 AM
ACT_RU_EXECUTION
, and adding a hook in our application for RuntimeService.signal()
.08-31-2016 06:19 PM
ShellTaskTest.testOsDetection
, as I'm on OpenBSD at home).
diff –git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java
index d6814c0..b1f7188 100644
— a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java
+++ b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java
@@ -101,14 +101,15 @@ public class ParallelMultiInstanceBehavior extends MultiInstanceActivityBehavior
public void leave(ActivityExecution execution) {
callActivityEndListeners(execution);
- if (resolveNrOfInstances(execution) == 0) {
+ int nrOfInstances = getLoopVariable(execution, NUMBER_OF_INSTANCES);
+
+ if (nrOfInstances == 0) {
// Empty collection, just leave.
super.leave(execution);
return;
}
-
+
int loopCounter = getLoopVariable(execution, getCollectionElementIndexVariable());
- int nrOfInstances = getLoopVariable(execution, NUMBER_OF_INSTANCES);
int nrOfCompletedInstances = getLoopVariable(execution, NUMBER_OF_COMPLETED_INSTANCES) + 1;
int nrOfActiveInstances = getLoopVariable(execution, NUMBER_OF_ACTIVE_INSTANCES) - 1;
09-01-2016 02:41 PM
09-01-2016 03:55 PM
resolveNrOfInstances()
evaluates the collection again, after it has already been evaluated at creation time.nrOfInstances
. Changing the collection while activities are executing should not affect anything, as all needed executions should have been created up front.09-02-2016 10:27 AM
09-02-2016 02:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.