wt.workflow.engine
Class WfActivity

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.enterprise.Simple
          extended bywt.workflow.engine.WfExecutionObject
              extended bywt.workflow.engine.WfActivity
All Implemented Interfaces:
AccessControlled, BusinessInformation, DisplayIdentification, DomainAdministered, Externalizable, NetFactor, Notifiable, ObjectMappable, Persistable, RecentlyVisited, Serializable, WfNode, WTContained
Direct Known Subclasses:
Milestone, ProjectProxy, WfAssignedActivity, WfRequesterActivity, WfRobotActivity

public abstract class WfActivity
extends WfExecutionObject
implements WfNode, Externalizable

WfActivity represents a request for work in the context of the containing WfProcess. There can be many active WfActivity objects within a WfProcess at a given point in time. The lifetime of the activity is limited by that of its containing process.

The context of an activity is set by the containing process before the activity is activated depending on the variable map that relates local activity variables with global (process) variables.

A given variable may be used in many ways, as follows:

.

An activity may or not contain routing functionality. This is indicated by the router type of the activity that can be NONE (no routing functionality), CONDITIONAL (conditional or automatic routing) and MANUAL (manual routing). If an activity has routing functionality, then after it completes, a routing event is generated either by evaluating a "routing expression" or by getting input from the user about the routing event. The event information is used by outgoing links to for transfer of control decisions.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static boolean ABORT_PROCESS_ON_ABORT
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
static String INPUT_VARIABLE_MAP
          Label for the attribute; Input map from process to activity variables.
private static int INPUT_VARIABLE_MAP_UPPER_LIMIT
           
private  WfVariableMap inputVariableMap
           
protected static long OLD_FORMAT_VERSION_UID
           
static String OUTPUT_VARIABLE_MAP
          Label for the attribute; Output map from activity to process variables.
private static int OUTPUT_VARIABLE_MAP_UPPER_LIMIT
           
private  WfVariableMap outputVariableMap
           
private  WfContainerReference parentProcessRef
           
private static String RESOURCE
           
static String ROUTER_TYPE
          Label for the attribute; This attribute tells whether the router is a conditional router, a manual router or none.
private static int ROUTER_TYPE_UPPER_LIMIT
           
private  WfRouterType routerType
           
(package private) static long serialVersionUID
           
static String TRIP_COUNT
          Label for the attribute.
private  int tripCount
           
static String USER_EVENT_LIST
          Label for the attribute; List of the user defined events.
private static int USER_EVENT_LIST_UPPER_LIMIT
           
private  UserEventVector userEventList
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.workflow.engine.WfExecutionObject
AD_SQEN, ALERT_TIME, CHANGE_STATE_TIME, CONTAINER, CONTEXT, D_SQEN, DEADLINE, DEADLINE_DURATION, DESCRIPTION, END_TIME, EVENT_CONFIGURATION, EXCEPTION_MESSAGE, KEY, NAME, PD_SQEN, PRIORITY, START_TIME, STATE, SUSPEND_TIME, TEMPLATE, TIME_PAST_DEADLINE, TIME_TO_DEADLINE, TIME_TO_START
 
Fields inherited from class wt.enterprise.Simple
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.workflow.engine.WfNode
PARENT_PROCESS_REF
 
Fields inherited from interface wt.inf.container.WTContained
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.admin.DomainAdministered
DOMAIN_REF, INHERITED_DOMAIN
 
Fields inherited from interface wt.fc.BusinessInformation
BUSINESS_TYPE, IDENTITY
 
Fields inherited from interface wt.notify.Notifiable
EVENT_SET
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
WfActivity()
           
 
Method Summary
 WfExecutionObject changeState(WfTransition transition)
          Updates the current state of the activity.
 WfExecutionObject changeState(WfTransition transition, boolean propagate)
          Updates the current state of the activity.
protected  WfExecutionObject changeState(WfTransition transition, boolean is_immediate, boolean propagate)
          Protected method that does the actual state change work.
protected  void checkSuspendedProcess()
          Checks if the process is suspended.
 WfActivity complete(Vector selected_events)
          Completes activity and generates events.
protected  void computeDeadline(long now)
          Computes deadline using both the duration and the duration counted from the host process start.
 Timestamp computeDeadline(long now, long duration, long process_duration)
           
protected  Timestamp computeTimeToStart(long now)
          Computes time to start activity.
 void deleteActivity()
          Delete myself.
protected  void doAbortTransition()
          Performs specific tasks associated with the START transition.
protected  void doCompleteTransition()
          Performs specific tasks associated with the COMPLETE transition.
protected  void doDisableTransition()
          Performs specific tasks associated with the DISABLE transition.
protected  void doEnableTransition()
          Performs specific tasks associated with the ENABLE transition.
protected  void doResetTransition()
          

Supported API: false
protected  void doResumeTransition()
          Performs specific tasks associated with the RESUME transition.
protected  void doSkipTransition()
          Performs specific tasks associated with the SKIP transition.
protected  void doStartTransition()
          Performs specific tasks associated with the START transition.
protected  void doSuspendTransition()
          Performs specific tasks associated with the SUSPEND transition.
protected  void doTerminateTransition()
          Performs specific tasks associated with the START transition.
protected  void doWork(WfTransition transition)
          Internal method used to cause the performance of the work associated with the transition passed as argument.
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
 Object evaluateRouterExpression()
          Evaluates expression associated with the router.
 WfVariableMap getInputVariableMap()
          Gets the value of the attribute: INPUT_VARIABLE_MAP.
 WfVariableMap getOutputVariableMap()
          Gets the value of the attribute: OUTPUT_VARIABLE_MAP.
 WfProcess getParentProcess()
          If the activity is contained in a process, this is returned; otherwise returns the innermost process that contains the block that is the activity's parent container.
 WfProcess getParentProcessReadOnly()
           
 WfContainerReference getParentProcessRef()
          Gets the value of the attribute: PARENT_PROCESS_REF.
 Object getRouterEvent()
          Gets user routing event.
 WfRouterType getRouterType()
          Gets the value of the attribute: ROUTER_TYPE.
private  WTPrincipal getSystemCalendarOwner()
           
 ObjectReference getTemplateReference()
          Returns a reference to template used to instantiate current activity.
 int getTripCount()
          Gets the value of the attribute: TRIP_COUNT.
 UserEventVector getUserEventList()
          Gets the value of the attribute: USER_EVENT_LIST.
protected  WfException getWfException(WTException wte, WfTransition transition)
          Returns an exception appropriate to the transition.
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
protected  boolean hasRouterExpression()
           
protected  void initialize(WfContainer container)
          

Supported API: false
protected  void propagateEvent(Object event)
          Propagate event to successor nodes.
 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.
 void readValues()
          Reads values from the containing process.
protected  boolean readVersion(WfActivity thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void registerEvent(Object event, WfState old_state)
          Register event with engine service.
 void setInputVariableMap(WfVariableMap a_InputVariableMap)
          Sets the value of the attribute: INPUT_VARIABLE_MAP.
 void setOutputVariableMap(WfVariableMap a_OutputVariableMap)
          Sets the value of the attribute: OUTPUT_VARIABLE_MAP.
 void setParentProcessRef(WfContainerReference a_ParentProcessRef)
          Sets the value of the attribute: PARENT_PROCESS_REF.
 void setRouterType(WfRouterType a_RouterType)
          Sets the value of the attribute: ROUTER_TYPE.
 void setTripCount(int a_TripCount)
          Sets the value of the attribute: TRIP_COUNT.
 void setUserEventList(UserEventVector a_UserEventList)
          Sets the value of the attribute: USER_EVENT_LIST.
 String toString()
          Returns a string representation of the activity.
 boolean updateWfAssigneeNotification()
           
 long updateWfDueDate()
           
 long updateWfDuration()
           
 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.
 void writeValues()
          Writes values to the containing process.
 
Methods inherited from class wt.workflow.engine.WfExecutionObject
calculateTimePastDeadline, calculateTimeToDeadline, changeDeadline, changeStateAttributes, computeTimePastDeadline, computeTimeToDeadline, evaluateExpression, getAdSQEN, getAlertTime, getChangeStateTime, getContainer, getContainerName, getContainerReference, getContext, getDeadline, getDeadlineDuration, getDescription, getDSQEN, getEndTime, getEventConfiguration, getIdentity, getKey, getName, getPdSQEN, getPriority, getStartTime, getState, getSuspendTime, getTemplate, getTimePastDeadline, getTimeToDeadline, getTimeToStart, getVarDueDate, getVarDuration, getVarNotification, initialize, initialize, isOverdue, readVersion, removeDeadlineQueueEntries, resetValues, setAdSQEN, setAlertTime, setChangeStateTime, setContainer, setContainerReference, setContext, setDeadline, setDeadlineDuration, setDescription, setDSQEN, setEndTime, setEventConfiguration, setKey, setName, setPdSQEN, setPriority, setStartTime, setState, setSuspendTime, setTemplate, setTimePastDeadline, setTimeToDeadline, setTimeToStart, validTransitions
 
Methods inherited from class wt.enterprise.Simple
getBusinessType, getDomainRef, getEventSet, isInheritedDomain, readVersion, setDomainRef, setEventSet, setInheritedDomain
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getPersistInfo, getType, setPersistInfo
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo, getConceptualClassname
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

ROUTER_TYPE

public static final String ROUTER_TYPE
Label for the attribute; This attribute tells whether the router is a conditional router, a manual router or none.

Supported API: false

See Also:
Constant Field Values

ROUTER_TYPE_UPPER_LIMIT

private static int ROUTER_TYPE_UPPER_LIMIT

routerType

private WfRouterType routerType

USER_EVENT_LIST

public static final String USER_EVENT_LIST
Label for the attribute; List of the user defined events. This is copied from the activity template object. Can't be edited.

Supported API: false

See Also:
Constant Field Values

USER_EVENT_LIST_UPPER_LIMIT

private static int USER_EVENT_LIST_UPPER_LIMIT

userEventList

private UserEventVector userEventList

INPUT_VARIABLE_MAP

public static final String INPUT_VARIABLE_MAP
Label for the attribute; Input map from process to activity variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

See Also:
Constant Field Values

INPUT_VARIABLE_MAP_UPPER_LIMIT

private static int INPUT_VARIABLE_MAP_UPPER_LIMIT

inputVariableMap

private WfVariableMap inputVariableMap

OUTPUT_VARIABLE_MAP

public static final String OUTPUT_VARIABLE_MAP
Label for the attribute; Output map from activity to process variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

See Also:
Constant Field Values

OUTPUT_VARIABLE_MAP_UPPER_LIMIT

private static int OUTPUT_VARIABLE_MAP_UPPER_LIMIT

outputVariableMap

private WfVariableMap outputVariableMap

TRIP_COUNT

public static final String TRIP_COUNT
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

tripCount

private int tripCount

parentProcessRef

private WfContainerReference parentProcessRef

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

ABORT_PROCESS_ON_ABORT

private static final boolean ABORT_PROCESS_ON_ABORT
Constructor Detail

WfActivity

public WfActivity()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WfExecutionObject
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WfExecutionObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WfActivity thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
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.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WfExecutionObject
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WfExecutionObject
Parameters:
input -
Throws:
SQLException
DatastoreException

getRouterType

public WfRouterType getRouterType()
Gets the value of the attribute: ROUTER_TYPE. This attribute tells whether the router is a conditional router, a manual router or none.

Supported API: false

Returns:
WfRouterType

setRouterType

public void setRouterType(WfRouterType a_RouterType)
Sets the value of the attribute: ROUTER_TYPE. This attribute tells whether the router is a conditional router, a manual router or none.

Supported API: false

Parameters:
a_RouterType -

getUserEventList

public UserEventVector getUserEventList()
Gets the value of the attribute: USER_EVENT_LIST. List of the user defined events. This is copied from the activity template object. Can't be edited.

Supported API: false

Returns:
UserEventVector

setUserEventList

public void setUserEventList(UserEventVector a_UserEventList)
Sets the value of the attribute: USER_EVENT_LIST. List of the user defined events. This is copied from the activity template object. Can't be edited.

Supported API: false

Parameters:
a_UserEventList -

getInputVariableMap

public WfVariableMap getInputVariableMap()
Gets the value of the attribute: INPUT_VARIABLE_MAP. Input map from process to activity variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

Returns:
WfVariableMap

setInputVariableMap

public void setInputVariableMap(WfVariableMap a_InputVariableMap)
Sets the value of the attribute: INPUT_VARIABLE_MAP. Input map from process to activity variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

Parameters:
a_InputVariableMap -

getOutputVariableMap

public WfVariableMap getOutputVariableMap()
Gets the value of the attribute: OUTPUT_VARIABLE_MAP. Output map from activity to process variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

Returns:
WfVariableMap

setOutputVariableMap

public void setOutputVariableMap(WfVariableMap a_OutputVariableMap)
Sets the value of the attribute: OUTPUT_VARIABLE_MAP. Output map from activity to process variables. This is copied from the link that joins the activity template object to its parent template. Can't be edited.

Supported API: false

Parameters:
a_OutputVariableMap -

getTripCount

public int getTripCount()
Gets the value of the attribute: TRIP_COUNT.

Supported API: false

Returns:
int

setTripCount

public void setTripCount(int a_TripCount)
                  throws WTPropertyVetoException
Sets the value of the attribute: TRIP_COUNT.

Supported API: false

Parameters:
a_TripCount -
Throws:
WTPropertyVetoException

changeState

public WfExecutionObject changeState(WfTransition transition)
                              throws WTException
Updates the current state of the activity. Returns the updated (and persisted) object. A TransitionNotAllowed exception is thrown when the transition from the current state is not allowed.

Supported API: false

Specified by:
changeState in class WfExecutionObject
Parameters:
transition -
Returns:
WfExecutionObject
Throws:
WTException

changeState

public WfExecutionObject changeState(WfTransition transition,
                                     boolean propagate)
                              throws WTException
Updates the current state of the activity. Returns the updated (and persisted) object. A TransitionNotAllowed exception is thrown when the transition from the current state is not allowed. If propagate is 'false' event is not propagated to successor nodes.

Supported API: false

Parameters:
transition -
propagate -
Returns:
WfExecutionObject
Throws:
WTException

toString

public String toString()
Returns a string representation of the activity. Used mostly for debugging purposes: not appropriate for GUI use.

Supported API: false

Overrides:
toString in class WfExecutionObject
Returns:
String

evaluateRouterExpression

public Object evaluateRouterExpression()
                                throws WTException
Evaluates expression associated with the router. Returns router event.

Supported API: false

Returns:
Object
Throws:
WTException

getRouterEvent

public Object getRouterEvent()
                      throws WTException
Gets user routing event. Calls evaluateRouterExpression in case of automatic routing; otherwise generates tasks and sends it to the user.

Supported API: false

Returns:
Object
Throws:
WTException

readValues

public void readValues()
                throws WTException
Reads values from the containing process. The values are read to the object's context using the mapping given by the inputPropertyMap.

Supported API: false

Throws:
WTException

writeValues

public void writeValues()
                 throws WTException
Writes values to the containing process. The values are written from the object's context using the mapping given by the outputPropertyMap.

Supported API: false

Throws:
WTException

getTemplateReference

public ObjectReference getTemplateReference()
Returns a reference to template used to instantiate current activity.

Supported API: false

Specified by:
getTemplateReference in interface WfNode
Returns:
ObjectReference

doStartTransition

protected void doStartTransition()
                          throws WTException
Performs specific tasks associated with the START transition. It is called after the values are read in from the containing process. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doCompleteTransition

protected void doCompleteTransition()
                             throws WTException
Performs specific tasks associated with the COMPLETE transition. It is called before the values are written to the containing process. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doSuspendTransition

protected void doSuspendTransition()
                            throws WTException
Performs specific tasks associated with the SUSPEND transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doResumeTransition

protected void doResumeTransition()
                           throws WTException
Performs specific tasks associated with the RESUME transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doDisableTransition

protected void doDisableTransition()
                            throws WTException
Performs specific tasks associated with the DISABLE transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doEnableTransition

protected void doEnableTransition()
                           throws WTException
Performs specific tasks associated with the ENABLE transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doSkipTransition

protected void doSkipTransition()
                         throws WTException
Performs specific tasks associated with the SKIP transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doTerminateTransition

protected void doTerminateTransition()
                              throws WTException
Performs specific tasks associated with the START transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doAbortTransition

protected void doAbortTransition()
                          throws WTException
Performs specific tasks associated with the START transition. To be superseded by the subclasses of WfActivity. Default implementation of WfActivity does nothing.

Supported API: false

Throws:
WTException

doResetTransition

protected void doResetTransition()
                          throws WTException


Supported API: false

Throws:
WTException

complete

public WfActivity complete(Vector selected_events)
                    throws WTException
Completes activity and generates events. This method is used to provoke a change of state (transition = COMPLETE) and, at the same time, pass a Vector containing selected user events. If the activity is a manual router (routerType= MANUAL) the event is used to trigger the appropriate successor links; otherwise it is ignored.

Supported API: false

Parameters:
selected_events -
Returns:
WfActivity
Throws:
WTException

doWork

protected void doWork(WfTransition transition)
               throws WTException
Internal method used to cause the performance of the work associated with the transition passed as argument.

Supported API: false

Parameters:
transition -
Throws:
WTException

computeTimeToStart

protected Timestamp computeTimeToStart(long now)
                                throws WTException
Computes time to start activity. Uses both the delay from the time the activity was prompted to change state and the delay from the start of the host process.

Supported API: false

Parameters:
now -
Returns:
Timestamp
Throws:
WTException

computeDeadline

protected void computeDeadline(long now)
                        throws WTException
Computes deadline using both the duration and the duration counted from the host process start.

Supported API: false

Specified by:
computeDeadline in class WfExecutionObject
Parameters:
now -
Throws:
WTException

initialize

protected void initialize(WfContainer container)
                   throws WTException


Supported API: false

Parameters:
container -
Throws:
WTException

getParentProcess

public WfProcess getParentProcess()
                           throws WTException
If the activity is contained in a process, this is returned; otherwise returns the innermost process that contains the block that is the activity's parent container.

Supported API: false

Returns:
WfProcess
Throws:
WTException

changeState

protected WfExecutionObject changeState(WfTransition transition,
                                        boolean is_immediate,
                                        boolean propagate)
                                 throws WTException
Protected method that does the actual state change work. Updates the current state of the activity. Returns the updated (and persisted) object. A TransitionNotAllowed exception is thrown when the transition from the current state is not allowed. If is_immediate is true, the work associated with the transition is not queued.

Supported API: false

Parameters:
transition -
is_immediate -
propagate -
Returns:
WfExecutionObject
Throws:
WTException

getParentProcessRef

public WfContainerReference getParentProcessRef()
Gets the value of the attribute: PARENT_PROCESS_REF. Reference to the process that owns the node. Used to implement derived relationship between the process and contained objects.

Supported API: false

Specified by:
getParentProcessRef in interface WfNode
Returns:
WfContainerReference

setParentProcessRef

public void setParentProcessRef(WfContainerReference a_ParentProcessRef)
Sets the value of the attribute: PARENT_PROCESS_REF. Reference to the process that owns the node. Used to implement derived relationship between the process and contained objects.

Supported API: false

Specified by:
setParentProcessRef in interface WfNode
Parameters:
a_ParentProcessRef -

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. 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

Overrides:
equals in class WfExecutionObject
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its 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

Overrides:
hashCode in class WfExecutionObject
Returns:
int

getWfException

protected WfException getWfException(WTException wte,
                                     WfTransition transition)
Returns an exception appropriate to the transition.


propagateEvent

protected void propagateEvent(Object event)
                       throws WTException
Propagate event to successor nodes.

Throws:
WTException

registerEvent

protected void registerEvent(Object event,
                             WfState old_state)
                      throws WTException
Register event with engine service.

Throws:
WTException

checkSuspendedProcess

protected void checkSuspendedProcess()
                              throws WTException
Checks if the process is suspended. Throws an exception if this is the case.

Throws:
WTException

deleteActivity

public void deleteActivity()
                    throws WTException
Delete myself. This must be public because of subclasses in different packages.

Throws:
WTException

hasRouterExpression

protected boolean hasRouterExpression()
                               throws WTException
Throws:
WTException

computeDeadline

public Timestamp computeDeadline(long now,
                                 long duration,
                                 long process_duration)
                          throws WTException
Throws:
WTException

getSystemCalendarOwner

private WTPrincipal getSystemCalendarOwner()
                                    throws WTException
Throws:
WTException

getParentProcessReadOnly

public WfProcess getParentProcessReadOnly()
                                   throws WTException
Throws:
WTException

updateWfDueDate

public long updateWfDueDate()
                     throws WTException
Throws:
WTException

updateWfDuration

public long updateWfDuration()
                      throws WTException
Throws:
WTException

updateWfAssigneeNotification

public boolean updateWfAssigneeNotification()
                                     throws WTException
Throws:
WTException