ActiveVOS Designer User’s Guide

Tutorial Part 4: Creating Partner Service Provider Activities

If you have not already done so, complete or review Tutorial Part 1: Starting a New Process, Tutorial Part 2: Planning and Designing a Process, and Tutorial Part 3: Creating a Process Service Consumer Participant.

In Part 3 of the tutorial, you created a participant for the process role and the associated receive and reply activities. Now we will create the partner services that assess and approve/deny the loan request.

In the Project Explorer view of ActiveVOS, you should have the following:

By completing Part 4 of the tutorial, you will be able to:

Step 1: Create the Risk Assessment Service Provider

Recall that our process receives a request for a loan approval and that, depending on the loan amount, the request is sent to one of two services. A low amount is immediately sent to the risk assessment service. This service then checks to see if the customer is a high risk borrower.

  1. Ensure your file, tutorial.bpel, is open in the Process Editor.
  2. In the Participants view, right-mouse click on Partner Service Providers and select New Partner Service Provider.
  3. Name the service provider RiskAssessment.
  4. Notice that the Interfaces tree displays the LoanProcess port type already in use for the process. Expand Workspace to display available port types, and select RiskAssessment, as shown.
  5. Participants view - new interface

  6. Click OK.

Step 3: Create the Invoke Risk Assessor Activity

The process requires invocation of the risk assessment service. We can take a shortcut for creating this activity.

  1. In Participants view, expand RiskAssessment.
  2. Select the check operation, as shown in the example.
  3. Participants view - operation check

  4. Drag the check operation to the Process Editor.
  5. A new invoke activity is automatically created, named check. In the Properties view, change the Activity Name to InvokeRiskAssessor.
  6. Notice that the participant and operation are automatically filled in.

  7. Select the Input tab.
  8. In the Assignment Type field, select Single Variable.
  9. From the Variable drop-down, select creditInformation, as shown.
  10. Input tab of invoke activity

  11. Select the Output tab.
  12. In the Assignment Type field, select Single Variable, if needed.
  13. From the Variable drop-down, select New Variable.
  14. In the New Variable dialog, name the variable riskAssessment, as shown.

Output tab of invoke activity

Tip: Receive and Reply activities can also be created automatically (like these invoke activities) by dragging a process service consumer operation to the Process Editor.

Step 4: Create the Loan Approval Service Provider

We need to create one more service for the process.

  1. In the Participants view, right-mouse click on Partner Service Providers and select New Partner Service Provider.
  2. Name the service provider LoanApproval.
  3. Expand Workspace to display available port types, and select LoanApproval.
  4. Click OK.

Step 5: Create the Invoke Loan Approval Activity

  1. In Participants view, expand LoanApproval.
  2. Select the approve operation.
  3. Drag the approve operation to the Process Editor.
  4. A new invoke activity is automatically created, named approve. In the Properties view, change the Activity Name to InvokeLoanApprover.
  5. Notice that the participant and operation are automatically filled in.

  6. Select the Input tab.
  7. In the Assignment Type field, select Single Variable.
  8. From the Variable drop-down, select creditInformation.
  9. Select the Output tab.
  10. In the Assignment Type field, select Single Variable, if needed.
  11. In the Variable field, select approval.

You should now have four activities on the Process Editor canvas, as shown.

Partially built process containing four activities

The Participants view should look similar to the following:

Particpants view with 3 participants

Save your file. More errors appear, but these will be corrected as we continue to build the process.

The Web service activities are in place, and you can continue to Tutorial Part 5: Adding Process Activities and Properties.