Run the sample

Client applications

There are two client applications delivered with this sample: an originator application and a receiver application. Use these applications to run this sample.

Originator application

Start the originator application

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

  1. In a web browser, open URL http://yourhost:yourport/CollaborationTaskOriginator.
  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 home view of the originator application is displayed:

Create new tasks

To create a new task, follow these steps:

  1. In the home view, click Create.
  2. The input view is displayed:

  3. Optionally, enter an Identifier.
  4. In the Document URL field, enter a value of type string.
  5. In the Instructions field, enter a value of type string.
  6. Click Create.
  7. A confirmation message is displayed:

  8. To return to the home view, click Home.
  9. To create another human task, click New.
  10. To display the task list view, click List.

Track the task status

To track the status of a task, follow these steps:

  1. Switch to the originator application.
  2. In the home view, click View.
  3. The task list view is displayed:

  4. To return to the home view, click Home.
  5. To create another human task, click New.
  6. To refresh the task list view, click Refresh table.
  7. To delete all tasks that are in the finished state, click Delete finished.
  8. To delete all tasks, click Delete all.
  9. Note: Refer to the section Receiver application below on how to claim and finish tasks.

    After the task was claimed, the task list view looks like the following:

    When the task is finished, the output message is available. The task list view looks like the following:

Inspect task details

To inspect the details of a task, such as input and output messages, follow these steps:

  1. Switch to the originator application.
  2. In the home view, click View.
  3. The task list view is displayed:

  4. Click the identifier of the task you want to see the details for, in this example review1.
  5. The details view is displayed:

  6. To return to the home view, click Home.
  7. To display the task list view, click List.

Clean up task instances

To delete task instances with the originator application, follow these steps:

  1. Switch to the originator application.
  2. In the home view, click View.
  3. The task list view is displayed:

  4. To delete all tasks that are in the finished state, click Delete finished.
  5. To delete all tasks, click Delete all.
  6. A confirmation message is displayed:

  7. To return to the task list view, click OK.

Receiver application

Start the receiver application

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

  1. In a web browser, open URL http://yourhost:yourport/CollaborationTaskReceiver.
  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 home view of the client application is displayed:

Query new tasks

To query new tasks, follow these steps:

  1. Switch to the receiver application.
  2. In the home view, click new reviews.
  3. The list view is displayed:

  4. To inspect the details and to work on a task, click its identifier. In this example review1.
  5. To return to the home view, click Home.
  6. To display a list of all claimed reviews, click My claimed reviews.
  7. To refresh the list view, click Refresh list.

Query claimed tasks

To query the claimed tasks, follow these steps:

  1. Switch to the receiver application.
  2. In the home view, click my claimed.
  3. The list view is displayed:

  4. To inspect the details and to work on a task, click its identifier. In this example review1.
  5. To return to the home view, click Home.
  6. To display a list of all new reviews, click New reviews.
  7. To refresh the list view, click Refresh list.

Work on tasks

You can work on either new tasks or tasks that you have already claimed. Before you can work on a task, you have to display the specific task list. To work on a task, follow these steps:

  1. Switch to the receiver application.
  2. In the home view, click new reviews or my claimed.
  3. The list view is displayed. Note, that this view looks a little different if you have chosen to display your claimed reviews.

  4. Click the identifier of the task you want to work on, in this example review1.
  5. The details view is displayed:

  6. To return to the home view, click Home.
  7. To return to the list view, click Back to list.
  8. To work on the task, click Work on.
  9. The input view is displayed:

  10. In the Comments field, enter a value of type string.
  11. In the Document URL field, enter a value of type string.
  12. To cancel all current and previous updates to the task, click Cancel. Note, that in this case the task state changes from claimed to ready.
  13. To finish the task, click Complete. In this case the task state changes from claimed to finished.
  14. To save your current updates to the task, click Save. In this case the task state remains claimed.