Generating and Deploying Business Rules

In TIBCO BusinessEvents WebStudio, using the BuildAndDeploy status menu option in the Worklist window you can generate the rule template instance file and hot deploy the business rule.

Prerequisites

  • For generation of rule template instance file and hot deployment of a business rule, you must have a generated EAR for the project. See Generating the Project EAR or All Project Class Files for more details.
  • Ensure that JMX connection details for the environments where you must deploy are configured for the projects in the hot deploy properties group in the RMS.cdd file. See Hot Deploy Property Group Reference for more details on the hot deploy properties. Using these properties you can deploy multiple projects in a single environment or a single project in multiple environments.
  • You can generate the class file and hot deploy a decision table only after it is approved. See Working with the Worklist Items on how to approve a committed request.
  • For hot deployment of the business rule, ensure that the project's CDD file (for which the business rule is hot deployed) have the be.cluster.ruletemplateinstances.deploy.dir property under the appropriate processing unit, for example default. The property points to the location where artifacts are generated and also identified by the RMS property ws.artifact.deploy.location (see Common Property Group for more details on the property). For example, the rule template instance file for the CreditCardApplication project is stored at BE_HOME\rms\shared\CreditCardApplication.

Procedure

  1. Open the worklist window using any of the following methods:
    • Click WebStudio, with the down-pointing triangle in front of it, and select RMS > Show Worklist.
    • Right-click any artifact and select RMS > Show Worklist.
    • Click the Show Worklist icon in the RMS toolbar.

      The worklist window displays all the requests submitted for approval as well as approved requests.

  2. To view the approved business rules, click the triangle in front of the Revision ID. To examine the business rule before taking an action, double-click the rule.
    The business rule is displayed in the editor.
  3. To generate rule template instance file and hot deploy the business rule, click the Approved status under the Status column, and select BuildAndDeploy from the status drop-down menu.
    WebStudio performs auto-validation of the artifact to ensure that the update does not affect the runtime execution.
    A message field displays error messages in the event of a problem.
  4. To start generating rule template instance file, click anywhere outside the drop-down menu and click Ok.