How to get the result from a rule execution (inserted in a List) in the class calling the rules to execute ?
Issue
- There is a requirement to create a
Listof values to provide as the result of a rule execution so that theListobject is available outside the rules (i.e. the class calling the rules to execute) , for the users to evaluate. Just to clarify, users may want that at the end of the rules execution aListtype of object should be updated from the rules and that object should be accessible to the application code which was executing the rule. This should help the application code to get the results from the rule execution once it is complete. How to achieve this goal ? - There is a rule which is using facts (Java Objects in rule file), those fact objects are inserted to the
StatefulKnowledgeSessionhaving data in it. How to capture those fact objects after rule has been fired ?
Environment
- Red Hat JBoss BRMS (BRMS)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
