This documentation is for WSO2 Stream Processor 4.2.0. View documentation for the latest release.

All docs This doc
||
Skip to end of metadata
Go to start of metadata

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 an existing undeployed business rule, follow the procedure below:

To deploy a business rule, click the icon for deploying (marked in the above image) for the relevant row. As a result, a message appears to inform you that the rule is successfully deployed.

If the icon marked in the image above is not displayed for a business rule, it means that the rule is already deployed.

Deleting business rules

To delete an existing business rule, follow the procedure below:

To delete a business rule, click the icon for deleting (marked in the above image) 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.

  • No labels