When a validation fails, a Rejection fact is inserted into WorkingMemory (KieSession), which is used in the X-OR gateway to determine the process path. However, the fact is never retracted. Combined with the fact that the demo runs the process with SINGLETON strategy, once one process has got a validation error, all other process instance will get rejected with a validation rejection as well.
2 possible fixes:.
Retract the Rejection fact after the X-OR gateway.
Set the runtime strategy to PER_PROCESS_INSTANCE, so process-instances don't share the same KieSession/WM.
When a validation fails, a Rejection fact is inserted into WorkingMemory (KieSession), which is used in the X-OR gateway to determine the process path. However, the fact is never retracted. Combined with the fact that the demo runs the process with SINGLETON strategy, once one process has got a validation error, all other process instance will get rejected with a validation rejection as well.
2 possible fixes:.