August 2005
Intermediate to advanced
350 pages
10h 29m
English
The best way to learn a language is to dive into it.This section provides an extended example to illustrate some of the main elements of the BPEL language. The BPEL process in Example 5-1, which is similar to that presented in Chapter 10 (and also described in the discussion of state machines in Chapter 3), manages the processing of an insurance claim.
1 <process name="InsuranceClaim" 2 targetNamespace="http://acm.org/samples" 3 suppressJoinFailure="yes" 4 xmlns:tns=http://acm.org/samples 5 xmlns=http://schemas.xmlsoap.org/ws/2003/03/business-process/ 6 xmlns:xsd=http://www.w3.org/2001/XMLSchema 7 xmlns:addressing=http://schemas.xmlsoap.org/ws/2003/03/addressing 8 xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"> 9 10 <!-- 11 Partners in the process: 12 client - app that can initiate and kill 13 worklist - service that manages manual activities 14 --> 15 <partnerLinks> 16 <!-- 17 <partnerLink name="client" partnerLinkType="tns:InsuranceClaim" 18 myRole="InsuranceClaimProvider"/> 19 <partnerLink name="worklist" partnerLinkType="task:TaskManager" 20 partnerRole="TaskManager" myRole="TaskManagerRequester"/> 21 </partnerLinks> 22 23 <!-- Process-level variables --> 24 <variables> 25 <variable name="status" type="xsd:string"/> 26 <variable name="initiateMsg" messageType="tns:InsuranceClaimMsg"/> 27 <variable name="killEv" messageType="tns:InsuranceClaimMsg"/> 28 <variable name="taskResponse" messageType="task:taskMessage"/> ...
Read now
Unlock full access