Run the sample

Client application

To run this sample, use the client application that is delivered with this sample to define and start Ad-hoc Human Tasks. Then use the Business Process Choreographer Explorer to display and process these tasks.

Client application delivered with the sample

To start the client application on a WebSphere Process Server, follow these steps:

  1. In a web browser, open URL http://yourhost:yourport/adhoc.
  2. Note: Replace yourhost with your server's internet address and replace yourport with the port of your server's HTTP transport, for example

    The client application is displayed:

Start the sample

To start the sample, follow these steps:

  1. Switch to the client application.
  2. In the Task Layout section in the Description field, enter a value of type string.
  3. In the Task Data section in the Input field, enter another value of type string.
  4. Optionally, enable the Expiration checkbox and specify a number of seconds, minutes, hours, or days as expiration time interval.
  5. Note that you just have defined settings for both the task template and the task instance within the same page. The page may for example look like this:

  6. Click Submit.
  7. If requested, enter a user name and password.
  8. The following response is shown, indicating the successful creation of the Ad-hoc Human Task:

Inspect the task list

You can now find the newly created task by using the Business Process Choreographer Explorer (BPC Explorer). For your convenience, the response screen contains a direct link to the BPC Explorer application's entry page: Click the Display tasks in BPC Explorer window link to open the BPC Explorer.

By default, you should see the My To-dos page. If not, click on My To-dos in the Task Instances section to see the list of tasks:

For the tasks in the list, you can issue the available actions as usual.

Note: The relative expiration interval specified in the Ad-hoc Web application is converted into an absolute time value, which is displayed in the Expires column. Once the indicated expiration time is reached, the next refresh operation will make expired task instances disappear from the My To-dos list again.

To see the Expired and Finished tasks, and to inspect the output for finished tasks, use another appropriate view, for example All Tasks or Administered By Me in the Task Instances section:

The Administered By Me view allows additional operations as well, for example to terminate tasks; here you can delete all tasks which have reached a final state.