JBoss Community

Re: jPBM 5.1, persistent processes get finished without regard to session

created by Miljenko Norsic in jBPM - View the full discussion

Hi,

 

a little bit of digging shows that calling signalEvent() method on a persistent stateful knowledge session effectively selects all signals from EVENTTYPES table:

 

select processins0_.InstanceId as col_0_0_ from ProcessInstanceInfo processins0_ where ? in (select eventtypes1_.element from EventTypes eventtypes1_ where processins0_.InstanceId=eventtypes1_.InstanceId)

 

And based on that information, process-related information is returned from PROCESSINSTANCEINFO. That's not correct, as this query should return only processes that belong to that particular knowledge session, and this query returns all processes that register this event.

 

I think it would be enough to add session id into event types and use this constraint to fetch only processes that belong to that particular knowledge session.

What do you think?

Reply to this message by going to Community

Start a new discussion in jBPM at Community