Task 1: Creating the decision model service
In this task, you create the project, the first nodes in the diagram, and the initial decision logic for your decision model service.
About this task
In a decision model service, you use a diagram to model data and decision nodes, and then author the decision logic of each decision node. Data nodes represent the data that is received from the client application, and decision nodes contain the logic in the form of business rules.
- Says Hello to the customer and adds the customer's name.
- Replies with a default statement if no name is provided.
Step 1: Creating the project
You first create the Salutation2 project for your decision model service. The project contains all the information required to build and deploy a decision service. The project can also be exported as a .zip file.
Procedure
Step 2: Creating the initial nodes
You create and define the relationship between the data that is provided by the client application, and the decision that is returned by your decision model service. Initially, you want your decision model to accept a customer name as input data, and provide a salutation to the customer.
Procedure
Step 3: Creating the decision logic
You have the minimum node structure: one data node feeding one decision node. The decision node accepts input data from the nodes that point to it, and produces a decision that is based on the logic that you author.
About this task
- Writing business rules that provide a decision that is usually based on conditions.
- Writing sufficient business rules to cover the possible cases that the client application encounter.
The nodes in the diagram are available in the business rules as variables of the form the
'node name'. For now, you have the Name data node available as
'the name', and the Salutation decision node as 'the
salutation' in the rule and decision table editors.
Procedure
Step 4: Validating the decision model
The decision modeling tool enables you to validate your model immediately. You run your decision model service on data that you provide.



