Rule Services

Use this configuration panel to create rule services. There are two ways for it: Rule Service Upload and Rule Service Wizard

Rule Service Upload

  1. Prepare a Rule Service Archive File (.aar) - Please refers the use guide of the BRS product documentation
  2. Uploaded the created Rule Service Archive (.aar). Figure 1 shows this

    Rule Upload UI

    Figure 1. Rule Service Upload UI

Rule Service Wizard

  1. Service Information - Specify the name and the description of the rule service. Figure 2 shows this.

    Service Information

    Figure 2. Service Information

  2. Rule Set Information - There are three ways to specify the rule set or rule script. In-lined, upload or as a registry key. Figure 3 shows how to give rule script as In-Lined. Rule set creation properties can be used to specify the different types of rule sources. For an example if the rule file is a decision table then user needs to add a property with the name 'source' and value 'javax.rules.admin.RuleExecutionSet.source.decisiontable'.

    Rule Set Information

    Figure 3. Rule Set Information

  3. Facts Upload - In this step, you have to upload facts and results that are used in your rule script. It should be a valid jar file. Figure 4 shows this.

    Facts Upload

    Figure 4. Facts Upload

  4. Operation Summary - This displays any operation available in the service. You can uses add operation button to create a new operation. Figure 5 shows this.

    Operation Summary

    Figure 5. Operation Summary

  5. Add Operation - The operation name is mandatory.You can define the required facts and results.The type is the only mandatory attribute for both facts and results.Figure 6 shows this.

    Add Operation

    Figure 5. Add Operation