This topic provides instructions on using Data Integrator components in BPEL 2.0 modules. It presupposes that you are familiar with using the BPEL 2.0 editor in Java CAPS 6, and that a Data Integrator project has already been built so that its WSDL and JAR files are available.
JAR files created from imported eTL projects are saved in the location JavaCAPS6\.netbeans\caps\eTL\Imported Projects\projname.
In this procedure, you will create a new BPEL 2.0 module and add a new WSDL, and add a new BPEL process. Then, in the BPEL 2.0 editor, you will: Drag the new WSDL into the Partner Link column on the left and configure it as “My Role”; drag the WSDL file from the Data Integrator Collaborations folder into the Partner Link column on the right and configure it as “Partner Role”; drag web services (Receive, Invoke, Reply, Partner Link) and, optionally, activities (Assign and others) into the BPEL process; and then connect and configure appropriately. Finally, you will build the BPEL module.
If necessary, start the NetBeans IDE and access the Projects window.
In the NetBeans main menu: File -> New Project.
In the New Project wizard: For Categories, choose CAPS -> ESB; for Projects, choose BPEL Module; and then click Next.
In the New BPEL Module wizard: Specify a project name and location, and then click Finish.
The project tree displays a new BPEL module.
Right-click the new BPEL module: New -> WSDL Document.
In the New WSDL Document wizard:
Accept or modify the default name and location and then click Next.
Accept or modify the default abstract configuration (default: Request-Response) and then click Next.
Accept or modify the default concrete configuration and then click Finish.
Under the BPEL module's Process Files folder, the project tree displays a new WSDL node.
Right-click the new BPEL module: New -> BPEL Process.
In the New BPEL Process wizard: Accept or modify the default name and location, and then click Finish.
The BPEL Editor displays the newly created BPEL process without any partner links, web services, or activities.
In the BPEL Editor:
Drag the BPEL module's newly created WSDL into the left Partner Link column and configure it as My Role.
Drag the Data Integrator project's WSDL into the right Partner Link column and configure it as Partner Role.
From the palette, drag a Receive service, an Invoke service, and a Reply service into the Process column.
Connect the left partner link to the Receive service, the Invoke service to the right partner link, and the Reply service to the right partner link.
(Optional) From the palette, drag activities into the Process column.
(Optional) As needed, configure properties and perform mappings.
Validate the XML and correct any errors.
In the project tree: Right-click the BPEL Module folder and select menu item Clean and Build.
In the Output window: Check for the confirming message BUILD SUCCESSFUL (total time N seconds)
The very first time building a new BPEL module can result in warning messages. If this occurs, simply rebuild the module.
After the BPEL module is complete, you can create a composite application.