Using the Sun Business Process Manager Worklist Manager for User Activities

Creating the BPs

Once you have created the Worklist Manager database and have the LDAP directory structure in place, you can create the main BP that contains the user activity and the sub-process that defines the user activity logic.

Creating the Sub-process

The sub-process defines the flow of data through the user activity, and defines the access point for users to enter the required information.

ProcedureTo create the sub-process

  1. Create the Sun VPD page flows that define the user activity.

  2. Create a BP, and add the modeling elements including the Sun VPD page flows.

  3. Link the modeling elements together.

  4. Create the business rules for the links to define the mapping of data..

  5. When you are done configuring the modeling elements, click Save on the Enterprise Designer toolbar.

Creating a Partner

When creating a BP that will be used as a sub-process, you need to create a partner to associate with the receive and reply activities.

ProcedureTo create a new partner

  1. In the Project Explorer, right-click the sub-process, and then click Properties.

  2. On the BP Properties window, click the Partners tab.

  3. Click New, and enter a name for the partner.

  4. Click OK.

Associating the Partner with Activities

Once you create a partner for the sub-process, you need to associate it with the implement or receive activity and the reply activity of the sub-process. This allows you to connect the components in the Connectivity Map.

ProcedureTo associate the partner with activities

  1. In the BP, select the receive or implement activity.

  2. On the BP Designer toolbar, click Property Sheet.

  3. In the Partner property, select the partner you created above.

  4. Repeat for the reply activity.

Creating the Main BP

The main BP includes the user activity, and invokes the sub-process created in the previous step.

ProcedureTo create the main BP

  1. Create a BP, and add the modeling elements including a user activity.

  2. Link the modeling elements together.

  3. In the Project Explorer, expand the sub-process, and then drag the operation of the sub-process onto the user activity in the BP. This node is named Operation by default, but you can customize the name in the WSD object.

  4. Create the business rules for the links to define the mapping of data.

  5. Define task assignment for the user activity, as described in Defining Task Assignment.

  6. When you are done configuring the modeling elements, click Save on the Enterprise Designer toolbar.

Configuring User Activities Inside While Loops

When creating a BP that includes a user activity inside a while loop, you must take a few extra steps. The following procedure provides the steps for configuring a user activity inside a while loop.

ProcedureTo configure a user activity inside a while loop

  1. Create and configure a user activity as normal.

  2. Add a business rule to the link leaving the user activity.

  3. Open the Business Rule Designer and expand the WLVTask.Input node.

  4. Copy a BP attribute from the Output panel to the All panel, as shown in Figure 4.

    This creates an output container.

    Figure 4 Copy BP Attribute

    Figure shows copying a BP attribute in the Business Rule
Designer.

  5. Open the Business Rules panel and click Show Single Mapping, as shown in Figure 5.

    Figure 5 Business Rules Editor

    Figure shows the Business Rule Designer with the Business
Rules Editor displayed.

  6. Right-click the Copy rule and click Reset Destination, as shown in Figure 6.

    Figure 6 Reset Destination

    Figure shows the Rest Destination context menu in the
Business Rules Editor.

  7. On the Enterprise Designer toolbar, click Save.