ActiveVOS Designer User’s Guide

Tutorial Part 9: Deploying the Process

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

If you have followed all tutorial parts so far, you have designed and debugged a BPEL process.

It is time to deploy the process to the ActiveVOS embedded server. Deployment is the act of publishing your BPEL process to the ActiveVOS server where it can run. In the deployment procedure, you use the WS-Addressing specification to define endpoint references.

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

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

Step 1: Complete the prerequisite checklist for deployment

A BPEL file is ready for deployment to the ActiveVOS Server when there are no errors in the Problems view and when a simulated execution of the process terminates normally.

  1. Open tutorial.bpel.
  2. Simulate the process, as described in Tutorial Part 8: Simulating the Process, and test all execution paths.

Step 2: Create a process deployment descriptor file

A Process Deployment Descriptor (.pdd) file describes the relationship between the participant partner links defined in the BPEL file and the implementation required to interact with actual partner endpoints. You create a .pdd file to add address information about your endpoint references. The .pdd file is an integral part of the deployment package for the process.

Recall that the loan approval process has the following definitions for partner links:

You will assign an endpoint type for each partner role and will provide access protocol information for the process role (My Role). An endpoint type is a binding property that indicates the actual service the process interacts with. Different types give you control over specifying services you work with now and in the future. In this tutorial, you will indicate a static reference to partner services.

  1. Select File>New>Deployment Descriptor to open the New Deployment Descriptor dialog.
  2. Select tutorial.bpel, and click Next.
  3. Select the deploy folder to store your deployment descriptor, shown in the example below, and click Finish to open the PDD Editor.
  4. New Deployment Descriptor wizard, page one

  5. On the General tab, do not make any changes.
  6. On the Partner Links tab, select the LoanApproval partner link.
  7. Select WSA Address from the Invoke Handlers list. This addressing technique provides flexibility in deploying your processes into different server locations.
  8. Select the Dialog (...) Button next to the Endpoint Reference text box. In the Endpoint Reference Dialog, notice that LoanApproval.wsdl is selected, and the matching service is selected as shown. Select OK.
  9. Endpoint Referencee selection

    WS-Addressing is automatically added based on the binding information in the WSDL file. Note that a URN is supplied as the address. On the server we have already mapped this URN to a URL for the tutorial.

  10. On the Partner Links tab, leave Static as is from the Endpoint Type list, as shown in the example.
  11. New Deployment Descriptor wizard, partner link definition

  12. Select RiskAssessment, select WSA Address as the Invoke Handler, accept the riskAssessment.wsdl and service as the Endpoint Reference, and leave Static as the Endpoint Type.
  13. Select loanProcessor, and in the My Role panel, select Document Literal for the Binding style.
  14. In the Service field, type the name TutorialService.
  15. Save and close tutorial.pdd.

Step 3: Starting the ActiveVOS Server

We will deploy tutorial.pdd and its resources to the server. To do so, we will start up the server.

The ActiveVOS Server consists of the ActiveVOS engine running under Apache Tomcat. Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies.

  1. Select the Servers view in the lower right of the workspace.
  2. Right-mouse click within the Servers view and select New>Server as shown in the illustration.
  3. New Server

  4. In the Server type list, select ActiveVOS Server, click Next, and select Finish.
  5. Select the Start the Server button, as shown in the example.
  6. start the server

  7. As the server starts up, you see start up tasks scroll in the Console. Several files are deployed to the embedded server each time you start it. Many of these files are for BPEL for People activities that you may want to create for your next project. When the server is started, the message indicates this, as shown.
  8. server started

Step 4: Create a business process deployment archive

To deploy your process to the ActiveVOS Server, you must add all relevant files to an archive file (.bpr file), which is similar to a Web archive file.

  1. Select File>Export>Orchestration>Business Process Archive File and click Next.
  2. Select the tutorial.pdd file to include in the archive, as shown in the following example.
  3. Export Business Process Archive  dialog

  4. For the export destination BPR file, browse to the deploy folder and name the .bpr file tutorial.bpr. Your path should be similar to the following:
  5. designer\workspace\Tutorial\deploy\tutorial.bpr
  6. In the Type field, select Web Service. The engine’s default address is automatically filled in for the Deployment URL. If you changed your host and port information during installation, change the URL here.)
  7. Selecting this option automatically deploys your .bpr file to the ActiveVOS server upon completion of the export.

  8. Select the check box next to Save the archive specification..., and browse to the deploy folder.
  9. Name the BPRD file tutorial.bprd. This file is an Ant script which you can run to re-deploy the bpr file whenever you modify a .bpel or .pdd file.
  10. Select Finish. A deployment details dialog shows the results.

Your BPR file has been automatically deployed to the server, as indicated by the information dialog. You can also see the results in the Console.

Console

Continue to Tutorial Part 10: Creating a Request to Run the Process.