Skip to main content
Skip table of contents

Creating a Decision Table and Inserting a Rule

In this step, you add a rule to your process. You define the rules to be applied in a decision table (.rule). For this example, you create a decision table that determines the following:

  • All invoices with an invoice value below 1000 will be automatically confirmed.

  • All invoices with an invoice value greater than or equal to 1000 will be checked manually.

Prerequisites:

You have defined business process data. For more information, see Defining Business Process Data.

Creating a decision table

  1. Right-click the BPM Project in the Projects view and select New > Rules….
    The File Creation Wizard dialog opens.

  2. In the File name text field, enter the name CheckInvoiceAmount.rule for your decision table.

  3. Click Finish.
    ✅ The decision table is created in the BPM Project and opens automatically in the editor.

  4. Select the Case Feature value as the Input and select InvoiceAmount in the /Data/Input 1 field.

  5. Enter the value <1000 in the Input column of the first row of the table.

  6. Click the image-20241014-124405.pngAdd After button.
    ✅ A new table row is added below the current row.

  7. Enter the value >=1000 in the Input column of the second row of the table.

  8. Select the Case State value as the Output.

  9. Select the Approved - automatically value in the Output column of the first row of the table.

  10. Select the To be checked manually value in the Output column of the second row of the table.

  11. Click image-20241009-130249.pngSave.

    image-20241014-125345.png
  12. Return to the ImportInvoices BPM Project.

Inserting the rule

  1. Drag the image-20241014-085127.pngRule element from the Palette view next to the image-20241009-120107.pngReceived element in the top lane of the pool.

  2. In the Label field in the Properties view, define the name CheckInvoiceAmount for the Rule element.

  3. Click the image-20241014-130844.pngbutton in the Document field in the Properties view.
    The Choose Rule Input dialog opens.

  4. Select the previously created CheckInvoiceAmount.rule RULE file.

  5. Click on the lower right image-20241015-085312.pngcorner of the image-20241009-120107.pngReceived element, hold down the mouse button, and drag a connection to the image-20241014-085127.pngRule element.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.