IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows > Invoking a service > Retrying a failed service invocation
Retrying a different service
Occurs if alternate services are available to receive the retry. Only available through the Service Invoke primitive.
Retrying a different service once a fault response is received is done by wiring the fault terminal(s) of the Service Invoke primitive to other primitives. A sample of this is shown in the figure below.
As can be seen from the diagram:
- The primitive ServiceInvoke1 is used to invoke a service.
- Its output terminal is wired through an optional Mapping primitive, XSLT1, to transform the response into the form needed for the next primitive.
- The fault terminal is wired through XSLT2, which is again optional, to the input of a second Service Invoke primitive, ServiceInvoke2. When the initial invocation receives a fault response, the message will be propagated to this second Service Invoke primitive.
- The output terminal of ServiceInvoke2 is wired through an optional transform, XSLT3, to the next primitive, while its fault terminal is wired to a fail primitive which halts the mediation flow.