Creates a new
event object.
Syntax
public CWConnectorEvent();
public CWConnectorEvent(String eventID, String busObjName,
String verb, String IDvalues, int status, int priority,
String connectorID, Date eventTimeStamp, Date effectiveDate,
String triggeringUser, String description, String delimiter);
Parameters
- busObjName
- Is the business object associated with the
event.
- connectorID
- Is the connector identifier (ID) for the connector associated with the
event.
- description
- Is an optional description of the
event.
- delimiter
- Is the delimiter that separates the key values of the
event.
- effectiveDate
- Is the effective date for the
event.
- eventID
- Specifies the event identifier for the
event.
- eventTimeStamp
- Is the timestamp for the
event.
- IDvalues
- Is the data for the business object associated with the
event.
- priority
- Is an integer
event priority
- status
- Is one of the following event-status constants to associate with the
event:
CWConnectorEventStatus.IN_PROGRESS
CWConnectorEventStatus.READY_FOR_POLL
CWConnectorEventStatus.SUCCESS
CWConnectorEventStatus.UNSUBSCRIBED
CWConnectorEventStatus.ERROR_OBJECT_NOT_FOUND
CWConnectorEventStatus.ERROR_POSTING_EVENT
CWConnectorEventStatus.ERROR_PROCESSING_EVENT
- triggeringUser
- Is the user identifier (ID) associated with the user that triggered the
event.
- verb
- Is the
verb for the busObjName business object.
Return values
A CWConnectorEvent object containing the newly created
event.
Notes
The CWConnectorEvent() constructor has two forms:
- The first form creates an empty event object.
- The second form passes data to initialize the new event object. The
second form of the CWConnectorEvent() constructor provides a way to
initialize the members of the event object.
- Note:
- The only way to initialize the event's
description is through the second form of the CWConnectorEvent()
constructor. There is no accessor method for this member because
connectors do not use the event description.
