ActiveBPEL® Designer User’s Guide
To start at the beginning of the tutorial, see Introduction to ActiveBPEL Tutorial.
If you have followed all tutorial parts so far, you have completed a BPEL process definition that contains all the steps for normal and fault processing.
Now you will turn from the design phase to the testing phase by simulating execution of your process.
In the Project Explorer view, you should have the following files:
By completing Part 8 of the tutorial, you will be able to:
Step 1: Complete the prerequisite checklist for simulation
ActiveBPEL validates your BPEL process before you execute it, adding validation tasks to the Problems view for you to complete. The tasks are broken down into errors, warnings, and information. You must ensure your process is executable, and you must complete all error tasks before running your process.


Step 2: Load sample data files for the messages
To simulate process execution, you need to initialize process variables. ActiveBPEL has a convenient way to provide default data values and ways to override the defaults for different test scenarios.
When you create an orchestration project, you can add sample data files into the Interfaces view. The sample data is registered and is available for all processes that use the messages.
creditInformation variable
by double-clicking it. You can see the data type definition.
creditInformation and
select View Data.
Your creditInformation variable should
look similar to the following example.

riskAssessment variable.
Step 3: Generating a New Sample Data File for the errorRisk Variable
The errorRisk variable, as all the
other variables, is defined with a schema complex type and requires
namespace-qualified sample data. This means the sample data file
must contain the appropriate references to the data type definition.
We will automatically generate a valid data file using the XML Data
Wizard, as you can do with any variable to create your own samples.
Furthermore, this step is similar to generating literal contents
for the Copy Operation, as we did in Part 5 of the tutorial. This
wizard uses the type definition located in loanmessages.xsd.
errorMessage.


errorCode.
Document message
part to see the errorCode.xml file.

If you wish to view the contents of the data file, right-mouse click it, and select View Sample. The XML file opens in the editor. Close the file when you are done.
errorRisk variable.

Notice the following visual information cues in the Process Variables view:
approval variable,
notice that the icon shows a small yellow arrow pointing inward,
indicating the data is being copied TO the variable.
errorRisk variable is two-toned,
indicating is it available only as a fault variable
Step 5: Simulate Process Execution
If you have completed all previous steps in this part of the tutorial, you are ready to begin simulating execution of your process.


|
1 |
The perspective switches to a debug perspective. |
|
2 |
The beginning activity is highlighted |
|
3 |
The current variable is highlighted |
|
4 |
The sample data is cleared |
|
5 |
The Debug view is opened to run and step through a process |
|
6 |
The Console is opened to report simulation events |


Step 6: Clear the Process Execution State
Step 7: Override Default Values for Different Test Scenarios
The simulation path went through the loan assessor’s service using the default sample data value of 5001. To test the loan approver’s path, do the following.


Step 8: Simulate Fault Handling
In the loan approval process, a fault is thrown if the loan approver’s or assessor’s service cannot handle the customer request. In Tutorial Part 6: Adding Fault Handling, you added two fault handler to catch this fault and send a reply containing an error code. We will simulate this.
loanProcessFault.


Tip: You can also simulate fault handling for the loan assessor service. The same fault message is defined for both the loan approver and the loan assessor service.
To simulate fault handling for the loan assessor service,
select the Invoke Assessor activity and set the Result property
to Fault and set the Fault Name.
Change the sample data file to use an amountRequested to
be less than 10000 and re-simulate. Be sure to deselect the Override
checkbox in the Set Simulation Data dialog, if you do not use that
dialog box to change the data.
Continue to Tutorial Part 9: Deploying the Process.
Copyright (c) 2004-2008 Active Endpoints, Inc.