Task 1: Making a decision service
About this task
In this task, you...
- Create a decision automation.
- Create a decision service inside the automation.
- Create a decision model inside the service.
- Define the data and logic of the model.
- Create a test data set.
- Run the model on test data.
When defined, the model takes a name as input, and produces a greeting that includes the name. If no name is entered, the model produces a default value.
For more information about the structure of decision automations, see Building decision services in Decision Designer.
Step 1: Creating a decision automation
About this task
In this step, you create a decision automation. Users can work collaboratively in decision automations through a shared Decision Designer repository.
Procedure
Step 2: Creating a decision service
About this task
In this step, you create a decision service to model and define a decision (see Building decision services).
Procedure
Step 3: Creating a decision model
About this task
- Decision nodes: Contain the logic that processes the input data.
- Input nodes: Provide the data that is needed to make the decision.
- Prediction nodes: Provide values that are computed in predictive models. (Prediction nodes are not used in this tutorial.)
- Function nodes: Provide values that are computed in other decision models. (Function nodes are not used in this tutorial.)
- Generative AI nodes: Provide values that are computed in generative AI models. (Generative AI nodes are not used in this tutorial.)
Data enters through input data nodes, and is processed by rules in decision nodes. The rules define the logic of the decision. They are expressed in business rules and decision tables. The rules determine the output of the model (see Creating a decision diagram).
In this step, you create a model that has a diagram with a decision node and an input node.
Procedure
Step 4: Defining the nodes
About this task
You start defining the nodes in a model by giving them descriptive names and output types. If you create a decision node that produces a message, for example, you might name it Message and set its output to string. For a node that outputs a price, you might name it Price and set its output to integer (see Modeling data).
In this step, you define the names and output types of the nodes in your model. You define the logic of the model in the next step.
Procedure
- Select the Input node.
- In the right panel, change the Node name field to Name.
- Leave string selected in the Output type field.
- Select the Decision node.
- Change the Node name field to Daily advice. Leave string as the output type.
Step 5: Defining the decision logic
About this task
You use rules to define the logic that is used by decision nodes. A rule applies conditions to data, and when the data meets the conditions, the rule associates an action with the conditions. A rule might check data for a specific value, for example, and if the data contains the value, the rule outputs an action that is related to the value.
You express rules in business rules and decision tables:
- Business rules contain a rule statement that has a condition and an action.
- Decision tables group business rules that use the same rule statement but with different variables.
- Default rules apply an action when no other condition can be met.
When you write a rule, you use a language that is natural in form (see Rule language). The rules include variables that are derived from the names of the nodes in the model (see Rule structure).
In this step, you add a business rule and default value to the Daily advice node to process the data from the Name node.
Procedure
Step 6: Running the model
About this task
You run the model against representative test data, and use the results to further develop the model (see Running models).
In this step, you run your model twice. You enter test data, and run the model to produce a greeting. Then, you run the model without test data to see whether it returns the default message.

switch button to switch between the two edition modes.