Implementing custom mediation logic

Custom mediation primitives allow you to implement your own mediation logic by using Java™ code, or to call a service that is external to the mediation flow by invoking an import.

The custom mediation primitive has an input terminal, an output terminal, and a fail terminal. The input terminal is wired to accept a message and the output and fail terminals are wired to propagate the message. The input message is passed as the input parameter to the Java code or the import. If the operation returns successfully the response from the Java code or import is propagated to the primitive's output terminal. If the operation returns unsuccessfully, the fail terminal propagates the original message, together with any exception information.
Related concepts
Mediation services overview
Mediation Flow editor
Related tasks
Creating a mediation flow
Opening the Mediation Flow editor
Building mediation flows
Emitting common base events
Creating mappings for the XSL Transformation primitive
Selecting endpoints dynamically
Storing and using properties in the message context
Changing the value of mediation flow properties at runtime
Testing and debugging mediation modules
Related reference
Error handling in the mediation flow
Considerations when refactoring mediation flow artifacts

Related information

Tutorial: Create a mediation flow
Samples: Mediation Flow editor
Contributing your own mediation primitive plug-in

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.