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 is evaluated by the risk assessment service. This service checks the customer risk level and loan amount.

  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 Project and Project Reference Services 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, and place it between the receive and reply, as shown.
  5. bounding box for receive invoke reply

  6. A new invoke activity is automatically created, named check. In the Properties view, change the Activity Name to Invoke Risk Assessor.
  7. Notice that the participant and operation are automatically filled in.

    From the Color property palette, select Blue. Color imparts a visual difference between the participants.

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

  12. Select the Output tab.
  13. In the Assignment Type field, select Single Variable, if needed.
  14. From the Variable drop-down, select New Variable.
  15. 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 Project and Project References Services to display available port types, and select LoanApproval.
  4. Click OK.

The Participants view should look similar to the following:

Particpants view with 3 participants

We will create the invoke loan approval activity later.

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

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