Decision Management (ODM,ADS)

 View Only
  • 1.  Not working Debug or Run Technical Rule (irl rule file) as Decision Operation

    Posted Tue June 22, 2021 12:48 PM
    I had issue of debugging technical rule on ODM Rule Designer.

    Installed ODM 8.10.5.1 + Eclipse Oxygen 4.7.3 ( java 1.8).

    (1) created rule project and XOM (java project), BOM, Decision Operation (Ruleset), add Ruleset variables, map Ruleset variables to Ruleset parameters,
     create Action Rule, final, Debug project as Decision Operation (set input parameters on Debug Configuration screen).
    This worked as normal, stop at breakpoint in rule file and printed string on Console screen.

    (2) Same steps as (1), except "create Action Rule" replaced by manually insert new  "Technical Rule", then, debug, no stop at breakpoint and nothing was printed out on Console screen.
    below is content of technical rule (irl):

    when {
    ?context: ilog.rules.engine.IlrContext();
    }
    then {
    ?context.note("AAA");     //  because ?context.out was deprecated, error for using:  ?context.out("AAA"); 
    System.out.print("ASD");  // not sure what is correct way to print out information for debugging purpose
    }

    (1) Another related question:
    In rule engine execution environment, what APIs will be available in rule ? Only IlrContext available for inside rule ? Were is documentation for this kind thing ?

    Please help.

    Thanks.

    Lun Yi

    ------------------------------
    Lun Yi
    ------------------------------


  • 2.  RE: Not working Debug or Run Technical Rule (irl rule file) as Decision Operation

    Posted Tue June 22, 2021 01:11 PM
    For (3),  "what APIs will be available in rule"  should be "what  Object in working memory"  will be available in rule ?

    ------------------------------
    Lun Yi
    ------------------------------



  • 3.  RE: Not working Debug or Run Technical Rule (irl rule file) as Decision Operation

    Posted Tue June 22, 2021 02:00 PM
    For (3) question, link may answer it:

    https://www.ibm.com/docs/en/odm/8.10?topic=rec-mapping-between-classic-rule-engine-decision-engine-api

    ------------------------------
    Lun Yi
    ------------------------------