-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
7.1.0
-
None
After the method “onProcessEvent(@Observes CdiBusinessProcessEvent event)” is called in a cdi-bean, it happens sometimes that the current ProcessInstance is not in the CDI-Context. No method can find the Process-Instance associated with the ProcessInstanceId from the event. In about 70% of the cases the process instance is found through one the following two approaches:
- Get the ProcessInstance through Injection of the CurrentProcessInstance which provides an instance of BusinessProcess. Call getProcessInstance() to retrieve the instance.
- Another approach is going with the RuntimeService and its createQuery-methods
But sometimes - for no recognizable reason - the BusinessProcess returns only null-values and the Query-Methods can’t find the ProcessInstance either. The event on the other hand contains the correct Id of the process-instance and the execution. Also the database contains the data.
The conclusion is that something is going wrong in the engine or in the cdi-part of the engine, so that the BusinessProcess is not getting always assigned to a bean. The irregularity indicates a fault on the part of the engine.