Thanks Raj Rao for helping .
Actually ,I need this for IBM Automation Decision Services 23.0.2 .
------------------------------
Ankur more
------------------------------
Original Message:
Sent: Mon March 04, 2024 12:14 PM
From: Raj Rao
Subject: Starts with" conditions for a list input within a decision table
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.
Original Message:
Sent: 3/4/2024 6:10:00 AM
From: Ankur more
Subject: Starts with" conditions for a list input within a decision table
Hi ,
How can I incorporate multiple "Start with" conditions for a list input, like AB%, MN%, and XY%, in a decision table?
------------------------------
Ankur more
------------------------------