Synapta Services Builder for CICS Version 3.0

com.attachmate.tasks
Interface ITaskListener


public interface ITaskListener

Task listener interface. Contains method definitions for event handlers to be implemented by Task Bean event listeners.

Although registering a listener is the preferred way to get the status of a task execution a client program may also use ITask.getStatus to poll for the same information.

See Also:
ITask

Method Summary
 void taskStatusChange(TaskStatusChangeEvent event)
          Notification of a change in task status.
 

Method Detail

taskStatusChange

public void taskStatusChange(TaskStatusChangeEvent event)
Notification of a change in task status. A task can start, complete normally, be canceled, time out or fail due to some error. The event object contains the task status information such as the task execution status, exception information and source of the event.

Parameters:
event - task status change event object. The event object contains the following task status information:
  • event.status -- one of the event status constants defined in TaskStatusChangeEvent
  • event.exception -- optional exception information. May be null.
See Also:
TaskStatusChangeEvent, ITask.getStatus()

Synapta Services Builder for CICS Version 3.0