Introduction

This sample demonstrates how to use subtasks for your business processes. It covers how to:

  1. use subtasks to divide a task in pieces and assign them to different users,
  2. create input messages for subtasks by using API methods,
  3. create and start a subtask with API methods,
  4. enable a task template to support subtask creation.

Prerequisites

This sample relies on the federated user repository VMM (Virtual Member Manager) that is shipped with WebSphere® Process Server 7.0. In order to use this sample, you have to ensure that a group sellers exists on your system and that several users are members of that group. This ensures that the owner of the parent task is allowed to retrieve the output messages of the subtasks, although in the template used for subtask creation none of the security role privileges are granted to the owner of the parent task.

These user groups and users can be created running a command line script.

If you are using Windows (TM) and have administrator privileges for the WebSphere Application Server, then a simple command line script for adding the required groups and users may look like this:
ADDUSERS1.BAT

Similarly, these user groups and users can be deleted again after finishing this sample; a simple command line script for Windows looks like this:
DELETEUSERS1.BAT

Note that you may have to customize these command line scripts to reflect:

For further information you could also look at an article on developerworks