Show TOC

Modeling the Service FlowLocate this document in the navigation structure

Prerequisites

  • You have created a service composition-enabled project in your workspace.

  • You have created a composed service out of a service interface.

  • You have opened the diagram of the composed service operation.

Context

Modeling the flow of the consumed service operations results in connecting an arbitrary number of service operations within a diagram. Each service operation that is included in the service flow diagram will be invoked at runtime. The provider of the service operation that you consume in your service flow can be:

  • Remote Function Call (RFC) - the RFC comes from the back-end service of the Application Service ABAP (AS ABAP).

  • JAX-WS EJB.

  • Enterprise Service.

Procedure

  1. Select the service operation of the composed service in the Project Explorer view of the SAP NetWeaver Developer Studio. Open the context menu and choose Open .

    The chosen service operation is represented in the service flow diagram with its service operation input and output.

  2. Within the service operation's diagram, add the service operations that you want to call at runtime.

    You can directly drag and drop different service operations that you want to consume in the service flow. You use the Palette to import elements in the diagram. In addition, you can use the Search Console view and directly drag and drop service operations from it into the composed service operation's flow diagram. Note that you can call one and the same service operation several times in one and the same service flow.

    For more information about the search capabilities you can use in the Search Console, see Browsing Services in Search Console .

  3. Define the execution order of the service operations in the diagram. To do that use the Palette objects:
    • Service Operation

    • Parallel Split

      Use it to graphically represent that the data from a service operation should be transferred as input for several other service operations. The execution behavior will be the same as if you call the service operations one after the other.

    • Parallel Join

      Use it to graphically represent a number of outputs that need to be gathered in a single output result. The execution behavior will be the same if you take the output of several service operations and use them as a single service operation input. Still, the service operation that needs the data as input will have to wait for all service operations to send their outputs.

  4. Define the order of the service flow execution. To do that you use the Sequence Flow from the Palette .

    To orchestrate and define the order in which the consumed service operations need to be called at runtime, you can also use the speed buttons to create the connections. These buttons are displayed around the start event, consumed service operations, parallel splits, and parallel joins. Click the speed button and route the connection to the destination point.

    Note

    If you have to work with many elements in the diagram, open the context menu inside the diagram editor, and choose Format Diagram . This will put in order the service flow elements. You can also use the Miniature view of the Developer Studio for easier orientation in complex service flow diagrams.