Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial guides you on how to create a BPEL process and to assign a value in the request to the response using WSO2 Integration Studio. It walks you through the steps to demonstrate how you can assign the input string of the request message to the result string of the response message.

Tip

Before you begin,

This tutorial includes the following sections:

...

Info
titlePrerequisite

 To create a BPEL artifact, you should first Install WSO2 Integration Studio /wiki/spaces/EI6xx/pages/49612293.

  1. Start Eclipse and navigate to File → New → Other
  2. Search or scroll and find the BPEL category under the  WSO2  folder, click  BPEL Workflow , and click  Next .
  3. Select Create new BPEL Workflow on the dialog box that appears and click Next
  4. Enter the below details, and specify the Template (asynchronous process or synchronous process), and click Next
  5. Provide the Maven information for the package and click Finish. You will now have a BPEL project according to the details you specified. 
  6. Click  Open Perspective  on the below message, which pops up.

    Tip

    You will not get this message if you are already in the BPEL perspective. You can view the current perspective from the below tab.


    In the  Project Explorer  view, you view the BPEL diagram added under the project you specified and the default diagram will open up along with a Palette You can use the Palette to drag and drop artifact symbols to create the desired diagram. 


...

  1. Start the Business Process profile of WSO2 EI.

    Panel
    borderColor#542989
    bgColor#ffffff
    borderWidth1
    Localtabgroup
    Localtab
    titleOn MacOS/Linux/CentOS

    Open a terminal and execute the following command:

    Code Block
    wso2ei-6.4.0-business-process
    Localtab
    titleOn Windows

    Go to  Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.4.0 Business Process. This will open a terminal and start the business process profile.

  2. In a web browser, open the  Management Console of the Business Process profile , and log in with the default credentials (username:  admin  and password:  admin ).
  3. Click  Main  →  Manage  →  Processes  →  Add  →  BPEL , browse the ZIP file of the BPEL Workflow and click  Upload .

    Tip

    You can find sample BPEL package ZIP files in the <EI/HOME>/samples/business-process/bpel directory. Also, instead of using the Management Console, you can deploy a BPEL process manually by creating the <EI_HOME>/repository/deployment/server/bpel directory, and copying the ZIP file to it. For instructions on preparing the process ZIP file, see Preparing for Process Deployment /wiki/spaces/EI6xx/pages/49612261 .

  4. In the New BPEL Package window, browse and select the BPEL Package ZIP file and click Upload.

    You view the deployed BPEL process listed under the Deployed Processes as shown below.

    • Package Name:    The name of the package containing at least the deployment descriptor and one or more process definitions (BPEL), WSDL and XSDs.
    • Process ID:  A unique ID to identify the deployed BPEL process.
    • Version: If a package with an existing name is uploaded, the processes in the package will be versioned. All old processes in the package will be retired and new version deployed. Since there is only package-level versioning available, the new package should include all the processes defined in the old package, even though you may only need to update a single process in that package. 
    • Status:  Status of the  process. Can be either “Active" or “Retired".  
    • Deployed Date: Date and time of the package deployment.
    • Manage: A newly-created process has status as “Active", which can be retired by clicking on the “Retire" link. Once a process is retired, a new instance of it cannot be created.
    Tip

    If you do not view the new process, refresh the browser or click Main → Manage → Processes → List → BPEL .

Expand
titleUndeploying a BPEL Workflow

There are two ways to undeploy a BPEL Workflow.

  1. From the Management Console of the Business Process profile:
    1. Log in to Management Console, click Main → Manage → Processes →   List →  BPEL.
    2. Click the Package Name  you want to undeploy.

    3. The Package Dashboard page appears. Click on the Undeploy link.
  2. By deleting the BPEL ZIP file from the file system. 
    1. Delete the BPEL package from <EI_HOME>/wso2/business-process/repository/deployment/server/bpel directory.

...