IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows

Implementing custom mediation logic

Custom mediation primitives allow you to implement your own mediation logic by using Java™ code.

By default, a custom mediation primitive has an input terminal, an output terminal, and a fail terminal. You can add more input and output terminals to the primitive. The input terminals are wired to accept a message and the output and fail terminals are wired to propagate the message. The input message is passed as an input parameter to the Java code. The code is responsible for propagating the output message to the output terminal. If an exception is encountered while executing the Java code, the original message is propagated to the fail terminal, together with any exception information.

Building mediation flows