Miljenko Norsic [
http://community.jboss.org/people/mnorsic] created the discussion
"Re: jPBM 5.1, persistent processes get finished without regard to session"
To view the discussion, visit:
http://community.jboss.org/message/626719#626719
--------------------------------------------------------------
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
[
http://community.jboss.org/message/626719#626719]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]