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

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

Time for action – developing parallel flows

Let's now modify the BookWarehousingBPEL process so that the BookstoreA and BookstoreB services will be invoked in parallel. We should do the following:

  1. To invoke BookstoreA and BookstoreB services in parallel, we need to add the Flow structured activity to the process flow just before the first invocation, as shown in the following screenshot:
  2. We can see that two parallel branches have been created. We simply drag-and-drop both the invoke activities into the parallel branches:

That's all! We can create more parallel branches if we need to by clicking on the Add Sequence icon.

What just happened?

We have modified the BookWarehousingBPEL process so that the BookstoreA and BookstoreB <invoke> activities are executed in parallel. A corresponding <flow>activity has been created in the BPEL source code. Within the <flow> activity, both <invoke> activities are nested. Please notice that each <invoke> activity is placed within its own <sequence> activity. This would make sense if we would require more than one activity in each parallel branch. The BPEL source code looks like the one shown in the following screenshot:

Deploying and testing the parallel invocation

We will deploy the project to the SOA Suite process server the same way we did in the previous sample. Then, we will log in to the Enterprise Manager console, select the project Bookstore, and click on the Test Web Service button.

To observe that the services have been invoked in parallel, we can launch the flow trace (click on the Launch Flow Trace button) in the Enterprise Manager console, click on the book warehousing BPEL processes and activate the flow view, which shows that both bookstore services have been invoked in parallel.

主站蜘蛛池模板: 永福县| 临猗县| 阿克| 大竹县| 瑞丽市| 吴桥县| 台中市| 车险| 溆浦县| 大庆市| 密云县| 略阳县| 湘阴县| 黄山市| 榆中县| 湖南省| 辰溪县| 静安区| 弥渡县| 扶沟县| 宁国市| 手游| 临泉县| 遂平县| 彰武县| 贵南县| 胶州市| 错那县| 泰宁县| 开江县| 涿鹿县| 桐城市| 山阳县| 达拉特旗| 名山县| 乐昌市| 双柏县| 麻栗坡县| 迁西县| 凉城县| 大兴区|