|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.workflow.engine.WfProcessRequester
The WfProcessRequester
class implements WfRequester to allow
processes to be used by external applications. The external behavior
implemented by this class is the 'receiveEvent' method, which is called
by the associated process to communicate relevant events (mostly state
changes).
Implementation note: it is suggested that the external client be represented by an URL. The receiveEvent translates the event into a suitable get/post action using the URL.
Note: This class is not implemented as of R2.
Use the newWfProcessRequester
static factory method(s),
not the WfProcessRequester
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
static String |
ABORT_URL
Label for the attribute; URL to be called by the process requester if the associated process undergoes the 'abort' transition. |
private static int |
ABORT_URL_UPPER_LIMIT
|
private String |
abortURL
|
static String |
APPLICATION_ID
Label for the attribute; Identifier of the application that owns the process. |
private static int |
APPLICATION_ID_UPPER_LIMIT
|
private String |
applicationId
|
private static String |
CLASSNAME
|
static String |
COMPLETE_URL
Label for the attribute; URL to be called by the process requester if the associated process undergoes the 'complete' transition. |
private static int |
COMPLETE_URL_UPPER_LIMIT
|
private String |
completeURL
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private WfContainerReference |
performerRef
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.workflow.engine.WfRequester |
PERFORMER_REF |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
WfProcessRequester()
|
Method Summary | |
private void |
abortURLValidate(String a_AbortURL)
|
WfExecutionObject |
changeState(WfTransition transition)
This method is used by containing process of application to force the process to undergo state changes. |
private void |
completeURLValidate(String a_CompleteURL)
|
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
String |
getAbortURL()
Gets the value of the attribute: ABORT_URL. |
String |
getApplicationId()
Gets the value of the attribute: APPLICATION_ID. |
String |
getCompleteURL()
Gets the value of the attribute: COMPLETE_URL. |
String |
getConceptualClassname()
Deprecated. |
WfContainer |
getPerformer()
Returns the process associated with the requester. |
WfContainerReference |
getPerformerRef()
Gets the value of the attribute: PERFORMER_REF. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(String application_id)
Supports initialization, following construction of an instance. |
static WfProcessRequester |
newWfProcessRequester(String application_id)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WfProcessRequester thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
receiveEvent(Object event)
This operation is used by the associated WfProcess to notify its requester of workflow events. |
protected void |
setAbortURL(String a_AbortURL)
Sets the value of the attribute: ABORT_URL. |
void |
setApplicationId(String a_ApplicationId)
Sets the value of the attribute: APPLICATION_ID. |
protected void |
setCompleteURL(String a_CompleteURL)
Sets the value of the attribute: COMPLETE_URL. |
void |
setPerformerRef(WfContainerReference a_PerformerRef)
Sets the value of the attribute: PERFORMER_REF. |
void |
start(ProcessData input,
long priority)
Starts the process with a given input data. |
String |
toString()
Returns a string representation of the process requester. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String APPLICATION_ID
private static int APPLICATION_ID_UPPER_LIMIT
private String applicationId
public static final String COMPLETE_URL
private static int COMPLETE_URL_UPPER_LIMIT
private String completeURL
public static final String ABORT_URL
private static int ABORT_URL_UPPER_LIMIT
private String abortURL
private WfContainerReference performerRef
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean VERBOSE
Constructor Detail |
public WfProcessRequester()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTObject
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTObject
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WfProcessRequester thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class WTObject
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class WTObject
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getApplicationId()
public void setApplicationId(String a_ApplicationId)
a_ApplicationId
- public String getCompleteURL()
protected void setCompleteURL(String a_CompleteURL) throws WTPropertyVetoException
a_CompleteURL
-
WTPropertyVetoException
private void completeURLValidate(String a_CompleteURL) throws WTPropertyVetoException
a_CompleteURL
-
WTPropertyVetoException
public String getAbortURL()
protected void setAbortURL(String a_AbortURL) throws WTPropertyVetoException
a_AbortURL
-
WTPropertyVetoException
private void abortURLValidate(String a_AbortURL) throws WTPropertyVetoException
a_AbortURL
-
WTPropertyVetoException
public void start(ProcessData input, long priority) throws WTException
input
- priority
-
WTException
public String toString()
toString
in class WTObject
public static WfProcessRequester newWfProcessRequester(String application_id) throws WTException
application_id
-
WTException
protected void initialize(String application_id) throws WTException
application_id
-
WTException
public WfContainerReference getPerformerRef()
getPerformerRef
in interface WfRequester
public void setPerformerRef(WfContainerReference a_PerformerRef)
setPerformerRef
in interface WfRequester
a_PerformerRef
- public void receiveEvent(Object event) throws WTException
receiveEvent
in interface WfRequester
event
- WfProcess event; contains the source of the event.
WTException
public WfExecutionObject changeState(WfTransition transition) throws WTException
changeState
in interface WfRequester
transition
-
WTException
public WfContainer getPerformer() throws WTException
getPerformer
in interface WfRequester
WTException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class WTObject
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class WTObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |