Ask Your Question
1

How can decision tables with spreadsheets in Drools Business Central incorporate arrays in the WHEN condition?

asked 2022-06-18 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-09-17 06:00:00 +0000

david gravatar image

To incorporate arrays in the WHEN condition of decision tables in Drools Business Central, follow these steps:

  1. Open the decision table in Drools Business Central.
  2. Click on the "Data" tab.
  3. Find the column where the array will be used in the WHEN condition.
  4. Click on the drop-down menu and select "Advanced".
  5. In the "Constraint Value" field, enter the array as a comma-separated list enclosed in square brackets, for example: [1,2,3].
  6. Click "Save" to apply the changes.

Now the array can be used in the WHEN condition of the decision table by referencing the column name in the When part of the rule. For example, if the array was entered in column A, the rule may look like this:

when MyObject( $x : value in A ) then // do something with $x

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-18 11:00:00 +0000

Seen: 8 times

Last updated: Sep 17 '22