Decision Management (ODM,ADS)

 View Only
  • 1.  Starts with" conditions for a list input within a decision table

    Posted Mon March 04, 2024 06:10 AM

    Hi ,

    How can I incorporate multiple "Start with" conditions for a list input, like AB%, MN%, and XY%, in a decision table?



    ------------------------------
    Ankur more
    ------------------------------


  • 2.  RE: Starts with" conditions for a list input within a decision table

    Posted Mon March 04, 2024 12:15 PM
    Hi Ankur,

    Just create a xom method in a RulesUtil.java class and map it to your BOM with suitable verbalization:

           public static boolean startsWithAnyOf(String thisString, List<String> starters) {

                  return starters.stream().anyMatch(s->thisString.startsWith(s));

           }


    With this approach, you can match multiple starting strings in one decision table row.

    Alternatively, you can use separate decision table rows for each match.

    Raj Rao

    ODM Architect | RuleScape Consulting LLC | 404.931.5223 | www.rulescape.biz







  • 3.  RE: Starts with" conditions for a list input within a decision table

    Posted Tue March 05, 2024 07:16 AM

    Thanks Raj Rao for helping .

    Actually ,I need this for IBM Automation Decision Services 23.0.2 .



    ------------------------------
    Ankur more
    ------------------------------