Package com.ptc.windchill.esi.wf
Class ESIResultEvent
java.lang.Object
wt.events.KeyedEvent
com.ptc.windchill.esi.wf.ESIResultEvent
- All Implemented Interfaces:
wt.events.summary.SummarizedEvent
ESI workflows may suspend until external processes are complete. When they do, the ESIResultEvent is the trigger that
tells the workflow to resume. Objects of this class convey to a workflow whether or not an ESI external request
succeeded.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()Consumes this event, if this event can be consumed by Listener.Gets the value of the attribute: errorMessage; An optional message to provide to the workflow.Gets the value of the attribute: esiReleaseUfid; The UFID of the ESIRelease object that represents the given ESI release.Returns the event target associated with this event.Gets the value of the attribute: targetUfid; The UFID to the ESITarget associated with this result.Gets the value of the attribute: txUfid; The UFID to the ESITtransaction associated with this result.booleanReturns the status of the event consumption.booleanGets the value of the attribute: successful; Defines whether or not the external process succeeded.voidsetErrorMessage(String a_ErrorMessage) Sets the value of the attribute: errorMessage; An optional message to provide to the workflow.voidsetEsiReleaseUfid(String a_EsiReleaseUfid) Sets the value of the attribute: esiReleaseUfid; The UFID of the ESIRelease object that represents the given ESI release.voidsetSuccessful(boolean a_Successful) Sets the value of the attribute: successful; Defines whether or not the external process succeeded.voidsetTargetUfid(String a_TargetUfid) Sets the value of the attribute: targetUfid; The UFID to the ESITarget associated with this result.voidSets the value of the attribute: txUfid; The UFID to the ESITtransaction associated with this result.Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getAllEventNotificationDelegates, getConceptualClassname, getEventKey, getEventNotificationDelegate, getEventNotificationDelegate, getEventNotificationDelegate, getEventNotificationDelegateData, getEventNotificationDelegates, getEventTarget, getEventType, getTargetIDs, putEventNotificationDelegateData, toMultiObjectEvent, toSingleObjectEvents, toString
-
Constructor Details
-
ESIResultEvent
Constuctor for this class. Insures that the object is always in the correct state.
Supported API: true- Parameters:
eventTarget-
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Gets the value of the attribute: successful; Defines whether or not the external process succeeded.
Supported API: true- Returns:
- boolean
-
setSuccessful
Sets the value of the attribute: successful; Defines whether or not the external process succeeded.
Supported API: true- Parameters:
a_Successful-- Throws:
WTPropertyVetoException
-
getErrorMessage
Gets the value of the attribute: errorMessage; An optional message to provide to the workflow.
Supported API: true- Returns:
- String
-
setErrorMessage
Sets the value of the attribute: errorMessage; An optional message to provide to the workflow.
Supported API: true- Parameters:
a_ErrorMessage-- Throws:
WTPropertyVetoException
-
getTargetUfid
Gets the value of the attribute: targetUfid; The UFID to the ESITarget associated with this result.
Supported API: true- Returns:
- String
-
setTargetUfid
Sets the value of the attribute: targetUfid; The UFID to the ESITarget associated with this result.
Supported API: true- Parameters:
a_TargetUfid-- Throws:
WTPropertyVetoException
-
getTxUfid
Gets the value of the attribute: txUfid; The UFID to the ESITtransaction associated with this result.
Supported API: true- Returns:
- String
-
setTxUfid
Sets the value of the attribute: txUfid; The UFID to the ESITtransaction associated with this result.
Supported API: true- Parameters:
a_TxUfid-- Throws:
WTPropertyVetoException
-
getEsiReleaseUfid
Gets the value of the attribute: esiReleaseUfid; The UFID of the ESIRelease object that represents the given ESI release.
Supported API: true- Returns:
- String
-
setEsiReleaseUfid
Sets the value of the attribute: esiReleaseUfid; The UFID of the ESIRelease object that represents the given ESI release.
Supported API: true- Parameters:
a_EsiReleaseUfid-- Throws:
WTPropertyVetoException
-
getTarget
Returns the event target associated with this event.
Supported API: true- Returns:
- Persistable
-
consume
public void consume()Consumes this event, if this event can be consumed by Listener. Synch Robot for Release To Manufacturing must call this method to mark this event consumed.
Supported API: true -
isConsumed
public boolean isConsumed()Returns the status of the event consumption. If the event object is consumed by the listener then method will return true otherwise false.
Supported API: true- Returns:
- true when listener consumes the object otherwise false.
-