jbossdemocentral / bpms-travel-agency-demo

A JBoss BPM Suite demo project around a travel agency booking workflow.
35 stars 43 forks source link

Validation Rejection fact is never retracted from KIE-Session #34

Closed DuncanDoyle closed 8 years ago

DuncanDoyle commented 8 years ago

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:.

DuncanDoyle commented 8 years ago

Rejection fact is now retracted from session. This solution works with any runtime strategy.