Versions Compared

Key

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

The Rule Mediator is used to integrate the WSO2 Rules component to the WSO2 ESB in order to define dynamic integration decisions in terms of rules.

...

The parameters available to configure the Rule mediator are categorised into the following main elements.

Source

This section is used to enter the source from which the XML input for the mediator should be taken.

The parameters available in this section are as follows.

Parameter NameDescription
Value XPath This parameter can be used to enter a static value as the source.
XPathThis parameter enables you to use an XPath expression to obtain the input facts of the message from a SOAP body, a SOAP header or a property. This XPath expression can be used to specify the message path for the relevant fact type even when creating fact objects.
Target

This section is used to enter details of the destination to which the result of the mediation should be added.

The parameters available in this section are as follows.

Parameter NameDescription
ValueThis parameter is used to enter a static value to specify the location go which the resulting message should be added.
Result XpathThis parameter is used to derive the location to which the resulting message should be added via an Xpath expression.
XpathThis parameter is used to enter a Xpath expression to specify a part of the generated result XML to be added to the target.
ActionThis parameter is used to specify whether the result XML should replace the target, or whether it should be added as a child or a sibling.

 

Rule Set

The rule set contains the rules that apply to the input and output facts based on which WSO2 BRS can create the web service WSDL. input facts are the facts that are sent by the rule service client and the output facts are the facts which are received by the client.

The parameters available in this section are as follows.

Parameter NameDescription
Rule Script As

This parameter is used to specify how you want to enter the rule script. Possible options are as follows.

  • In-Lined: If this is selected, the rule script can be added within the mediator configuration.
  • Key: If this is selected, the rule script can be saved in the Registry and accessed via a key.
  • URL: If this is selected, you can refer to a rule script via a URL.
Rule TypeThis parameter is used to specify whether the rule type is Regular or Decision Table.
Input Facts
Output Facts

 

The Main Elements of the Rule Mediator

...