|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.workflow.definer.WfConnectorTemplate
WfConnectorTemplate
class serves as a template for WfConnector
objects.
Use the newWfConnectorTemplate
static factory method(s),
not the WfConnectorTemplate
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
WfConnector
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static String |
CONNECTOR_FUNCTION
Label for the attribute; Function of the connector. |
private static int |
CONNECTOR_FUNCTION_UPPER_LIMIT
|
static String |
CONNECTOR_TYPE
Label for the attribute; Type of the connector. |
private static int |
CONNECTOR_TYPE_UPPER_LIMIT
|
private WfConnectorFunction |
connectorFunction
|
private WfConnectorType |
connectorType
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FIRING_THRESHOLD
Label for the attribute; For THRESHOLD connectors this is the number of inputs that cause the connector to fire. |
private int |
firingThreshold
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private WfContainerTemplateReference |
parentTemplate
|
private static String |
RESOURCE
|
private static int |
ROUTER_TYPE_UPPER_LIMIT
|
private WfRouterType |
routerType
|
(package private) static long |
serialVersionUID
|
static String |
TERMINATE_ACTIVITIES
Label for the attribute; Indicates whether preceding running activities should be terminated upon firing of the threshold. |
private boolean |
terminateActivities
|
private static int |
USER_EVENT_LIST_UPPER_LIMIT
|
private UserEventVector |
userEventList
|
private long |
xCoord
|
private long |
yCoord
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.workflow.definer.WfNodeTemplate |
PARENT_TEMPLATE, ROUTER_TYPE, USER_EVENT_LIST, X_COORD, Y_COORD |
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 | |
WfConnectorTemplate()
|
Method Summary | |
boolean |
addUserEvent(Object usr_evt)
Adds a user event to connector. |
private void |
connectorTypeValidate(WfConnectorType a_ConnectorType)
|
WfConnectorTemplate |
copy(WfContainerTemplate parent)
Produces a transient, shallow copy of the connector template that is contained in the process template passed as argument. |
WfNode |
createWfNode(WfContainer container)
Creates a workflow connector using information stored in the template, associated with a given process. |
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 |
getConceptualClassname()
Deprecated. |
WfConnectorFunction |
getConnectorFunction()
Gets the value of the attribute: CONNECTOR_FUNCTION. |
WfConnectorType |
getConnectorType()
Gets the value of the attribute: CONNECTOR_TYPE. |
Enumeration |
getDestinationActions()
Return all events that can occur with the connector as destination of a workflow link. |
int |
getFiringThreshold()
Gets the value of the attribute: FIRING_THRESHOLD. |
private int |
getNumberPredecessors()
Returns the number of incoming links with that map to 'FIRE' in its eventActionMap. |
WfContainerTemplateReference |
getParentTemplate()
Gets the value of the attribute: PARENT_TEMPLATE. |
Enumeration |
getPredecessors()
This method returns an enumeration (of type NodeTemplateLink) containing the predecessor links of the template. |
WfRouterType |
getRouterType()
Gets the value of the attribute: ROUTER_TYPE. |
Enumeration |
getSourceEvents()
Return all events that can occur with the connector as source of a workflow link. |
Enumeration |
getSuccessors()
This method returns an enumeration (of type NodeTemplateLink) containing the successor links of the template. |
UserEventVector |
getUserEventList()
Gets the value of the attribute: USER_EVENT_LIST. |
Object[] |
getUserEvents()
Returns an enumeration containing all defined user events for the connector. |
long |
getXCoord()
Gets the value of the attribute: X_COORD. |
long |
getYCoord()
Gets the value of the attribute: Y_COORD. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(WfContainerTemplate parent)
Supports initialization, following construction of an instance. |
boolean |
isTerminateActivities()
Gets the value of the attribute: TERMINATE_ACTIVITIES. |
static WfConnectorTemplate |
newWfConnectorTemplate(WfContainerTemplate parent)
Constructor for the connector. |
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(WfConnectorTemplate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
removeUserEvent(Object usr_evt)
Removes user event from connector. |
void |
setConnectorFunction(WfConnectorFunction a_ConnectorFunction)
Sets the value of the attribute: CONNECTOR_FUNCTION. |
void |
setConnectorType(WfConnectorType a_ConnectorType)
Sets the value of the attribute: CONNECTOR_TYPE. |
void |
setFiringThreshold(int a_FiringThreshold)
Sets the value of the attribute: FIRING_THRESHOLD. |
protected void |
setParentTemplate(WfContainerTemplateReference a_ParentTemplate)
Sets the value of the attribute: PARENT_TEMPLATE. |
void |
setRouterType(WfRouterType a_RouterType)
Sets the value of the attribute: ROUTER_TYPE. |
void |
setTerminateActivities(boolean a_TerminateActivities)
Sets the value of the attribute: TERMINATE_ACTIVITIES. |
void |
setUserEventList(UserEventVector a_UserEventList)
Sets the value of the attribute: USER_EVENT_LIST. |
void |
setXCoord(long a_XCoord)
Sets the value of the attribute: X_COORD. |
void |
setYCoord(long a_YCoord)
Sets the value of the attribute: Y_COORD. |
String |
toString()
Returns string representation of the object. |
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 |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String CONNECTOR_FUNCTION
private static int CONNECTOR_FUNCTION_UPPER_LIMIT
private WfConnectorFunction connectorFunction
public static final String CONNECTOR_TYPE
There is exactly one START connector for every process. There should
be at least one END connector for every process and zero or more of the
DEFAULT and GROUND connectors
Supported API: false
private static int CONNECTOR_TYPE_UPPER_LIMIT
private WfConnectorType connectorType
public static final String FIRING_THRESHOLD
private int firingThreshold
public static final String TERMINATE_ACTIVITIES
private boolean terminateActivities
private long xCoord
private long yCoord
private static int ROUTER_TYPE_UPPER_LIMIT
private WfRouterType routerType
private static int USER_EVENT_LIST_UPPER_LIMIT
private UserEventVector userEventList
private WfContainerTemplateReference parentTemplate
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public WfConnectorTemplate()
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(WfConnectorTemplate 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 WfConnectorFunction getConnectorFunction()
public void setConnectorFunction(WfConnectorFunction a_ConnectorFunction)
a_ConnectorFunction
- public WfConnectorType getConnectorType()
There is exactly one START connector for every process. There
should be at least one END connector for every process and zero or
more of the DEFAULT and GROUND connectors
Supported API: false
public void setConnectorType(WfConnectorType a_ConnectorType) throws WTPropertyVetoException
There is exactly one START connector for every process. There
should be at least one END connector for every process and zero or
more of the DEFAULT and GROUND connectors
Supported API: false
a_ConnectorType
-
WTPropertyVetoException
private void connectorTypeValidate(WfConnectorType a_ConnectorType) throws WTPropertyVetoException
a_ConnectorType
-
WTPropertyVetoException
public int getFiringThreshold()
public void setFiringThreshold(int a_FiringThreshold)
a_FiringThreshold
- public boolean isTerminateActivities()
public void setTerminateActivities(boolean a_TerminateActivities)
a_TerminateActivities
- public WfNode createWfNode(WfContainer container) throws WTException
createWfNode
in interface WfNodeTemplate
container
-
WTException
public static WfConnectorTemplate newWfConnectorTemplate(WfContainerTemplate parent) throws WTException
parent
-
WTException
protected void initialize(WfContainerTemplate parent) throws WTException
parent
-
WTException
public String toString()
toString
in class WTObject
public Enumeration getSourceEvents()
getSourceEvents
in interface WfNodeTemplate
public Enumeration getDestinationActions()
getDestinationActions
in interface WfNodeTemplate
public WfConnectorTemplate copy(WfContainerTemplate parent) throws WTException
parent
-
WTException
public boolean addUserEvent(Object usr_evt)
addUserEvent
in interface WfNodeTemplate
usr_evt
-
public boolean removeUserEvent(Object usr_evt)
removeUserEvent
in interface WfNodeTemplate
usr_evt
-
public Object[] getUserEvents()
getUserEvents
in interface WfNodeTemplate
public long getXCoord()
getXCoord
in interface WfNodeTemplate
public void setXCoord(long a_XCoord) throws WTPropertyVetoException
setXCoord
in interface WfNodeTemplate
a_XCoord
-
WTPropertyVetoException
public long getYCoord()
getYCoord
in interface WfNodeTemplate
public void setYCoord(long a_YCoord) throws WTPropertyVetoException
setYCoord
in interface WfNodeTemplate
a_YCoord
-
WTPropertyVetoException
public WfRouterType getRouterType()
getRouterType
in interface WfNodeTemplate
public void setRouterType(WfRouterType a_RouterType)
setRouterType
in interface WfNodeTemplate
a_RouterType
- public UserEventVector getUserEventList()
getUserEventList
in interface WfNodeTemplate
public void setUserEventList(UserEventVector a_UserEventList)
setUserEventList
in interface WfNodeTemplate
a_UserEventList
- public WfContainerTemplateReference getParentTemplate()
getParentTemplate
in interface WfNodeTemplate
protected void setParentTemplate(WfContainerTemplateReference a_ParentTemplate)
a_ParentTemplate
- public Enumeration getSuccessors() throws WTException
getSuccessors
in interface WfNodeTemplate
WTException
public Enumeration getPredecessors() throws WTException
getPredecessors
in interface WfNodeTemplate
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
private int getNumberPredecessors() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |