Petals-SE-EIP 2.5

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

Changes (34)

View Page History

{include:0 CDK SU Provide Configuration}
\\
{include:0 JBI SU Consume Configuration}
\\
{include:0 CDK SU Interceptor configuration}

* The process can continue, ignoring the {{Fault}} or the {{Error}} received

{note:title=Caution}The MEP is mandatory for each {{consumes}} consumes sections.{note}
{note:title=Caution}Either an operation must be specified in the {{consumes}} consumes sections or the 'original' operation is used for 'sub-service' requests.{note}

h3. Aggregator Pattern
{center} !aggregator.gif!{center}

{center}{*}Configuration {center}*Configuration of a Service Unit to provide a service (Aggregator)*{center}

{table-plus}


|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{aggregator}} | {center}\-{center} |
Once an 'original' exchange message matches the XPath expression specified in the SU parameter {{test}}, the message and the previous stored messages on the condition {{aggregator-correlation}} are aggregated and send to the target 'sub-service'.
The current 'original' exchange properties are copied into the target exchange.
The aggregated content is the result of a concatenation with the given structure :
The aggregated content is the result of a concatenation of the messages in the following form :

{code:xml}

{note:title=Caution}Message order is kept from incoming sequence to the outgoing message.{note}
{note:title=Caution}{{{}consumes}} sections cardinality is [1-1|1-1]
{note}
{note:title=Caution}{{consumes}} sections cardinality is [1-1].{note}
{note:title=Caution}All the Message Exchange Pattern are accepted for the source exchanges{note}

{center} !scattergather.gif!{center}
\\
{center}{*}Configuration {center}*Configuration of a Service Unit to provide a service (Scatter-Gather)*{center}
{table-plus}

|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{scatter-gather}} | {center}\-{center} |
| fault-robust | If true, a fault returned by a 'sub-service' exchange don not interrupt the process of the process | {center}false{center} |
| aggregator-correlation | If true, an exception thrown by a targer exchange don't stop the process and don't change the original exchange status to {{ERROR}}. | {center}false{center} |
| error-robust | If true, an exception thrown by a 'sub-service' exchange xchange do not interrupt the process of the process | {center}false{center} |
{table-plus}
\\
The EIP Component forwards the message to all the services referenced in the consumes sections. The EIP component waits for all the responses from these services, and aggregates them. The aggregation is returned to the original consumer :
The EIP Component forwards the message to all the 'sub-service'. The EIP component waits for all the responses from these services, and aggregates them.
The aggregation is returned to the 'original' consumer in the following form :

{code:xml}
{code}

An example of service unit configuration :
An example of Service Unit configuration for the *scatter-gather* pattern :

{code:xml}
{code}

{note:title=Caution}{{{}consumes}} sections cardinality is [1-n|1-n]
{note}
{note:title=Caution}{{consumes}} sections cardinality is [1-n].{note}
{note:title=Caution}Message exchange pattern of the incoming exchange is {{InOut}}.{note}
{note:title=Caution}By default, the process stops when a Fault is returned by a 'sub-service'. To continue the process even if a fault is thrown, set the {{fault-robust}} parameter to {{TRUE}}. The fault is concatenated with the other results.{note}
{note:title=Caution}By default, the process stops when an Exception is returned by a 'sub-service'. To continue the process even if an exception is thrown, set the {{exception-robust}} to {{TRUE}}. The exception is concatenated with the others results.{note}

{note:title=Caution}
message exchange pattern of the incoming exchange is {{InOut}}.
{note}

{note:title=Caution}
By default, the process stops when a Fault is returned by the provider. To continue the process even if a fault is thrown, set the fault-robust parameter to {{TRUE}}. The fault is concatenated with the others results.
{note}

{note:title=Caution}
By default, the process stops when an Exception is returned by the provider. To continue the process even if an exception is thrown, set the exception-robust to {{TRUE}}. The exception is concatenate with the others results.
{note}

h3. Routing-Slip Pattern

{center} !routingslip.gif!{center}

{center}{*}Configuration {center}*Configuration of a Service Unit to provide a service (EIP)*{center}
{table-plus}

{table-plus}


|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{routing-slip}}. | {center}\-{center} |
| fault-to-exception | If true, a fault received from the target service is transformed to an exception into the source exchange. | {center}false{center} |
{table-plus}
\\
The EIP Component chains invocation of the referenced services in the {{consumes}} sections, in the order that they are declared. The IN message of the incoming exchange is sent to the first service; the OUT response of this service is sent to the second service as an IN message, and so on. The last target exchange is matched with the source exchange as better as possible. So : 
* If the source exchange needs a response (InOut or InOptionalOut patterns) and no response are received (InOnly, RobustInOnly or InOptionalOut patterns), a default response is returned :



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{wire-tap}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{splitter}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{bridge}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{router}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dynamic-router}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dispatcher}}. | {center}\-{center} |



|| Parameter || Description || Default || Required ||
| your-pattern-name | Name of the java class implementing your pattern. The name of the pattern at runtime will be the one you give as parameter name | {center}\-{center} | {center}No{center} |