Details
-
Feature Request
-
Resolution: Unresolved
-
Minor
-
5.1.0.M2
-
Documentation (Ref Guide, User Guide, etc.)
-
Low
Description
Interface to be implemented by any object that wishes to be notified of the
{@link org.drools.runtime.StatefulKnowledgeSession}that it runs in.
Implementing this interface makes sense for example when an object requires access to session artifacts/details such as rule facts, sessionID, etc.
This interface can be implemented by a custom
{@link org.drools.process.instance.WorkItemHandler}in case, for example, it needs to access a session to insert / retract some facts before proceeding further to the process node that fires rules ( groups, agendas, etc.. ).