Decision Center API

ilog.rules.teamserver.model
Interface IlrDeploymentFacility

All Known Subinterfaces:
IlrSession

public interface IlrDeploymentFacility

Deployment services for a Decision Center session, allowing to generate and deploy rulesets and RuleApps.

See Also:
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

DEPLOY

static final int DEPLOY
Deploy deployment type.

See Also:
Constant Field Values

REDEPLOY

static final int REDEPLOY
Redeploy deployment type.

See Also:
Constant Field Values

INC_MAJOR

static final String INC_MAJOR
Increment major version (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values

INC_MINOR

static final String INC_MINOR
Increment minor version (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values

REPLACE_RULEAPP

static final String REPLACE_RULEAPP
Replace the RuleApp (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values

INC_MAJOR_RULESET

static final String INC_MAJOR_RULESET
Increment the major version of the rulesets (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values

INC_MINOR_RULESET

static final String INC_MINOR_RULESET
Increment the minor version of the rulesets (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values

REPLACE_RULESET

static final String REPLACE_RULESET
Replace the rulesets contained in the RuleApp (RuleApp versioning policy).

See Also:
deployRuleAppArchive(IlrElementHandle, String, String, String, String, String, int), Constant Field Values
Method Detail

generateRulesetArchive

IlrArchiveOutput generateRulesetArchive(IlrSearchCriteria searchCriteria,
                                        String extractorValidatorSymbol,
                                        String rulesetName)
                                        throws IlrApplicationException
Generates a ruleset archive for the given query and extractor validator symbol.

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:

Throws:
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.
Parameters:
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.
Returns:
An archive output.
See Also:
IlrExtractorValidator

generateRuleAppArchive

IlrArchiveOutput generateRuleAppArchive(IlrElementHandle ruleAppHandle,
                                        String tagName,
                                        int deploymentType)
                                        throws IlrApplicationException
Generates a RuleApp archive for the given RuleApp and tag name.

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:

The tag name and deployment type parameters are interpreted as follows:

Throws:
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.
Parameters:
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.
Returns:
An archive output.

deployRuleAppArchive

IlrArchiveOutput deployRuleAppArchive(IlrElementHandle ruleAppHandle,
                                      String url,
                                      String username,
                                      String password,
                                      String versioningPolicy,
                                      String tagName,
                                      int deploymentType)
                                      throws IlrApplicationException
Generates a RuleApp archive for the given RuleApp and tag name and deploys it to the given Rule Execution Server.

Throws:
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.
Parameters:
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.
Returns:
An archive output.
See Also:
generateRuleAppArchive(IlrElementHandle, String, int)

deployEventProject

void deployEventProject(String url,
                        String username,
                        String password,
                        String deploymentTag)
                        throws IlrApplicationException
Deploys an Event project to a WBE runtime. If a tag is specified and already exists, the deployment will use this tag.

Throws:
IlrApplicationException - If an error occurs during the deployment of the project.
Parameters:
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

© Copyright IBM Corp. 1987, 2013