How to get the currently used KieSession object in rule consequence (i.e. RHS) ?
Issue
- The requirement is to get a reference of current
KieSessionfrom the rule consequence (i.e.RHS). Basically, user would want to invoke a separate class's method from within thethenpart of the rule (i.e.RHS) and there in the method's parameter they need to pass the currently usedKieSessiontype of instance which is executing the rule. - This requirement might be commonly used where users deal with multiple
KieSessionand need the specificKieSessiontype instance which executed the rule consequence. How to achieve this requirement?
Environment
- Red Hat JBoss BRMS (BRMS)
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.