com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Managing Business Rules

This section covers how to view, edit, deploy and delete business rules that are created from a template.

Prerequisites

In order to manage business rules, the following prerequisites must be completed:

  • One or more business rules must be already created. For instructions to create a rule, see Creating Business Rules.
  • The Business Rules Manager should be started and accessed by following the procedure below.
    1. Start the Dashboard Portal of WSO2 SP with one of the following commands:
      • On Windows:  dashboard.bat --run
      • On Linux/Mac OS:  ./dashboard.sh

    2. Start a worker node with one of the following commands:
      • On Windows:  worker.bat --run
      • On Linux/Mac OS:  ./worker.sh

    3. Access the Business Rule Manager via one of the following URLs.

      ProtocolURL FormatExample
      HTTPhttp://<SP_HOST>:<HTTP_PORT>/portalhttp://0.0.0.0:9443/business-rules/
      HTTPShttps://<SP_HOST>:<HTTPS_PORT>/portalhttps://0.0.0.0:9443/business-rules/

Viewing business rules

Once you start and access the Business Rules Manager, the available business rules are displayed as shown in the example below.

To view a business rule, click the icon for viewing (marked in the above image) for the relevant row. This opens the rule as shown in the example below.

Editing business rules

Once you start and access the Business Rules Manager, the available business rules are displayed as shown in the example below.

To edit a business rule, click the icon for editing (marked in the above image) for the relevant row. This opens the rule as shown in the example below.

Modify values for the parameters displayed as required and click Save.

Deploying business rules

To deploy a saved business rule in a worker node, follow the steps below:

  1. Start the worker node by issuing one of the following commands:
    • On Windows:  worker.bat --run
    • On Linux/Mac OS:  ./worker.sh

  2. Start the dashboard server and access the Business Rules Manager. 
  3. Click the icon for deploying (marked in the image below) for the relevant row. As a result, a message appears to inform you that the rule is successfully deployed.


Undeploying business rules

To undeploy a business rule, click the icon for undeploying (marked in the image below) for the relevant row. As a result, a message appears to inform you that the rule is successfully undeployed.

Viewing deployment information

If you want to view information relating to the deployment of a business rule, click the icon for viewing deployment information (marked in the image below) for the relevant row. 

As a result, the deployment information including the host and port of the nodes in which the rule is deployed and the deployment status are displayed as shown in the image below. 

Possible deployment statuses are as follows:

  • Saved: The business rule is created, but not yet deployed in any SP node.
  • Deployed: The business rule is created and deployed in all the nodes of the current SP setup.
  • Partially Deployed: The business rule is created and deployed only in some of the nodes in the SP cluster. This status is also assigned when you click Save and Deploy instead of  Save at the time you create the business rule.
  • Partially Undeployed: The business rule has been previously deployed and then undeployed only in some of the nodes in the SP cluster.

Deleting business rules

To delete a business rule, click the icon for deleting (marked in the image below) for the relevant row. A message appears to confirm whether you want to proceed with the deletion. Click Delete in the message. As a result, another message appears to inform you that the rule is successfully deleted.


com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.