I am getting a nullpointerexception during ksession load due to a null cmdScopedEntityManager (from JpaPersistenceContextManager).
First I created a conditional event and executed a instance of this workflow (which results in an active workflow waiting for a condition)
After restarting my server, the session load will fire (or try to fire) an ActivationCreatedEventImpl for my pending rule (named after my process.... RuleFlowStateNode-conditionalTest_2_0-7)
The problem though.... is that when calling getProcessInstancesWaitingForEvent it will try to call a getProcessPersistenceContext() implementation which tries to return a new JpaProcessPersistenceContext( cmdScopedEntityManager );
This cmdScopedEntityManager was not initialized yet though. It seems to be lazy initialized during beginCommandScopedEntityManager (from JpaPersistenceContextManager).
Is that a bug or is there some way or something else I need to add to my environment to use this properly?