Once you have defined and developed your business rules, the next step is to integrate the ILOG JRules rule engine with your application. You can integrate the rule engine into your application in the following ways:
-
In a test scenario in Rule Studio: you can use the Java Project for Rules and the templates provided to rapidly instantiate a rule engine.
-
Using the rule engine API: in J2SE, you need only use simple API calls to assert, evaluate conditions, and fire actions defined in a rule. Integration with the rule engine is light and has little lock-in with the core application as you do not have to extend any classes or override any existing methods.
-
Using Rule Execution Server, using one of the following code generation templates:
-
POJO generator: highly customizable. For J2EE experts or performance-sensitive users.
-
Web service generator: to generate a Web decision service or a monitored transparent decision service. For non-developers who want to author rules and make them available as executable Web services. It is particularly suited to Service-Oriented Architecture (SOA) or Business Process Management (BPM) use cases that use an XML-centric data model. Rulesets that process XML or Java simple types can be automatically made available as Web services by the Rule Execution Server Console. The SOAP with Attachments API for Java (SAAJ) is used for the implementation so the code can run on any SAAJ compliant platform.
-
Web service JAX-WS 2.0 generator (compatible with JDK 5.0): aimed at forward-looking, standards-based users. JAX-WS 2.0 RI is provided in the distribution and can be deployed to Tomcat 6.0. Java types are serialized/deserialized using the standard JAX-B 2.0 APIs.
-
Service Component Architecture (SCA) generator: provides files to declare and execute an SCA component using a RuleApp in either J2SE or J2EE. This implementation is based on Tuscany.
-
Scenario Service Provider (SSP) Setup generator: enables you to generate ANT files to update the SSP Web application with the XOMs used by a RuleApp.
The following figure illustrates the different code generation options:
Related Sections
Related Concepts
Related Tasks
Related Samples and Tutorials