In this tutorial, we will model a loan
approval business process and generate a BPEL process. The
loan approval business process is a composite application where a mortgage
company uses to process loan requests.
In this tutorial, you will:
Use business process model editor to create a loan approval business process
as below

Note
1.
Use properties view to specify
task types for each task. Both tasks “Assess Risk” and
“Review” are Service tasks while “Set to Approve” task
is not a web service, but a container to contain an assignment.


2.
Use start event with message
trigger
to represent receiving a message. You can add or remove triggers by using the
context menu of a start event object. Similarly, use end event with Error
result
to reply with an error message and use end
event with message result
to reply with approve message.

3.
Use boundary intermediate event to
represent the event that triggers the fault handle. To create a boundary
object, first create a sequence flow from the task “Review” to the
end event “Reply with Reject Message”. Right click the sequence flow and use command
Add Trigger->Error to add an error intermediate event.
Use the Validate command to ensure that the business process model is BPMN compliant.
To validate a model:

1.
Expand loanapproval.wsdl
in the artifact view as shown below. Drag the operation check and drop
to the service task “Assess Risk”. Drag the partner link riskAssessmentLinkType
and drop to the service task “Assess Risk”, Select
the “Assess Risk” service. Enter “assessor” as the
partner link.

2.
Follow the same step in (1) to
drag operation “approve” and partnerlink
loanApprovalLinkType and drop unto the service
task “Review”. Enter “approver” as the partnerlink.
3.
Drag operation request and
operation loanPartnerLinkType and drop
unto the start event “Receive a loan request”, end event
“reply with approve message” and end event “reply with reject
message”. Use partner link name “customer” in all three
cases.

4.
Add an assignment to the service
task “Set to Approve”. Use
properties view to assign string ‘yes’ to message/accept.


5.
Edit expressions or conditions in
sequence flows and tasks that can affect the process flow.

