updateEventStatus()

Updates the event status both in the application's event store and in the event.

Syntax

public void updateEventStore(CWConnectorEvent eventObject, 
       int status);
 

Parameters

eventObject
Is the event object whose status is updated.

status
Is one of the following event-status constants to store in the event object:
						
 
 CWConnectorEventStatus.READY_FOR_POLL
 						
 
 CWConnectorEventStatus.IN_PROGRESS
 						
 
 CWConnectorEventStatus.SUCCESS
 						
 
 CWConnectorEventStatus.UNSUBSCRIBED
 						
 
 CWConnectorEventStatus.ERROR_POSTING_EVENT
 						
 
 CWConnectorEventStatus.ERROR_OBJECT_NOT_FOUND
 
  
 CWConnectorEventStatus.ERROR_PROCESSING_EVENT
 

Return values

None.

Exceptions

InvalidStatusChangeException
Thrown when the status is being changed to an invalid status value for the application.

StatusChangeFailedException
Thrown when the underlying application is unable to change the event status in the event store.

Notes

The updateEventStatus() method calls setEventStoreStatus() to set the status of the eventObject event to status. It also updates the event status within the eventObject event to status.

See also

setEventStoreStatus()

Copyright IBM Corp. 1997, 2003