ActiveBPEL® Designer User’s Guide
You have now completed:
In the Navigator view of ActiveBPEL, you should have the following:
By completing Part 5 of the tutorial, you will be able to:
Step 1: Use the Outline view to add and select building blocks
The Outline view displays all major components of a BPEL process. The Outline view shown on the left is the default for a new process, containing only the parent nodes. Your Outline should look like the one on the right. By starting your process using Web References, you have automatically added the appropriate namespace, partner links, variables, and several activities.
|
|
|
Tip: You can move items up and down to reorganize them. You can right-mouse click on a node to add new items of the same type.
Step 2: Rename a Namespace Prefix
Each WSDL file declares one or more namespaces that provide a context for messages, port types, and other definitions. The namespaces that are declared in the WSDL files that your process references must also be declared in the process itself.
Because one namespace can have many WSDL files associated with it, ActiveBPEL identifies the correct WSDL file by using the Imports function. The Operation wizard automatically added the import, and added a default namespace prefix, which you can rename to make it more meaningful.

ns1 namespace,
which is the namespace the Operation wizard added.
lns (lns is
short for loan namespace) in the Prefix field
to provide a shortcut for the loan approval URI reference. Press
Enter.
Tip: All new processes contain two common namespaces. The xsd namespace defines the location of the XML schema. The bpel namespace defines the location of the BPEL schema.
Step 3: Use a Shortcut to Automatically Create an Assign Activity
There is one more activity the process needs, an Assign. In the loan approval process, the assessor must assign a congratulations-type value to the approval message sent to the customer in the Reply. An Assign accomplishes this through a Copy Operation.
Within the Process Variables view, you can create a Copy Operation automatically. The Copy Operation copies a literal value (“yes”) to a message part (accept).
approval variable,
and select Open.
accept message
part, and select Copy> To, as the illustration
shows.
Note: The Copy >To option means create the TO side of the Copy Operation.

yes in the Literal
Contents field.

AssignYestoAccept.
Tip: There are more shortcuts you can take when working with variables. Be sure to read the Using Variables section of ActiveBPEL Online Help.
Step 4: Add Links for Sequencing Activities
Depending on the loan amount in the request, either the loan assessor’s Web service or the loan approver’s Web service is invoked. Our process implements this logic by linking the Receive to both Invokes. Since the sequence is conditional, a transition condition will be added to both links in Step 5.
receive-to-assess.
receive-to-approve.
Step 5: Add a Transition Condition to Links
receive-to-assess link
in the Process Editor.
amount part
of the request variable to add the appropriate
expression to the Transition box.
10000, as shown in the following
example. Click OK.

receive-to-approve link,
add the expression as follows: $request.amount >= 10000,
and click OK.
Step 6: Add links and link transitions for the Invoke activities
The Loan Assessor returns a result of high risk or low risk for the customer. The process can assign the low risk message to a congratulations-type of reply to the customer or send a high risk message to invoke the Loan Approver for a full review of the customer.
assess-to-approve.
$risk.level != 'low'
assess-to-setMessage with
a transition expression:
$risk.level = 'low'.
Your process should look like the following illustration.

Step 7: Add a Create Instance property to the Receive activity
The Receive is the activity that kicks off the process, so
you must set the Create Instance property to Yes.
Step 8: Disable the Abstract Process setting and validate your process

If any errors are listed, double-click the error to go to the source of the error. You can also compare your file to loanapproval_tutorial_complete.bpel to discover any differences.
You have completed the main process definition.
Continue to Tutorial Part 6: Adding Fault Handling.
Copyright (c) 2004-2007 Active Endpoints, Inc.