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.
Open eclipse IDE. Go to File -> new -> Other (see Figure 1)
Figure 1
From the dialog window select Carbon Application project and click Next(see Figure 2).
Figure 2
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)
Figure 3
Note: Eclipse will prompt you to "root-artifact.xml" automatically. (If not, open it from Project Explore window)
Figure 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".
Figure 5
Figure 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.
Figure 7
Now there's an already created BPEL project. Now-onwards we are going to create our BPEL process.
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.
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.
Figure 8
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.
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)
Figure 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.
Figure 11