WSO2 BPS - Quick-Start Guide -

Quick-Start Guide - Modeling a Process

This guide will explain the initial step for modeling a BPEL process. Refer this article to get more informative idea on how to model a BPEL process via Carbon Studio. Major steps in modeling a business process are.



  1. Open eclipse IDE. Go to File -> new -> Other (see Figure 1)


    Adding a new project
    Figure 1

  2. From the dialog window select Carbon Application project and click Next(see Figure 2).


    Carbon Application wizard
    Figure 2

  3. Give a name to the Carbon Application project. Here I'm giving the carbon Application project name as WS_NumberAdderCarbon. Then click Finish. (See Figure 3)


    New Carbon Application Project Dialog
    Figure 3

    Note: Eclipse will prompt you to "root-artifact.xml" automatically. (If not, open it from Project Explore window)


    Root Artifact XML Page
    Figure 4

  4. Let's create a new BPEL project. Click on "Create new Artifact" (figure 4) and select "BPEL WorkFlow" (Figure 5). In the opened dialog (Figure 6) click on "New BPEL Project".


    New Artifact Options
    Figure 5

    New BPEL Workflow wizard
    Figure 6

  5. It will show dialog box (Figure 7). Give a name to the BPEL project. Here give the project name as BPELNumberAdder.

  6. Then click Finish to close the wizard and again click finish to close the New BPEL workflow dialog. Now you can see the newly created BPEL project appears in Project explore window.


    New BPEL project wizard
    Figure 7

    Now there's an already created BPEL project. Now-onwards we are going to create our BPEL process.


  7. Let's create a BPEL process file. For that right-click on BPEL project "BPELNumberAdder" form the "Project Explore".

    Note:If you expand the WS_NumberAdderCarbon project folder in the Project Explore window, you can see another folder called BPELNumberAdder. This is an instance of our BPELNumberAdder Project. Both are linked in together. In Other words all changes which are done to the BPELNumberAdder project, automatically applied to the BPELNumberAdder folder of the WS_NumberAdderCarbon. Here the BPELNumberAdder project is used for BPEL process development.


  8. Then go to New -> Other. It will show a Wizard (Figure 8). From the wizard, select "New BPEL process File" which is under the BPEL 2.0. Then click Next.


    New BPEL Process File wizard
    Figure 8

  9. In next dialog (Figure 9), it will ask for a name for BPEL process, a namespace, and a template. Here I am giving the Process name as "AdderProcess" and namespace as "http://NumberAdder.com". The process which we are going to create is a synchronous process. So select template asSynchronous BPEL process. Then click Finish.


    BPEL process metadata
    Figure 9

    Note: It will automatically generate AdderProcessArtifacts.wsdl and AdderProcess.bpel. If we look at the folder structure of the BPEL process, we can easily figure out these two files. (Figure 10)


    BPEL project structure
    Figure 10

  10. Open the AdderProcess.bpel file from the Project Explore window. Here you can see the template for our business process. The BPEL editor automatically generates receiveInput and replyOutput activities. (Figure 11) Also it will generate partnerLink and variables used in these two activities.


    BPEL modeling IDE
    Figure 11