In this task, you deploy your ruleset to Rule Execution Server. Rule Execution Server is the runtime environment that contains the rule engine to execute the rules.
In this task, you can also test your deployed ruleset using a hosted transparent decision service (HTDS). After deploying the RuleApp in Rule Execution Server, you can generate a WSDL file from your ruleset, and then test it in Rule Designer.
This task should take you about 15 to 30 minutes to complete.
To deploy the rules from Rule Designer, you must first create a RuleApp project. Then, you set some properties to enable the monitoring of the ruleset execution that you will do in the next task.
To create a RuleApp project and deploy the RuleApp:
You now view the deployed RuleApp in Rule Execution Server, which is an execution environment for rules (Java SE and Java EE) that interacts with the rule engine. Rule Execution Server handles the management, performance, security, and logging capabilities associated with the execution of your rules.
From your application, you access Rule Execution Server using either web services, EJBs, or, in this case, pure Java objects (POJO).
To view the deployed RuleApp:
The Miniloan web application is designed to let you choose whether the business logic is embedded in the application as pure Java code or is coded in a ruleset. When you first started the Miniloan application, you had not yet created the ruleset, so you ran the application using the Java code. Now that you have created the ruleset and deployed it to Rule Execution Server, you can select the Use Rules check box. The application now calls for the execution of the ruleset.
The validation is done using the validateWithJRules method of the Miniloan bean.
To call the integration code in the Miniloan application:
You can retrieve the WSDL file for the myruleproject ruleset, from the Rule Execution Server console.
To retrieve the WSDL file:
To test the web service:
You have now deployed your ruleset to Rule Execution Server and tested the result in the Miniloan web application, and as a web service. In the next task, you use Rule Execution Server to monitor and audit the execution of the rules.