Build it yourself

To build the to-do task of this sample, follow these steps:

Import the provided module

To import the module that provides the required artifacts into your workspace, follow these steps:

  1. Download the ToDoTaskPrepare.zip file, and save it to a temporary directory.
  2. In WebSphere Integration Developer, click File > Import. The Import window opens.
  3. Select Other > Project Interchange.
  4. Click Next. The Import Project Interchange Contents window opens.
  5. Click Browse next to the From zip file field.
  6. Browse to the temporary directory. Select ToDoTaskPrepare.zip, and click Open.
  7. Verify your Project location root.
  8. Click Select All.
  9. Click Finish.

Develop the to-do task

Create the to-do task

To create a to-do task, complete the following steps:

  1. Switch to the Business Integration view.
  2. In the navigation tree, under Projects, right-click ToDoTask > Integration Logic.
  3. From the context menu, select New > Human Task.
  4. The New Human Task window opens.

  5. Select New default Human Task.
  6. In the Folder field, enter bpc/samples.
  7. In the Name field, enter RequestTask.
  8. Accept the default namespace.
  9. Click Next.
  10. In the Human Task: Select Type of Interaction and Interface Definition panel, select To-do Task.
  11. From the Interface dropdown list, select Question.
  12. The operation ask is selected automatically.
  13. Click Finish.

Change the to-do task settings

Follow these steps to change specific human task settings:

  1. In the Business Integration view, double-click ToDoTask > Integration Logic > Human Tasks > bpc\samples > RequestTask.
  2. The human task editor opens.

  3. Open the Properties view and proceed to the Duration section. We need to change the default deletion settings.
  4. Change Duration until task is deleted to Never.
  5. On the toolbar, click the Save button .

Add the to-do task to the SCA module

To complete the implementation of the module, follow these steps:

  1. In the Business Integration view, double-click ToDoTask > Assembly Diagram.
  2. Drag the RequestTask to the Assembly Diagram.
  3. Drag the RequestProcess to the Assembly Diagram.
  4. Create a wire from the reference of RequestProcess to the interface of RequestTask.
  5. On the toolbar, click the Save button .

Test the process in the integrated test environment

Install the ToDoTask project to the test environment by using the Server > Add and Remove Projects function. This is described in detail for the HelloWorldApp in the Hello World sample.

Subsequently, refer to the Run the Sample section on how to run the ToDoTask process in the integrated test environment.

Export the enterprise application

To create an installable application, complete the following steps:

  1. In the Business Integration view, right-click the ToDoTask module.
  2. From the context menu, select Export.
  3. In the Export window, select Java EE > EAR file.
  4. Click Next.
  5. In the EAR project list of the EAR Export window, select ToDoTaskApp.
  6. In the Destination list, specify your destination directory.
  7. Click Finish.

Install the to-do task application to WebSphere Process Server

Install the ToDoTaskApp exactly as described for the HelloWorldApp in the Hello World sample.

Uninstall the to-do task application from WebSphere Process Server

Uninstall the ToDoTaskApp exactly as described for the HumanInteractionApp in the Human Interaction sample.