martinweiler opened a new issue, #7206:
URL: https://github.com/apache/incubator-kie/issues/7206

   Consider a parent process with a MI sub-process node marked as Execution 
mode: `Parallel`. The child process contains several nodes, including wait 
states (such as a User Task), with some of the nodes being marked as `async`. 
Now start the parent process with the input collection for the MI sub-process 
containing 3 elements.
   
   **Expected outcome:**
   The three sub-process instances are created and waiting in the User Task 
(similar to v8)
   
   **Actual outcome:**
   Only a single sub-process instances is created.
   
   **Reason**:
   To prevent race conditions, the engine falls back to sequential mode if any 
async node is detected within the sub-process instance: 
   
https://github.com/apache/incubator-kie/blob/main/kogito-jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/ForEachNodeInstance.java#L176
 
   
   This is a very restrictive check, as it does not take the existence of wait 
states in the sub-process into account.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to