Petals-SE-EIP

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (13)

View Page History

*Configuration of a Service Unit to provide a service (EIP)*
|| Parameter\\ || Description\\ || Default\\ || Required by pattern\\ ||
| eip\\ | The name of the pattern to execute: {{dynamic-router}}\\ | \- | All |
{table-plus}
|| Parameter || Description || Default || Required by pattern ||
| eip | The name of the pattern to execute : {{dynamic-router}} | \- | All |
| test\\ | XPath condition applied on the message to choose the target service\\ | \- | aggregator \\
splitter \\
router \\
dynamic-router \\ |
| fault-to-exception \\ | if true, a fault received from the target service is transformed to an exception into the source exchange\\ | false\\ | bridge \\
router \\
dynamic-router \\
routing-slip \\
dispatcher \\ |
{table-plus}
\\
The EIP Component evaluates expressions on OUT or fault message from a router exchange. The IN message from the source exchange is sent to the first consumes defined. Conditions are valuated against the response of this router service until a {{true}} result. Then, the exchange is forwarded to the service referenced in the {{consumes}} section matching the position of the condition, swtiching of the first consumes (used to define the routzer service). If none of the conditions are true, the exchange is forwarded to the service referenced in the last {{consumes}} section (default).

</jbi:jbi>{code}

{note:title=Caution}
{{consumes}} sections cardinality is the number of conditions plus 2
{note}

{note:title=Caution}
the first {{consumes}} section is the service to invoke to get the message to evaluate. So its pattern is {{InOut}}
{note}

{note:title=Caution}
the last {{consumes}} section is the default service to invoke if no condition has been fullfilled.
{note}

h3. Dispatcher Pattern