Decision Management (ODM,ADS)

 View Only
  • 1.  ODM - How to get all rules fired and return them on response of decision service

    Posted Thu April 07, 2022 04:48 PM
    We are migrating from classic rule engine to decision engine. On CRE we have on response (Soap) of the services an section to list all executed rules. We are doing this for Audit and Troubleshooting.
    However for decision engine we haven't found equivalent APIs to do that on server side (Inside of decision service)

    Have somebody found an way to get all executed rules and return them on response of the Decision service ? Any code sample to do that ?

    Appreciate the help. Thanks.

    ------------------------------
    Sandro Nora
    ------------------------------


  • 2.  RE: ODM - How to get all rules fired and return them on response of decision service

    Posted Thu April 07, 2022 05:58 PM
    Hello,

    Are you executing rules with HTDS, in that case you can use the execution trace similarly to what is available for  the classic rule engine.
    https://www.ibm.com/docs/en/odm/8.10?topic=services-htds-decision-trace-filters
    If not what API are you using?

    ------------------------------
    Alain Robert
    ------------------------------



  • 3.  RE: ODM - How to get all rules fired and return them on response of decision service

    Posted Fri April 08, 2022 07:22 AM
    Hi Alian,

    Thanks for reply.
    We are executing rules with HTDS.
    Is there way to get execution traces at end of decision service execution ?

    Our customer is using IrlContext to get list of all rules from ruleset then they fill that information (Rule Name, ID, executed or not ...) on BOM Object that is part of response.

    The CRE API they are using is "context.getRuleset().ruleIterator;"

    ------------------------------
    Sandro Nora
    ------------------------------



  • 4.  RE: ODM - How to get all rules fired and return them on response of decision service

    Posted Fri April 08, 2022 04:54 PM
    Absolutely, enable decision trace in the request and you will get this information automatically nothing to implement in the Rules or the XOM

    ------------------------------
    Alain Robert
    ------------------------------