| Samples > Rule Team Server Business Rule Management Extensions > How to Extract a Ruleset Archive |
How to Extract a Ruleset Archive |
PREVIOUS NEXT |
This sample shows how to extract ruleset archives from a Rule Team Server project, create a baseline, and deploy a RuleApp to Rule Execution Server.
Key features include:
To install this sample:
teamserver > serverrulesetextraction sample.
build command to build the application.
This sample can only be opened and run in the Samples Console.
To open and run this sample:
getfirstruleset query command to get a ruleset from a predefined extractor in Rule Team Server.
getsecondruleset query command to get a ruleset from another extractor in Rule Team Server.
createbaseline command to set a baseline from the current state of the project.
mybaseline) has been created by signing in to Rule Team Server, selecting the loanvalidation-rules project, and then selecting Consult a baseline in the Home tab: http://localhost:8080/teamserver
http://localhost:8080/bres, and that the two rulesets are different.
This sample is located in <InstallDir>/teamserver/samples/serverrulesetextraction.
RTSClient.java - The class connecting to Rule Team Server. It contains methods to get rulesets, create baselines, and deploy RuleApps to Rule Execution Server.
The highlights of this sample include:
IlrSession class is the main entry point into Rule Team Server. It allows you to connect to Rule Team Server and perform operations such as execute a query, generate a ruleset, create a baseline, and so on. A session can be obtained through a session factory.
IlrExtractor and IlrArchiveOutput are used to get a ruleset archive.
IlrSession is used to create baselines and deploy RuleApps to Rule Execution Server.
To rebuild this sample:
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |