[
https://issues.jboss.org/browse/JBRULES-2971?page=com.atlassian.jira.plug...
]
Mark Proctor commented on JBRULES-2971:
---------------------------------------
We are trying to decide what the intended behaviour. In general you should update with the
entrypoint relevant to the handle.
1) throw error
2) update in original entry point. This means regardless of the ep you call update() on
it'll look the ep for the handle
3) move the facthandle from its' current ep to the one update is being called on.
update "swipes" fact from entry-point
-------------------------------------
Key: JBRULES-2971
URL:
https://issues.jboss.org/browse/JBRULES-2971
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.2.0.CR1
After this code, the inserted Sale fact does not match
Sale() from entry-point "cash"
as it does when line x is removed.
, StatefulKnowledgeSession kSession = this.getSession();
WorkingMemoryEntryPoint wmeep = kSession.getWorkingMemoryEntryPoint( "cash"
);
FactHandle fh;
Sale s = new Sale(...);
fh = wmeep.insert( s );
kSession.update( fh, s ); // x - this swipes the fact from entry-point
"cash"
If this is the intended behaviour (which would be very strange) it isn't documented.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira