IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows > Implementing custom mediation logic
Controlling the terminal that gets fired
Selecting the terminal to fire your message.
The selection is made through Java™ code or Visually in the snippet editor.
To use the Visual Editor:
Procedure
- Right-click the primitive and then click Show in properties.
- In the properties window, click Details and make sure Visual is selected as an implementation.
- Under Variables on the right side, click the name of the output port you want to fire (for example, 'out1') and drop it onto the canvas.
- Under Inputs click the name of the input you want to fire (for example, 'smo') and drop it onto the canvas.
- Next click the Java... button, select Fire from the list and drop it onto the canvas.
- Wire the output terminal to the top terminal of the Fire control and the message to the bottom
Example
To use the Java editor, type out1.fire(smo); where:
- out1 is the output terminal you want to fire
- smo is the input message you want to fire through out1
What to do next