Create a New Decision Table

Create a new Decision Table that can be referenced from any Rules Task connector in any Process model.

Permissions

Your user account or group membership must have the following permissions to create a new Decision Table unless your user account has the Make this user a Super Admin setting selected:

  • Decision Tables: Create Decision Tables

  • Decision Tables: View Decision Tables

See the Decision Tables permissions or ask your Administrator for assistance.

Create a New Decision Table

Follow these steps to create a new Decision Table:

  1. View your Decision Tables. The Decision Tables page displays.

  2. In the Name setting, enter the name of the Decision Table. Decision Table names must be unique in your organization and can only use apostrophe characters (') and spaces. This is a required setting.

  3. In the Description setting, enter the description of the Decision Table.

  4. Click Save. The following message displays: The Decision Table was created.

Add or Remove Input and Output Columns

Decision input columns display immediately below the Inputs section. Decision output columns display immediately below the Outputs section. Dots above each column separator indicate where to add a new column to the right of the existing column.

Follow these steps to add or remove an input or output column:

  1. To add a column, do one of the following:

    • Add a new column to the left or right of a selected column: Right-click the column, and select one of the following options:

      • Add a new column to the left of the selected column: Select the Add Column Left option.

      • Add a new column to the right of the selected column: Select the Add Column Right option.

    The new column displays. By default, decision variables use the string data type.

  2. Replace the placeholder values for the input/output label.

  3. Replace the decision variable names with those for your decision.

  4. To remove a column, do one of the following:

    • Right-click on the label of the decision column to be removed, and then select the Remove option.

  5. Click Confirm. The decision column will be removed.

See the example in Use of Quotation Marks in Decision Output for String Data Type when using quotation marks as punctuation in the output string.

Change the Data Type for a Decision Variable

Follow these steps to change the data type for a decision variable:

  1. Identify the decision input or output variable you want to change. The current data type is displayed in the lower-right corner of the decision variable.

  2. Select one of the following data types:

    • boolean: The decision variable represents one of two possible values (usually denoted TRUE and FALSE).

    • date: The decision variable represents a date. The date is in the following format: YYYY-MM-DD. Example: "2020-07-01".

    • datetime: The decision variable represents a datetime. The datetime is in the following format: YYYY-MM-DD HH:MM:SS. Example: "2020-07-01 14:25:15".

    • number: The decision variable represents a number.

    • string: The decision variable represents a string.

    • time: The decision variable represents a time. Example: 14:25:15.

    • formula: The decision variable is calculated using a formula (only available for input columns). Example: income-(income*tax)

Add a Formula to a Column

The formula data type can only be used for input columns.

Formulas in a Decision Table are built using Request variables, constants, and arithmetic operators to generate values for input columns. Follow these steps to add a formula to a Decision Table column:

  1. Identify the decision input or output variable you want to change. The current data type displays in the lower-right corner of the decision variable.

  2. Right-click on the current data type.

  3. Select the data type formula.

  4. Click OK to save your changes, otherwise, click Cancel.

Add or remove a Decision to a Decision Table

Follow these steps to add a decision to a Decision Table:

  1. Do one of the following:

    • Add a new row above or below a selected decision: Right-click on the decision, and select one of the following options:

      • Add a new decision above the selected decision: Select the Add Row Above option.

  2. Enter the business rule (input and output values) for the new decision.

  3. To remove a decision, do one of the following:

  4. Click Confirm. The decision is removed if it was not the only decision in that Decision Table.

Move an Input or Output Column in a Decision Table

Follow these steps to move an input or output column in a Decision Table:

  1. Edit the Decision Table. Decision input columns display immediately below the Inputs section. Decision output columns displays immediately below the Outputs section.

  2. Do one of the following:

Resize an input or Output Column in a Decision Table

Input and output columns of a Decision Table can be resized to improve data visibility. Follow these steps to remove an input or output column from a Decision Table:

  1. Hover your mouse between two column headers until the shape of the cursor changes.

  2. Drag the column to the desired width.

Save and Close a Decision Table

Follow these steps to save a Decision Table:

  1. Click Save. The following message displays: The Decision Table was saved.

  1. To save a Decision Table, click Close.

  2. Click Confirm to save changes prior to closing the Decision Table.

Last updated

© Copyright 2000-2024 ProcessMaker Inc. All rights reserved.