Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A rules service can be created through the rule service wizard of the WSO2 BRS management console, as follows:1.

  1. Log in to the WSO2 BRS management console and click Create under Rules Service in the Main page.
    Image Modified 

...

  1. The Service Information

...

  1.  window opens. Enter the required information and

...

  1. click Next. The service name has to be unique.

...


  1. Image Modified 

...

  1. The Rule Set Information

...

  1.  window appears. There are four ways to specify a rule set or a rule script.

    Image Modified

    • In-lined : Script is provided in the window itself

    Image Modified

    • Registry Key: Include the rule script in the system's governance registry. (Multiple scripts can be added here).

    Image Modified

    • Rule File: Upload a Drools rules file from a folder.

    Image Modified

    • URL: Upload from a url

    Image Modified

...

  1. Once the rule is uploaded

...

  1. click Next.

...

  1. The Facts Upload

...

  1.  window appears to upload facts and results that are used in the rule script. It should be a valid jar file. Multiple jar files can be uploaded. For example, create a jar file from the facts and results defined

...

  1. in Sample Rule Definition.
    Image Modified 

...

  1. The Operations Summary

...

  1.  window appears, displaying any operations available in the service. You can also use

...

  1. the Add New Operation

...

  1.  link to create a new operation.
    Image Modified 

...

  1. The Add Operation

...

  1.  window appears. Fill in the fields appropriately. 

    Image Modified

    • Name: Operation name which is mandatory.
    • Input and output facts: You can use fact "selector" to select a type, which you have already uploaded in the input fact upload step. In this example, one fact is added with the type

...

    • as samples.userguide.PlaceOrder

...

    •  and two outputs with types

...

    • as samples.userguide.OrderReject

...

    •  and samples.userguide.OrderAccept. Note

...

    • that Type

...

    •  is the only mandatory attribute in both input and output facts.

...

  1. Click the Add button once done. This will bring you to the

...

  1. previous Operations Summary

...

  1.  window.

...

  1. Click Finish

...

  1.  to create and deploy the rule service.