Add a User Task to the Process

Use the Process Editor to create the business process. It includes a Palette that contains tools to create the process.

The Process Editor displays the default process for a new project.

The WelcomeUsers-Process contains the following:

  • The Start Event marks the beginning of the process.
  • The End Event marks the end of the process.
  • A sequence flow shows the flow of activities through the process.

Procedure

  1. Click Expand palette icon Show Palette on the WelcomeUsers-Process pane.

    The Palette contains a number of drawers, each of which contains a set of tools.

    Palette tools
  2. Click Tasks, and then click Script Task.
  3. Click the sequence flow between the Start and End events to add the Script Task.
    When the Script Task is over the sequence flow, an arrow into the Script Task opens.
  4. From Properties, change Label to Generate Message and click away from the field to save the change.
    The Name changes to GenerateMessage, without the space.
  5. Click User Task icon User Task.
  6. Click the sequence flow after Generate Message to add a user task.
    Tip: If there is not enough space in the sequence flow to add another task, move the other tasks over by dragging and dropping them. Otherwise, the sequence flow will have a bend in it to fit the task in.
  7. From Properties, change Label to Display Message and click away from the field to save the change.
    The Name changes to DisplayMessage, without the space.

    The process should now look like this.

    Note that the tasks have . This is a validation marker, and something is either wrong or missing. This will prevent deployment of the process in its current state.

    To display the error message, hover over the validation marker.

    The validation marker on Generate Message is a reminder to update the task to a supported grammar such as JavaScript. See How to Implement and Deploy the WelcomeUsers Application.

    The validation marker on Display Message is a reminder to assign somebody to perform the task. See Adding the Tester Position as a Participant to the Process.

  8. Press CTRL + S to save the changes to the process.

    The Save Package window opens:

    Tip: Select Don’t ask in future to avoid a repeat of this reminder.
  9. Click OK.