As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
19 mai 2011 16:42:14 org.activiti.engine.impl.interceptor.CommandContext close GRAVE: Error while closing command context org.activiti.engine.ActivitiException: Invalid number of instances: must be positive integer value, but was 0 at org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior.createInstances(ParallelMultiInstanceBehavior.java:42) at org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior.execute(MultiInstanceActivityBehavior.java:82) at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:40) at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:76) …
"A multi-instance activity is a way of defining repetition for a certain step in a business process. In programming concepts, a multi-instance matches the for each construct: it allows to execute a certain step or even a complete subprocess for each item in a given collection, sequentially or in parallel. "
<br>List<String> list = new ArrayList<String>();<br> for (String aString : list)<br> {<br> // doStuff<br> assertEquals("Hello", aString);<br> }<br>
Actually I think that "positive integer" usualy refers to positives numbers + 0, and "strictly positive integer" doesn't include 0.
What is exactly the issue? It doesn't make sense to have an multi-activity be have zero instances executed (messes up the flow history as well)
(my bad)
You can't know everything, believe me…… I've tried…. for several hundered years now…
org.activiti.engine.test.bpmn.multiinstance.MultiInstanceTest#testSequentialEmptyCollection