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 Name | Description | ||
---|---|---|---|
Value | XPath | This parameter can be used to enter a static value as the source. | |
XPath | This 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 Name | Description |
---|---|
Value | This parameter is used to enter a static value to specify the location go which the resulting message should be added. |
Result Xpath | This parameter is used to derive the location to which the resulting message should be added via an Xpath expression. |
Xpath | This parameter is used to enter a Xpath expression to specify a part of the generated result XML to be added to the target. |
Action | This 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 Name | Description |
---|---|
Rule Script As | This parameter is used to specify how you want to enter the rule script. Possible options are as follows.
|
Rule Type | This 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
...