How to get the result from a rule execution (inserted in a List) in the class calling the rules to execute ?

Solution Unverified - Updated -

Issue

  • There is a requirement to create a List of values to provide as the result of a rule execution so that the List object 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 a List type 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 StatefulKnowledgeSession having 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.