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
- In the navigator, click .
- In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow.
- In the Displays panel, click .
- Click the Workflow Editor tab.
- Drag and drop a Local Subprocess into the workflow and double-click it, or double-click an existing subprocess.
- Select the Form activity and then, on the activity configuration panel, click Add Event Handler.The Select Event dialog box appears.
- Click the Activities, Subprocess, or Workflow tab, select an event, and then click OK.
- Click Save.
- 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:
- Write a different value, such as an empty string.
- Write the original value again.
- 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.
- 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.
- Click Save.