Rational Developer for System z, Version 7.6

Associating an operation with the flow

This topic describes how to associate an operation with a flow.

Select Interface Operation

The Select Interface Operation (or Select Operation) menu selection or, alternatively, the corresponding drag feature, allows you to do the following things:
  • To associate an operation with a flow that does not have an operation associated with it; or
  • To replace the operation currently associated with the flow with a new associated operation.
Note: The operation must come from an interface definition subproject, not from a nonterminal applications subproject, a terminal applications subproject, or an outbound Web services subproject.

When you associate an operation with a flow, the flow editor:
  1. Associates the port type and program name of the operation with the flow. The flow must be invoked using this program name.
  2. Associates the input message referenced by the operation with the Receive node of the flow, and associates the output message referenced by the operation with the Reply node of the flow. If the flow does not yet contain a Receive node and a Reply node then the service flow project creates them.
    Figure 1. Receive node and Reply node
    Receive node and Reply node
To associate an operation with a flow, you can either:
  • Drag an operation from the EST Project Explorer to the flow editor canvas; or
  • Select an operation from a window.

Using the drag feature

To drag an operation:
  1. In the EST Project Explorer:
    1. Expand the service flow project containing the operation that you want to use.
    2. Expand the interface definition subproject.
    3. Expand the Operations subfolder.
    4. Expand the operations file.
    5. Select the operation that you want to use.
  2. Drag the operation to the flow editor canvas.
  3. The flow editor associates the operation with the flow.

Selecting an operation from a window

To select an operation from a window:
  1. In the flow editor, right-click anywhere over a blank area of the canvas, then select Select Interface Operation from the contextual menu.
    Note: Alternatively, you can select Flow > Select Operation from the main menu of the workbench.
  2. The Select Operation window opens. The left pane of this window shows a filtered version of the EST Project Explorer that includes the artifacts shown in Table 1.
    Table 1. Artifacts in the Select Operation window
    Type of artifact: From which types of folder and subfolder: From which service flow projects:
    • All operations
    Operations subfolders in:
    • Interface definition subproject
    • The service flow project to which the flow belongs.
  3. In the Select Interface Operation window:
    1. Expand a service flow project.
    2. Expand the interface definition subproject.
    3. Expand the Operations subfolder.
    4. Expand an operations file.
    5. Select the operation that you want to use.
    6. Click OK to close the Select Operation window.
  4. The flow editor associates the operation with the flow.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)