IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows > Implementing custom mediation logic
Create Java code in a custom mediation primitive
Create your own mediation logic by embedding a Visual or Java™ snippet in a custom mediation primitive.
To create your own Java code:
Procedure
- In the Mediation Flow editor, add the custom mediation primitive to the canvas, and wire the input and output terminals.
- Select the custom mediation primitive on the canvas to view its properties. In the properties view, click the Details tab.
- Choose Visual to create a visual snippet, or Java to create a Java snippet.
Results
Important:
- Switching between a Java snippet and a visual snippet may cause the existing implementation to be lost.
- Do not edit the generated Java files, as they will be overwritten when the mediation flow is saved.