Configure an event handler

Before you begin

Note: External Events, a Create Event activity, or a form event must be defined in order to add an event handler.

Activities can be inserted at both the workflow and subprocess levels.

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow.
  3. In the Displays panel, click Workflow Management > Workflow Editor.
  4. Click the Workflow Editor tab.
  5. Drag and drop a Local Subprocess into the workflow and double-click it, or double-click an existing subprocess.
  6. Select the Form activity and then, on the activity configuration panel, click Add Event Handler.
    The Select Event dialog box appears.
  7. Click the Activities, Subprocess, or Workflow tab, select an event, and then click OK.
  8. Click Save.
  9. To modify the event source, on the activity configuration panel, click the ellipsis button, and then select a new event.
    Note: You cannot set the same initial input value to a form more than once. You can set the form value back to the initial value by performing these steps:
    1. Write a different value, such as an empty string.
    2. Write the original value again.
  10. In the Task Step Behavior section, to ensure that the step is acquired when an event occurs, select True. If you do not want this behavior, select False.
  11. In the Form Behavior on Complete section, to automatically submit or cancel the form, select True in the related field.
    Note: You can set only one of these properties to True. Both Submit and Cancel cannot be True.
  12. Click Save.