|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.Simple
wt.workflow.definer.WfTemplateObject
wt.workflow.definer.WfContainerTemplate
wt.workflow.definer.WfProcessTemplate
A WfProcessTemplate
represents a template for a specific
workflow process; it is used to create instances of a workflow process.
Logically it is the factory and locator for WfProcess instances. It
also provides access to the meta information about the context a process
requires and the result a process produces. A process manager is identified
by its name which is unique within a given business domain.
Use the newWfProcessTemplate
static factory method(s), not
the WfProcessTemplate
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
WfProcess
,
Serialized FormField Summary | |
private CheckoutInfo |
checkoutInfo
|
private static String |
CLASSNAME
|
private ControlBranch |
controlBranch
|
private WTPrincipalReference |
creator
|
static String |
CREATOR
Label for the attribute. |
static String |
DESCRIPTION
Label for the attribute. |
static String |
ENABLED
Label for the attribute. |
static long |
EXTERNALIZATION_VERSION_UID
|
private FolderingInfo |
folderingInfo
|
private IterationInfo |
iterationInfo
|
private Lock |
lock
|
static String |
MASTER
Label for the attribute. |
static String |
MASTER_REFERENCE
Label for the attribute. |
private WfProcessTemplateMasterReference |
masterReference
|
static String |
NAME
Label for the attribute. |
protected static long |
OLD_FORMAT_VERSION_UID
|
private Ownership |
ownership
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.workflow.definer.WfTemplateObject |
CATEGORY, CONTAINER, CONTEXT_SIGNATURE, DURATION, EVENT_CONFIGURATION, ICON_NAME, ORG_ATTRIBUTE, OVERDUE_NOTIFICATION_LIST, PARENT_LINK_REF, PROCESS_DURATION, R30_EXTERNALIZATION_VERSION_UID, R60_EXTERNALIZATION_VERSION_UID, RESPONSIBLE_ROLE, SELF_VARIABLE_NAME, START_DELAY, START_PROCESS_DELAY, TIME_PAST_DEADLINE, TIME_TO_DEADLINE |
Fields inherited from class wt.enterprise.Simple |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.vc.Iterated |
BRANCH_IDENTIFIER, CONTROL_BRANCH, CREATOR_EMAIL, CREATOR_FULL_NAME, CREATOR_NAME, ITERATION_IDENTIFIER, ITERATION_INFO, ITERATION_NOTE, LATEST_ITERATION, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAME |
Fields inherited from interface wt.folder.Foldered |
CABINET, CABINET_NAME, FOLDERING_INFO |
Fields inherited from interface wt.folder.CabinetBased |
CABINET_REFERENCE, FOLDER_PATH, LOCATION |
Fields inherited from interface wt.vc.wip.Workable |
CHECKOUT_INFO |
Fields inherited from interface wt.locks.Lockable |
LOCK, LOCK_DATE, LOCK_NOTE, LOCKED, LOCKER, LOCKER_EMAIL, LOCKER_FULL_NAME, LOCKER_NAME |
Fields inherited from interface wt.workflow.definer.WfNodeTemplate |
PARENT_TEMPLATE, ROUTER_TYPE, USER_EVENT_LIST, X_COORD, Y_COORD |
Fields inherited from interface wt.inf.container.WTContained |
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE |
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 | |
WfProcessTemplate()
|
Method Summary | |
private void |
addElementNoDup(Vector v,
Object obj)
|
private void |
addElementsNoDup(Vector v,
Enumeration e)
|
WfTemplateObject |
copy()
Produces a transient, shallow copy of the object. |
WfTemplateObject |
copy(WTContainerRef context_ref)
Produces a transient, shallow copy of the object. |
protected void |
copyAttributes(WfTemplateObject template)
Copies all attributes into the template object passed as argument. |
WfNode |
createWfNode(WfContainer container)
Creates a requester activity and a process instantiated from the template given the containing process. |
private void |
creatorValidate(WTPrincipalReference a_Creator)
|
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. |
private Enumeration |
getActInBlock(WfContainerTemplate block_def)
|
private Vector |
getAllInnerBlocksRoles(WfBlockTemplate blkTemplate,
Vector roleList)
|
private Vector |
getAllRolesFromTemplates(Enumeration enum,
Vector role_vector)
fetch roles from All types of Templates |
private Vector |
getAllSubProcessActRoles(WfProxyTemplate proxy,
Vector roleList)
|
private Vector |
getAssignedActivityRoles(WfAssignedActivityTemplate template,
Vector roleList)
|
long |
getBranchIdentifier()
Gets the value of the attribute: BRANCH_IDENTIFIER. |
CabinetReference |
getCabinet()
Gets the value of the attribute: CABINET. |
String |
getCabinetName()
Gets the value of the attribute: CABINET_NAME. |
CabinetReference |
getCabinetReference()
Gets the value of the attribute: CABINET_REFERENCE. |
CheckoutInfo |
getCheckoutInfo()
Gets the object for the association that plays role: CHECKOUT_INFO. |
String |
getConceptualClassname()
Deprecated. |
ControlBranch |
getControlBranch()
Gets the value of the attribute: CONTROL_BRANCH. |
WTPrincipalReference |
getCreator()
Gets the object for the association that plays role: CREATOR. |
String |
getCreatorEMail()
Gets the value of the attribute: CREATOR_EMAIL. |
String |
getCreatorFullName()
Gets the value of the attribute: CREATOR_FULL_NAME. |
String |
getCreatorName()
Gets the value of the attribute: CREATOR_NAME. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
Class |
getExecObjClass()
Returns the class of the execution object instantiated by theis class. |
FolderingInfo |
getFolderingInfo()
Gets the object for the association that plays role: FOLDERING_INFO. |
String |
getFolderPath()
Gets the value of the attribute: FOLDER_PATH. |
String |
getIdentity()
Returns the identity string associated with the template. |
IterationIdentifier |
getIterationIdentifier()
Gets the value of the attribute: ITERATION_IDENTIFIER. |
IterationInfo |
getIterationInfo()
Gets the object for the association that plays role: ITERATION_INFO. |
String |
getIterationNote()
Gets the value of the attribute: ITERATION_NOTE. |
String |
getLocation()
Gets the value of the attribute: LOCATION. |
Lock |
getLock()
Gets the object for the association that plays role: LOCK. |
Timestamp |
getLockDate()
Gets the value of the attribute: LOCK_DATE. |
WTPrincipalReference |
getLocker()
Gets the value of the attribute: LOCKER. |
String |
getLockerEMail()
Gets the value of the attribute: LOCKER_EMAIL. |
String |
getLockerFullName()
Gets the value of the attribute: LOCKER_FULL_NAME. |
String |
getLockerName()
Gets the value of the attribute: LOCKER_NAME. |
String |
getLockNote()
Gets the value of the attribute: LOCK_NOTE. |
Mastered |
getMaster()
Gets the object for the association that plays role: MASTER. |
ObjectReference |
getMasterReference()
Gets the value of the attribute: MASTER_REFERENCE. |
WTPrincipalReference |
getModifier()
Gets the value of the attribute: MODIFIER. |
String |
getModifierEMail()
Gets the value of the attribute: MODIFIER_EMAIL. |
String |
getModifierFullName()
Gets the value of the attribute: MODIFIER_FULL_NAME. |
String |
getModifierName()
Gets the value of the attribute: MODIFIER_NAME. |
String |
getName()
Gets the value of the attribute: NAME. |
Ownership |
getOwnership()
Gets the object for the association that plays role: OWNERSHIP. |
WfProcessTemplate |
getProcessTemplate()
Returns a specific iteration of a process template. |
ObjectReference |
getProcessTemplateReference()
Returns a reference to a specific iteration of a process template. |
Vector |
getRequiredRoles()
|
private Vector |
getRobotActivityRoles(WfInternalMethodTemplate template,
Vector roleList)
|
Vector |
getRoles()
|
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supported API: false |
protected void |
initialize(WTContainerRef context_ref)
Supported API: false |
boolean |
isEnabled()
Gets the value of the attribute: ENABLED. |
boolean |
isLatestIteration()
Gets the value of the attribute: LATEST_ITERATION. |
boolean |
isLocked()
Gets the value of the attribute: LOCKED. |
private void |
iterationInfoValidate(IterationInfo a_IterationInfo)
|
private void |
lockValidate(Lock a_Lock)
|
private void |
masterReferenceValidate(ObjectReference a_MasterReference)
|
static WfProcessTemplate |
newWfProcessTemplate()
Deprecated. activities created with this constructor are placed in the classic container. |
static WfProcessTemplate |
newWfProcessTemplate(WTContainerRef context_ref)
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(WfProcessTemplate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setCheckoutInfo(CheckoutInfo a_CheckoutInfo)
Sets the object for the association that plays role: CHECKOUT_INFO. |
void |
setControlBranch(ControlBranch a_ControlBranch)
Sets the value of the attribute: CONTROL_BRANCH. |
void |
setCreator(WTPrincipalReference a_Creator)
Sets the object for the association that plays role: CREATOR. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setEnabled(boolean a_Enabled)
Sets the value of the attribute: ENABLED. |
void |
setFolderingInfo(FolderingInfo a_FolderingInfo)
Sets the object for the association that plays role: FOLDERING_INFO. |
void |
setIterationInfo(IterationInfo a_IterationInfo)
Sets the object for the association that plays role: ITERATION_INFO. |
void |
setLock(Lock a_Lock)
Sets the object for the association that plays role: LOCK. |
void |
setMaster(Mastered a_Master)
Sets the object for the association that plays role: MASTER. |
void |
setMasterReference(ObjectReference a_MasterReference)
Sets the value of the attribute: MASTER_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setOwnership(Ownership a_Ownership)
Sets the object for the association that plays role: OWNERSHIP. |
String |
toString()
Returns a 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.workflow.definer.WfContainerTemplate |
getEndConnectors, getStartConnector, readVersion |
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 |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NAME
public static final String DESCRIPTION
public static final String ENABLED
public static final String MASTER
public static final String MASTER_REFERENCE
private WfProcessTemplateMasterReference masterReference
public static final String CREATOR
private WTPrincipalReference creator
private Ownership ownership
private ControlBranch controlBranch
private IterationInfo iterationInfo
private FolderingInfo folderingInfo
private CheckoutInfo checkoutInfo
private Lock lock
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
Constructor Detail |
public WfProcessTemplate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WfContainerTemplate
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WfContainerTemplate
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WfProcessTemplate 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 WfContainerTemplate
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 WfContainerTemplate
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getName()
getName
in interface WfProcessDefinition
getName
in class WfTemplateObject
public void setName(String a_Name)
setName
in class WfTemplateObject
a_Name
- public String getDescription()
getDescription
in class WfTemplateObject
public void setDescription(String a_Description)
setDescription
in class WfTemplateObject
a_Description
- public boolean isEnabled()
isEnabled
in interface WfProcessDefinition
public void setEnabled(boolean a_Enabled)
a_Enabled
- public Mastered getMaster()
getMaster
in interface Iterated
Mastered
public void setMaster(Mastered a_Master) throws WTPropertyVetoException, WTException
setMaster
in interface Iterated
a_Master
-
WTPropertyVetoException
WTException
Mastered
public ObjectReference getMasterReference()
getMasterReference
in interface Iterated
Mastered
public void setMasterReference(ObjectReference a_MasterReference) throws WTPropertyVetoException
setMasterReference
in interface Iterated
a_MasterReference
-
WTPropertyVetoException
Mastered
private void masterReferenceValidate(ObjectReference a_MasterReference) throws WTPropertyVetoException
a_MasterReference
-
WTPropertyVetoException
public WTPrincipalReference getCreator()
getCreator
in interface Iterated
public void setCreator(WTPrincipalReference a_Creator) throws WTPropertyVetoException
a_Creator
-
WTPropertyVetoException
private void creatorValidate(WTPrincipalReference a_Creator) throws WTPropertyVetoException
a_Creator
-
WTPropertyVetoException
public String toString()
toString
in class WfTemplateObject
public WfTemplateObject copy() throws WTException
copy
in class WfTemplateObject
WTException
public WfNode createWfNode(WfContainer container) throws WTException
createWfNode
in interface WfNodeTemplate
container
-
WTException
protected void copyAttributes(WfTemplateObject template)
copyAttributes
in class WfTemplateObject
template
- public String getIdentity()
getIdentity
in interface Persistable
getIdentity
in class WfTemplateObject
public Class getExecObjClass()
getExecObjClass
in class WfTemplateObject
public static WfProcessTemplate newWfProcessTemplate() throws WTException
WTException
public static WfProcessTemplate newWfProcessTemplate(WTContainerRef context_ref) throws WTException
context_ref
-
WTException
public WfTemplateObject copy(WTContainerRef context_ref) throws WTException
copy
in class WfTemplateObject
context_ref
-
WTException
public Ownership getOwnership()
getOwnership
in interface Ownable
public void setOwnership(Ownership a_Ownership)
setOwnership
in interface Ownable
a_Ownership
- public WfProcessTemplate getProcessTemplate() throws WTException
getProcessTemplate
in interface WfProcessDefinition
WTException
public ObjectReference getProcessTemplateReference() throws WTException
getProcessTemplateReference
in interface WfProcessDefinition
WTException
public String getIterationNote()
getIterationNote
in interface Iterated
public String getCreatorEMail()
getCreatorEMail
in interface Iterated
public String getCreatorName()
getCreatorName
in interface Iterated
public String getCreatorFullName()
getCreatorFullName
in interface Iterated
public WTPrincipalReference getModifier()
getModifier
in interface Iterated
public String getModifierEMail()
getModifierEMail
in interface Iterated
public String getModifierName()
getModifierName
in interface Iterated
public String getModifierFullName()
getModifierFullName
in interface Iterated
public IterationIdentifier getIterationIdentifier()
getIterationIdentifier
in interface Iterated
public long getBranchIdentifier()
getBranchIdentifier
in interface Iterated
public boolean isLatestIteration()
isLatestIteration
in interface Iterated
public ControlBranch getControlBranch()
getControlBranch
in interface Iterated
public void setControlBranch(ControlBranch a_ControlBranch) throws WTPropertyVetoException
setControlBranch
in interface Iterated
a_ControlBranch
-
WTPropertyVetoException
public IterationInfo getIterationInfo()
getIterationInfo
in interface Iterated
IterationInfo
public void setIterationInfo(IterationInfo a_IterationInfo) throws WTPropertyVetoException
setIterationInfo
in interface Iterated
a_IterationInfo
-
WTPropertyVetoException
IterationInfo
private void iterationInfoValidate(IterationInfo a_IterationInfo) throws WTPropertyVetoException
a_IterationInfo
-
WTPropertyVetoException
public String getCabinetName()
getCabinetName
in interface Foldered
public CabinetReference getCabinet()
getCabinet
in interface Foldered
public FolderingInfo getFolderingInfo()
getFolderingInfo
in interface Foldered
public void setFolderingInfo(FolderingInfo a_FolderingInfo)
setFolderingInfo
in interface Foldered
a_FolderingInfo
- public String getFolderPath()
getFolderPath
in interface CabinetBased
public String getLocation()
getLocation
in interface CabinetBased
public CabinetReference getCabinetReference()
getCabinetReference
in interface CabinetBased
public CheckoutInfo getCheckoutInfo()
getCheckoutInfo
in interface Workable
CheckoutInfo
public void setCheckoutInfo(CheckoutInfo a_CheckoutInfo) throws WTPropertyVetoException
setCheckoutInfo
in interface Workable
a_CheckoutInfo
-
WTPropertyVetoException
CheckoutInfo
public boolean isLocked()
isLocked
in interface Lockable
public Timestamp getLockDate()
getLockDate
in interface Lockable
public String getLockNote()
getLockNote
in interface Lockable
public WTPrincipalReference getLocker()
getLocker
in interface Lockable
public String getLockerEMail()
getLockerEMail
in interface Lockable
public String getLockerName()
getLockerName
in interface Lockable
public String getLockerFullName()
getLockerFullName
in interface Lockable
public Lock getLock()
getLock
in interface Lockable
Lock
public void setLock(Lock a_Lock) throws WTPropertyVetoException
setLock
in interface Lockable
a_Lock
-
WTPropertyVetoException
Lock
private void lockValidate(Lock a_Lock) throws WTPropertyVetoException
a_Lock
-
WTPropertyVetoException
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 WfContainerTemplate
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 WfContainerTemplate
protected void initialize() throws WTException
Simple
initialize
in class WfTemplateObject
WTException
protected void initialize(WTContainerRef context_ref) throws WTException
WfTemplateObject
initialize
in class WfTemplateObject
context_ref
-
WTException
public Vector getRoles() throws WTException, WfException
WTException
WfException
public Vector getRequiredRoles() throws WTException, WfException
WTException
WfException
private void addElementsNoDup(Vector v, Enumeration e)
private void addElementNoDup(Vector v, Object obj)
private Vector getAllSubProcessActRoles(WfProxyTemplate proxy, Vector roleList) throws WTException
WTException
private Vector getAllInnerBlocksRoles(WfBlockTemplate blkTemplate, Vector roleList) throws WfException, WTException
WfException
WTException
private Enumeration getActInBlock(WfContainerTemplate block_def) throws WfException, WTException
WfException
WTException
private Vector getRobotActivityRoles(WfInternalMethodTemplate template, Vector roleList) throws WTException
WTException
private Vector getAssignedActivityRoles(WfAssignedActivityTemplate template, Vector roleList) throws WTException
WTException
private Vector getAllRolesFromTemplates(Enumeration enum, Vector role_vector) throws WTException, WfException
WTException
WfException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |