官术网_书友最值得收藏!

  • WS-BPEL 2.0 Beginner's Guide
  • Matjaz B. Juric Denis Weerasiri
  • 154字
  • 2021-08-05 18:01:36

Understanding a parallel flow

To invoke services concurrently, we can use the <flow> construct. In the following example, the three <invoke> operations will perform concurrently:

<process ...>
  ...
  <sequence>
    <!-- Wait for the incoming request to start the process -->
    <receive ... />

    <!-- Invoke a set of related services, concurrently -->
 <flow>
      <invoke ... />
      <invoke ... />
      <invoke ... />
 </flow>
    ...
    <!-- Return the response -->
    <reply ... />
  </sequence>
</process>

We can also combine and nest the <sequence> and <flow> constructs that allow us to define several sequences that execute concurrently. In the following example, we have defined two sequences, one that consists of three invocations, and one with two invocations. Both sequences will execute concurrently:

<process ...>
  ...
 <sequence>
    <!-- Wait for the incoming request to start the process -->
    <receive ... />

    <!-- Invoke two sequences concurrently -->
 <flow>
      <!-- The three invokes below execute sequentially -->
 <sequence>
        <invoke ... />
        <invoke ... />
        <invoke ... />
 </sequence>
      <!-- The two invokes below execute sequentially -->
 <sequence>
        <invoke ... />
        <invoke ... />
 </sequence>
 </flow>
    ...
    <!-- Return the response -->
    <reply ... />
 </sequence>
</process>

We can use other activities as well within the <flow> activity to achieve parallel execution. With this, we have concluded our discussion on the parallel invocation.

Pop quiz – service invocation

Q1. Which activity is used to invoke services from BPEL processes?

  1. <receive>
  2. <invoke>
  3. <sequence>
  4. <flow>
  5. <process>
  6. <reply>

Q2. Which parameters do we need to specify for the <invoke> activity?

  1. endpointURL
  2. partnerLink
  3. operationName
  4. operation
  5. portType
  6. portTypeLink

Q3. In which file do we declare partner link types?

Q4. Which activity is used to execute service invocation and other BPEL activities in parallel?

  1. <receive>
  2. <invoke>
  3. <sequence>
  4. <flow>
  5. <process>
  6. <reply>
主站蜘蛛池模板: 都昌县| 沙河市| 贵德县| 汾阳市| 健康| 萍乡市| 澜沧| 临武县| 奈曼旗| 阳西县| 阿合奇县| 武清区| 大足县| 巴林右旗| 巨野县| 平果县| 宽城| 牙克石市| 诸暨市| 盱眙县| 台山市| 十堰市| 昭平县| 上饶市| 长寿区| 云阳县| 措美县| 尉犁县| 牟定县| 南部县| 兰考县| 黑山县| 中超| 萨嘎县| 古丈县| 河源市| 三明市| 阿克苏市| 社旗县| 淮南市| 凤冈县|