Task 1: Designing the main rule project in the decision service
You create a vocabulary to write business rules. You use Rule Designer to create the vocabulary from the object model in the Miniloan application.
About this task
As a developer, you want to create a business rule vocabulary that business users can use to write and edit rules. The vocabulary must consist of terms that are familiar to the business user. The process of creating a vocabulary is called verbalization.
You create a business object model (BOM) that is based on an object model in a Java™ project. The following diagram shows how the classes and members of the BOM relate to the vocabulary that is used by the business users.

Step 1: Starting Rule Designer and importing the getting started projects
About this task
You can access the Samples Console from Rule Designer. The Samples Console contains the getting started projects.
Rule Designer is an Eclipse development environment for business rule applications. You can develop both rule projects and Java projects in this environment.
The rule project that you import for this tutorial is available in only American English (en_US). You must start Rule Designer in American English to use the rule project. When you start the Samples Console from the Windows Start menu, Rule Designer is displayed by default in American English.
Procedure
Results
The Rule perspective contains various views that you learn about in this tutorial, such as the Rule Explorer view and the Decision Service Map view.
The Rule Explorer view now contains the miniloan-server-webapp and miniloan-xom projects:
- miniloan-server
- From this project, you retrieve the hardcoded rules for the Miniloan web application. Inspect the rules in the validateWithJava method of the miniloan-server-webapp/src/miniloanweb/MiniloanBean.java class to understand the rules that Miniloan uses to assess loan requests.
- miniloan-xom
-
This Java project contains the Miniloan application. The miniloan-xom contains the miniloan package that contains the Borrower and the Loan Java classes.
Notice the Rule Project Map tab. When you work with a decision service, the Rule Project Map tab shows the Decision Service Map, which contains the different steps for making and deploying a decision service. You can use the Decision Service Map to guide you through the decision service process. If the Decision Service Map view is not displayed, click to open it.
The following image shows the Rule Project Map tab.

Step 2: Creating the main rule project for the decision service
About this task
In this tutorial, you create only a main rule project to simplify the logic of the application.
Procedure
Step 3: Importing the XOM into your rule project
About this task
You import an execution object model (XOM) from the Miniloan Java project.
Procedure
Step 4: Creating the business object model
About this task
Before you can create and edit business rules, you must define a business object model (BOM). You can create a BOM manually, or create it automatically by parsing your execution object model (XOM).
You use Rule Designer to parse the Java classes in the XOM and create the BOM from their methods and properties. Then, you can write rules that use the verbalized terms that are contained in the BOM.
Procedure
Step 5: Defining a decision operation
About this task
A ruleset is an executable package that includes rule artifacts and other elements. It contains a set of rules that can be run by the rule engine. You must define the contents of the ruleset and the parameters that allow the client application to exchange information with the ruleset. A decision operation includes all the settings that are needed to define the contents of the ruleset and its parameters.
Procedure
- In the Decision Service Map view, click Add decision operation.
- In the New Decision Operation wizard, in the Name field, type my operation.
- Click Next.
- Ensure my decision service is selected in the source rule project dialog, and then click Finish.
- In the Decision Service Map view, click Go to operation map.
- Select , and click OK.

Results
The operation map opens.

Step 6: Designing the operation signature
About this task
Client applications interact with a ruleset by using input and output parameters. These parameters are defined in the signature of a decision operation. They are equivalent to Java method parameters. They are references that you can use when you write rules.
To enable a decision to be made on the status of a loan, you create ruleset parameters for the borrower and the loan:
-
The borrower is an IN parameter. The value of the IN parameter is provided as input to the ruleset on execution.
-
The loan is an IN_OUT parameter. The value of the IN_OUT parameter is provided as input to the ruleset on execution, and can be modified by the ruleset and provided as output when execution completes.
Procedure
What to do next
You now have a rule project with a vocabulary, a variable set, and a decision operation with a signature. The design of your rule project is complete. Before you can write the business rules in Rule Designer, you must orchestrate how your rules are run. In the next task, you use a ruleflow to specify the order in which the rules are run.








