IBM Support

RS01962: BOTH THEN AND ELSE PART OF FASTPATH RULE MAY FIRE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A rule may have both its Then and Else action parts executed
    when using the Fastpath algorithm and the Classic Rule Engine.
    This happens with the following type of combination of rules,
    where someRule is fired for both Then and Else parts:
    ruleset fastpathElse
    {
    };
    flowtask mainflow {
    property mainflowtask = true;
    body {
    mainflow#myFastpathRules;
    }
    };
    ruletask mainflow#myFastpathRules {
    algorithm = sequential;
    property ilog.rules.engine.sequential.fastpath = true;
    ordering = sorted;
    body {
    someRule,
    someRule2
    }
    };
    rule someRule {
    when {
        IlrContext() from ?context;
        evaluate (variable1 : ("AAA"));
        evaluate ((variable1.equals("AAA")));
     } then {
        System.out.println(instance.ruleName+" THEN");
     } else {
        System.out.println(instance.ruleName+" ELSE");
     }
    
    };
    rule someRule2 {
    when {
        IlrContext() from ?context;
        evaluate (variable1 : ("AAA"));
        evaluate ((variable1.equals("BBB")));
     } then {
        System.out.println(instance.ruleName+" THEN");
     } else {
        System.out.println(instance.ruleName+" ELSE");
     }
    };
    

Local fix

  • -use Sequential or RetePlus algorithm instead of Fastpath with
    Classic Rule Engine
    -or use Decision Engine instead of Classic Rule Engine
    

Problem summary

  • error in condition sharing with static values leads to
    incorrect test during execution
    

Problem conclusion

  • The code is fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS01962

  • Reported component name

    WS DECISION SVR

  • Reported component ID

    5725B6901

  • Reported release

    860

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-04-15

  • Closed date

    2015-04-24

  • Last modified date

    2015-04-24

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • None
    999
    

Fix information

  • Fixed component name

    WS DECISION SVR

  • Fixed component ID

    5725B6901

Applicable component levels

  • R860 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.6","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022