ActiveVOS Designer User’s Guide

Tutorial Part 10: Running the Process on the Server

To start at the beginning of the tutorial, see Introduction to ActiveVOS Tutorial.

If you have followed all tutorial parts so far, you have deployed a BPEL process to ActiveVOS Server.

After deploying the process to the ActiveVOS Server, you must deploy the partner services, and then you can run the process by sending in a credit information request and getting back a response from the assessor or approver.

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

Step 1: Open a browser to view the ActiveVOS Console

You can view deployment details for your processes in the ActiveVOS Console.

  1. On the Designer menu bar, select the ActiveVOS Console icon.
  2. The ActiveVOS Console opens, using a URL of http://localhost:8080/activevos.
  3. Administration Console

  4. On the menu, select Admin.
  5. Select URN Mappings. Notice that a URN to URL mapping is defined. This mapping is for the address of the Loan Approval and Risk Assessment services. (This URN mapping exists only in the embedded server. If you are deploying to a different server, such as ActiveVOS on JBoss, you will not see any pre-existing URN mappings. You must add them.)
  6. URN mappings

Normally you will add your own URN mappings. However, for the convenience of the tutorial, the partner role URNs have been mapped to a URL for you.

Note: Be sure that the host port 8080 in the URL is correct. If you selected a different port during installation of ActiveVOS Designer, select the URN to open the URL for editing. Update the URL so that the host port matches your server host port.

Step 2: Deploying the Risk Assessment and Loan Approval Services

The Loan Approval and Risk Assessment services have been created as BPEL processes for the convenience of this tutorial, and they have already been packaged in a BPR file. You must deploy these services. Then, when you execute the tutorial process, one or both of these services will also execute. They will be invoked at the URL defined in the URN mapping.

  1. In the Server Console, select Deploy as shown.
  2. Administration Console with Deploy button call out

  3. In the Deploy dialog, browse to the following location:
  4. [ActiveVOS Designer installation folder]\designer\workspace\Tutorial\Partner_Services\riskAssessment.bpr
  5. Deploy this BPR, and select Deploy another resource and select the loanApproval.bpr.

You can view the deployed processes. To do so, in the Server Console, select Catalog, and then select Process Definitions. You will see the listing for the tutorial, risk assessment, and loan approval processes.

Step 3: Launch the Web Services Explorer

We need to copy the TutorialService URL into the Web Services explorer in order to send a request to the process.

  1. From the Designer Run menu, select Launch the Web Services Explorer.
  2. Select the icon (upper right pane) for WSDL Page.
  3. Select WSDL Main.
  4. Return to the browser, and in the ActiveVOS Console, select Service Definitions.
  5. On the Service Definitions page, select TutorialService.
  6. From the address bar, copy the TutorialService URL:
  7. http://localhost:8080/active-bpel/services/TutorialService?wsdl

  8. Paste this URL into the Web Services Explorer WSDL URL field as shown:
  9. WSDL URL of Web Services Explorer

Step 4: Send a request to the process

You can create an instance of the process by using the Web Services Explorer to initiate the Receive activity in tutorial.bpel.

  1. In the Web Services Explorer, select Go under the WSDL URL field.
  2. Select the request link.
  3. Fill in the message parts. The required parts are Last Name and amountRequested. Fill in Smith for Last name and a high amount, such as 15000, as shown:
  4. invoke request operation

  5. Select Go, which is located at the bottom of the message.
  6. Click the Source link, and then double-click the Status box to see the SOAP request and response sent and received.
  7. SOAP response

  8. In the ActiveVOS Console, select Monitor from the menu, and then select Active Processes. Notice that two processes have completed.
  9. On the Active Processes page, select the tutorial process. You can see the actual results returned from the loan approval service. The high amount loan request was sent to the approver immediately. The approver approved the loan.
  10. active process

For more details about the two services, and to debug your running or completed process from within ActiveVOS Designer, go to Tutorial Part 11: Debugging Your Process Remotely.