|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrDeploymentFacility
Deployment services for a Decision Center session, allowing to generate and deploy rulesets and RuleApps.
IlrSession
Field Summary | |
---|---|
static int |
DEPLOY
Deploy deployment type. |
static String |
INC_MAJOR
Increment major version (RuleApp versioning policy). |
static String |
INC_MAJOR_RULESET
Increment the major version of the rulesets (RuleApp versioning policy). |
static String |
INC_MINOR
Increment minor version (RuleApp versioning policy). |
static String |
INC_MINOR_RULESET
Increment the minor version of the rulesets (RuleApp versioning policy). |
static int |
REDEPLOY
Redeploy deployment type. |
static String |
REPLACE_RULEAPP
Replace the RuleApp (RuleApp versioning policy). |
static String |
REPLACE_RULESET
Replace the rulesets contained in the RuleApp (RuleApp versioning policy). |
Method Summary | |
---|---|
void |
deployEventProject(String url,
String username,
String password,
String deploymentTag)
Deploys an Event project to a WBE runtime. |
IlrArchiveOutput |
deployRuleAppArchive(IlrElementHandle ruleAppHandle,
String url,
String username,
String password,
String versioningPolicy,
String tagName,
int deploymentType)
Generates a RuleApp archive for the given RuleApp and tag name and deploys it to the given Rule Execution Server. |
IlrArchiveOutput |
generateRuleAppArchive(IlrElementHandle ruleAppHandle,
String tagName,
int deploymentType)
Generates a RuleApp archive for the given RuleApp and tag name. |
IlrArchiveOutput |
generateRulesetArchive(IlrSearchCriteria searchCriteria,
String extractorValidatorSymbol,
String rulesetName)
Generates a ruleset archive for the given query and extractor validator symbol. |
Field Detail |
---|
static final int DEPLOY
static final int REDEPLOY
static final String INC_MAJOR
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field Valuesstatic final String INC_MINOR
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field Valuesstatic final String REPLACE_RULEAPP
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field Valuesstatic final String INC_MAJOR_RULESET
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field Valuesstatic final String INC_MINOR_RULESET
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field Valuesstatic final String REPLACE_RULESET
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int)
,
Constant Field ValuesMethod Detail |
---|
IlrArchiveOutput generateRulesetArchive(IlrSearchCriteria searchCriteria, String extractorValidatorSymbol, String rulesetName) throws IlrApplicationException
If the preference ilog.rules.teamserver.buildCheckArchive
is set to true
, then the
archive is checked just after being generated.
When errors are found during the archive generation or the check:
ilog.rules.teamserver.rulesetGenerationAbortLevel
,
an exception is thrown and the returned IlrArchiveOutput
is null.
IlrApplicationException
- If an error occurs during the generation of the ruleset. For instance, if a rule
is found at the beginning of the transaction and it is removed by another user before the end of the transaction,
then an IlrObjectNotFoundException
is thrown.searchCriteria
- The search criteria. It must apply on subclasses of brm.RuleArtifact
.extractorValidatorSymbol
- Designates an extractor validator that can filter out by API the rule artifacts
matched by the search criteria. If null
, all elements are taken.rulesetName
- The name of the generated ruleset.
IlrExtractorValidator
IlrArchiveOutput generateRuleAppArchive(IlrElementHandle ruleAppHandle, String tagName, int deploymentType) throws IlrApplicationException
If the preference ilog.rules.teamserver.buildCheckArchive
is set to true
, the
archive is checked just after being generated.
When errors are found during the archive generation or the check:
ilog.rules.teamserver.rulesetGenerationAbortLevel
,
an exception is thrown and the returned IlrArchiveOutput
is null.The tag name and deployment type parameters are interpreted as follows:
tagName
is not null and the deployment type is DEPLOY, then generating the RuleApp will create
a baseline named tagName for each project referenced by the RuleApp.tagName
is null and the deployment type is DEPLOY, then no baseline is created during the RuleApp generation.
tagName
is not null and the deployment type is REDEPLOY, then the ruleset is generated from the baselines
corresponding to the given tagName.
tagName
is null and the deployment type is REDEPLOY, then it is equivalent to tagName
being null and deployment
type set to DEPLOY.
IlrApplicationException
- If an error occurs during the generation of the RuleApp. For instance, if a rule
is found at the beginning of the transaction and it is removed by another user before the end of the transaction,
then an IlrObjectNotFoundException
is thrown.ruleAppHandle
- The handle on the RuleApp from which the archive should be generated.tagName
- The name of the tag to create or to use during generation.deploymentType
- One of IlrDeploymentFacility.DEPLOY
or IlrDeploymentFacility.REDEPLOY
.
IlrArchiveOutput deployRuleAppArchive(IlrElementHandle ruleAppHandle, String url, String username, String password, String versioningPolicy, String tagName, int deploymentType) throws IlrApplicationException
IlrApplicationException
- If an error occurs during the generation of the RuleApp. For instance, if a rule
is found at the beginning of the transaction and it is removed by another user before the end of the transaction,
then an IlrObjectNotFoundException
is thrown.ruleAppHandle
- The handle on the RuleApp from which the archive should be generated.url
- The URL of the execution server (something like http://hostname:port/bres).username
- The user name of the RES user to use to deploy the RuleApp.password
- The password of the RES user to use to deploy the RuleApp.versioningPolicy
- The versioning policy to apply when deploying the archive to Rule Execution Server. This
should be one of INC_MAJOR
, INC_MINOR
, REPLACE_RULEAPP
, INC_MAJOR_RULESET
,
INC_MINOR_RULESET
, or REPLACE_RULESET
.tagName
- The name of the tag to create or to use during generation.deploymentType
- One of IlrDeploymentFacility.DEPLOY
or IlrDeploymentFacility.REDEPLOY
.
generateRuleAppArchive(IlrElementHandle, String, int)
void deployEventProject(String url, String username, String password, String deploymentTag) throws IlrApplicationException
IlrApplicationException
- If an error occurs during the deployment of the project.url
- The URL to the WBE runtime (something like http://hostname:port).username
- The user name of the WBE runtime user to use to deploy the project.password
- The password of the WBE runtime user to use to deploy the project.deploymentTag
- The name of the tag to create or to use during deployment. If null
, the entire project will be deployed.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |