This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Registering API event handler and notification event handler plug-ins with task templates, task models, and tasks

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
You can register plug-ins for API event handlers and notification event handlers with tasks, task templates, and task models at various times: when you create an ad hoc task, update an existing task, create an ad hoc task model, or define a task template.

About this task

You can register plug-ins for API event handlers and notification event handlers with tasks on the following levels:
Task template
All of the tasks that are created using the template use the same handlers
Ad hoc task model
The tasks that are created using the model use the same handlers
Ad hoc task
The task that is created uses the specified handlers
Existing task
The task uses the specified handlers

You can register a plug-in in one of the following ways.

Procedure

  • For task templates modeled in IBM® Integration Designer, specify the plug-in in the task model.
  • For ad hoc tasks or ad hoc task models, specify the plug-in when you create the task or task model.

    Use the setEventHandlerName method of the TTask class to register the name of the event handler.

  • Change the event handler for a task instance at run time.

    Use the update(Task task) method to use a different event handler for a task instance at run time. The caller must have task administrator authority to update this property.