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.
- Start the Dashboard Portal of WSO2 SP with one of the following commands:
- On Windows:
dashboard.bat --run
On Linux/Mac OS:
./dashboard.sh
- On Windows:
- Start a worker node with one of the following commands:
- On Windows:
worker.bat --run
On Linux/Mac OS:
./worker.sh
- On Windows:
Access the Business Rule Manager via one of the following URLs.
Protocol URL Format Example HTTP http://<SP_HOST>:<HTTP_PORT>/portal
http://0.0.0.0:9443/business-rules/
HTTPS https://<SP_HOST>:<HTTPS_PORT>/portal
https://0.0.0.0:9443/business-rules/
- Start the Dashboard Portal of WSO2 SP with one of the following commands:
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 business rule, 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.
If the rule is already deployed, the icon for undeploying the rule is displayed instead of the icon for deploying.
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.
If the rule is not yet deployed, the icon for deploying the rule is displayed instead of the icon for undeploying.
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.
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.