
上QQ阅读APP看书,第一时间看更新
A custom sequence
The two previous sequences are defined by default in the Enterprise Integrator, but we can create the custom sequences that we need. The principal idea of a sequence is that it needs to be as generic as possible, because every sequence can be used by different services, no matter whether they are SOAP or REST, Proxy, or API.
Here's the syntax:
<sequence name="string" [onError="string"] [key="string"] [trace="enable"] [statistics="enable"]> mediator* </sequence>
- The onError attribute sets the sequence that will be triggered when there's a problem during the processing of the sequence, instead of using the default fault sequence
- statistics enable or disable the statistics collection to track the number of messages processed and the processing times
- trace enables or disables the trace collection in which the messages will write tracing information through each mediation step