Create a Decision

Create decisions to add them to your process.

Prerequisites

You have created the data types required to configure the input and output of the decision. See Create a Data Type.

Context

A decision consists of a collection of rules, which are used to digitize and automate the business decisions within a business process. After you create a decision, you can define your business logic by adding rules to it. There are two types of rules:

  • Decision table: A decision table is a collection of input and output rule expressions in a tabular representation. Multiple rule conditions and results can be configured using a decision table.

  • Text Rule: A text rule is the collection of rule expressions in a simple if-then format.

Decision Diagram is a graphical representation of the decision logic from the input to the output. Using a decision diagram, you can view the inputs/output of a decision and the rules of the decision. You can also click on each component of the decision diagram, for example, a text rule or a decision table, to view the configured details on the right panel.

Vocabulary includes input/output parameters and decision variables. This vocabulary can be used to configure the conditions and results when modelling a rule.

Reusable Rules: Reusable rules, as the name implies, are versatile rules which can be incorporated into other rules. These rules exhibit the following features:
  • Both text rules and decision tables can serve as reusable rules.

  • The result returned by the reusable rule, which can only be executed within another rule, can be consumed in a rule expression.

  • When configuring conditions and results in the wizard, reusable rules will be displayed under Vocabulary, allowing you to incorporate them into rule expressions.

  • A text rule with execute operations cannot be used as reusable rule.

To designate a rule as a reusable rule while modelling a decision, simply select the Rule Category as Reusable Rule from the dropdown in the Create Rule screen of the wizard. The rule will then be listed under Reusable Rules in the Rules tab.

Procedure

  1. In the Overview tab of your business process project, choose Start of the navigation pathCreate Next navigation step  DecisionEnd of the navigation path.
  2. Provide a Name, Identifier, and optionally a Description.
  3. Choose Create.
  4. To configure the inputs and output of the decision, do the following:
    1. Choose the decision from the Decision Diagram and then choose the Inputs/Output tab to configure the inputs and the output.
    2. Under Input Parameters, choose Create Input Parameter and configure the inputs by providing a Name, Description and choosing the Type of the input parameters.

      You can either select any of the Current Project data types that you created earlier or one of the following Basic data types:

      • Boolean

      • Date

      • Number

      • String

      • Date/Time

      Select List if the input parameter is a collection of a specific data type.
    3. Similarly, under Output Parameter, choose Create Output Parameter and configure the output for the decision by providing a Name, Description and choosing the Type of the output parameter.

      Type can be either any of the Current Project data types that you created earlier or one of the Basic data types.

      Alternatively, you can set an input parameter as the output by enabling Same as Input and choosing the desired input parameter from the Name dropdown.

Create an API Trigger

Create an API trigger for a decision to execute it in a shared environment.

Prerequisites

You have created atleast one decision. For more information, see Create a Decision.

Context

To execute a decision using APIs in a shared environment, create an API trigger for the decision. This ensures that the decision can be executed seamlessly using an API in the shared environment.

Procedure

  1. In your decision editor, choose Start of the navigation path More Next navigation step End of the navigation path Create an API Trigger.
    The Create an API Trigger screen opens.
  2. Provide a Name, Identifier and optionally a Description and then choose Create.
    The API trigger has been successfully created for the decision. You can see the trigger name in the header under API Trigger Name and find it listed under Triggers in the Overview screen.

Add Rules to a Decision

Add decision tables or text rules to a decision based on your business scenario.

Prerequisites

You're familiar with the operators and functions used to model rule expressions. See

Procedure

  1. Choose the Rules tab and then choose Create Rule.
  2. To add a decision table, see Model a Rule in a Decision Table.
  3. To add a text rule, see Model a Text Rule.
  4. To create a duplicate of a rule, see Duplicate a Rule.

Add Variables to a Decision(Optional)

Add variables to a decision to store information of one rule execution and reuse it in another rule.

Context

In the Variables tab, you can add intermediate variables to your decision, that can be used to temporarily store the output of one rule execution and reused as an input for another rule execution.

Procedure

  1. Choose the Variables tab and then choose Create Variable. The Decision Variable screen opens up.
  2. Provide a Name, Description and choose a data type for the variable from the Type dropdown.
    In the Type dropdown, you can either select any of the Current Project data types that you created earlier or one of the following Basic data types:
    • Boolean

    • Date

    • Number

    • String

    • Date/Time

  3. Check the List checkbox if the variable is a collection of a specific data type.
  4. Choose Save. The variable gets added successfully and you can see it in the Variables tab.

    You can also edit, duplicate or delete a variable by using the More () option available beside each variable.

  5. You can use these decision variables when you configure your conditions or results while modelling a rule. These variables will be displayed in the rule wizard as part of the vocabulary for a rule condition as well as a result.

Use Generative AI in a Decision

You can use Artificial Intelligence (AI) to summarize existing decisions and simplify the process of creating rules through natural language description. This makes the process easier and more efficient than using the decision editor alone.

Prerequisites

  • You have enabled generative AI for your tenant and have accepted the terms and conditions. For more information, see Generative AI.

  • You must have one of the following roles to use generative AI:
    • ProcessAutomationAdmin

    • ProcessAutomationDeveloper

    • ProcessAutomationDelegate

    For more information, see Authorizations.
  • You must have created at least one decision to use the Explain this Decision feature.

  • You must have added at least one input and output parameter to use the Generate Rule feature.

Procedure

Choose Generate on your decision editor.

The Generate in Decision screen opens with the following AI actions listed:
  • Explain this Decision

    To get the summary of a decision, choose Explain this Decision.

  • Generate Rule

    To generate business rules, choose Generate Rule. Describe your requirement in the prompt editor by including only the input and output parameters specifically added for this decision, using not more than 1000 characters.