Add an event handler to a Form activity
Event handlers are activity sequences that are triggered by a specific event. They allow a workflow to run logic when the events occur while the form is active.
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. For more information, see Add a resource to the wokflow model.
- In the Displays panel, click Workflow Management > Workflow Editor.
- 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 OK.