Task 2: Creating decision operations
You create two decision operations to define rulesets for the decision service.
About this task
In this task, you create decision operations. Each decision operation defines one ruleset and its input and output parameters. A ruleset combines business rules into an executable container that is deployed, and the parameters are used to exchange data between a ruleset and the client application.
You define each ruleset and its parameters as a decision operation that has a unique signature of input and output parameters. Decision operations can share rules and projects, which allows a decision service to change when new decision points require different signatures.
- parameters: Contains the variables that are used in deployment to production.
- ruleset variables: Contains variables that are used only in nonproduction.
Because all the projects of the decision service reference the BOM project, the variables are visible when you create any decision operation. You use these variables as input and output parameters when you create decision operations.
- One that takes all the rules that have the status
validatedfrom all of the referenced projects, by means of a query - A second, for testing purposes, that takes the rules that relate to scoring and grade from the three referenced projects

The tutorial uses rule properties, in this case the status property, as a strategy for rule selection. Another approach is to divide individual decisions according to rule project and rule package.
Step 1: Creating a query
You create a query to look for rules that have the status
validated.
Procedure
Step 2: Creating a decision operation
You create the first decision operation.
Procedure
Step 3: Adding input and output parameters
You add input and output parameters to the decision operation. The parameters are used to exchange information with the client application.
Procedure
- Click Define under the Signature section on the Overview page.
-
Drag
borrowerandloanfrom to Input Parameters, and dragreportto Output Parameters. -
Save your work. Your parameters must be defined as shown in the following image:

Step 4: Creating the second decision operation
You create the second decision operation.
Procedure
What to do next
In the next task, you create run configurations for your decision operations.