To create the BPEL Module project, do the following:
Copy the WSDL and XSD files from the WLM project to the new BPEL project.
You do not need to copy the email handler WSDL file if you are using email notifications. The NetBeans Editor uses standard copy and paste features.
Create any necessary XSD and WSDL files to define the BPEL process interface.
If the BPEL process is not already open, double-click the process file in the Projects window to display it in the BPEL Editor Design view.
Add a partner link to the BPEL process:
In the Projects window, expand the BPEL project and select a WSDL file that defines the BPEL process interface.
Drag the WSDL file to one of the partner link sides of the BPEL Editor.
Repeat the above steps for each partner link to add.
Repeat the above steps to add the WSDL file you copied from the WLM project to the BPEL process.
Add and configure any needed activities in the BPEL process. At the point where you want to call the Worklist Manager task, add an Invoke activity.
Link the Receive and Reply activities to the BPEL process partner links, and link the Invoke activity to the Worklist Manager task partner link.
Create any necessary variables, including variables for the task input and task output.
Configure the activities that require variables by adding the variables to the activities.
The following figure shows an example of Invoke activity variables for a Worklist Manager task.
Define any necessary variable mappings from one activity to the next.
Save the BPEL process.
Clean and build the BPEL process to be sure it is valid.