Package wt.lifecycle
Interface LifeCycleService
- All Known Implementing Classes:
StandardLifeCycleService
LifeCycleService provides client invokable methods to life cycle services.
These methods are executed on the server side.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionaugmentRoles(Set<LifeCycleManaged> lcmObject) Given a Set of LifeCycleManaged object, the current State of the Object and the RoleHolder (the phase object), change the role participants to reflect those in the RoleHolder2
Supported API: trueaugmentRoles(LifeCycleManaged object) Given a LifeCycleManaged object, the current State of the Object and the RoleHolder (the phase object), change the role participants to reflect those in the RoleHolder2
Supported API: truevoidaugmentRoles(Team team) Given a team, rebuild all the ad hoc acls for objects associated with the team.copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation) Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument.copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation, WTContainerRef context) Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument.copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation, WTContainerRef context, boolean checkAccess) Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument.createLifeCycleSignature(Persistable object, WTPrincipal signer, String comments, Role role, boolean vote) Answer an initialized but unpersisted LifeCycleSignature instance
Supported API: truedemote(LifeCycleManaged object, LifeCycleSignature signature) Move the object to the previous phase.deny(LifeCycleManaged object, LifeCycleSignature signature) Remove the object from the gate and return the object to the submitter
Supported API: truedrop(LifeCycleManaged object, LifeCycleSignature signature) Transition the object to an end state
Supported API: truefindAllTemplateMasters(WTContainerRef context) Answer a vector of all life cycle template masters for the WTContainerRef passed.Answer a vector of all life cycle templates.findAllTemplates(WTContainerRef context) Answer a vector of all life cycle templates for the WTContainerRef passed.findAllTemplates(WTContainerRef context, boolean routingOnly) Answer a vector of all life cycle templates for the WTContainerRef passed.findAllTemplates(WTContainerRef context, boolean routingOnly, boolean keepFiltered) Answer a vector of all life cycle templates for the WTContainerRef passed.findAssociatedProcesses(LifeCycleManaged object, WfState state) Given a Life Cycle Managed object, return the Workflow processes associated with the current phase.findCandidateMasterReferences(Class targetClass) Answer a vector of life cycle template references valid for the class
Supported API: truefindCandidateMasterReferences(Class targetClass, WTContainerRef context) Answer a vector of life cycle template references valid for the target class in the container.Answer a vector of life cycle template references valid for the life cycle managed object
Supported API: truefindCandidateTemplates(Class targetClass) Answer a vector of enabled life cycle template references valid for the class findCandidateMasterReference is the preferable to use instead of this method.findCandidateTemplates(Class targetClass, WTContainerRef containerRef) Answer a vector of enabled life cycle template references valid for the life cycle managed object and container context.Answer a vector of enabled life cycle template references valid for the life cycle managed object findCandidateMasterReference is the preferable to use instead of this method.Given a particular LifeCycleManged object, answer an enumeration of all the predecessor States
Supported API: trueNavigates the PhaseTemplate->PhaseSuccession using param transition.findRoutingTemplates(WTContainerRef context) Return an Enumeration of all lifecycle templates for the WTContainerRef passed.Determines the allowable states the session principal can set the objects in the collection to.findStates(LifeCycleTemplate aLifeCycleTemplate) Given a particular LifeCycleTemplate, answer a Vector of all the Life Cycle States used in that LifeCycle
Supported API: truefindSuccessorStates(LifeCycleManaged object) Given a particular LifeCycleTemplate, answer an enumeration of all the Successor States
Supported API: truegetAllReviewerList(LifeCycleManaged object) Answer a vector of LifeCycleSignatures
Supported API: truegetAllSignatures(LifeCycleManaged object) Answer a vector of signatures for all roles for the object for the current phase and all preceeding phases.getCriteria(LifeCycleManaged object) Answer a vector of Criterion objects for the current phase
Supported API: truegetCurrentWorkflow(LifeCycleManaged object) Given a LifeCycleManaged object, return a reference to the current WfProcess.getHistory(LifeCycleManaged object) Answer an enumeration of LifeCycleHistory objects based on supplied object.Given a LifeCycleTemplateMaster, return the latest iteration (LifeCycleTemplate)
Supported API: trueGiven a LifeCycleTemplateMasterReference, return the latest iteration (LifeCycleTemplateReference)
Supported API: truegetLifecycleTemplate(String aTemplateName, WTContainerRef context, boolean ignoreCheckedOutTemplate) Given a String representation of the LifeCycleTemplate name and a WTContainerRef, answer the LifeCycleTemplate.getLifeCycleTemplate(String aTemplateName) Given a String representation of the LifeCycleTemplate name, answer the enabled LifeCycleTemplate.getLifeCycleTemplate(String aTemplateName, WTContainerRef context) Given a String representation of the LifeCycleTemplate name and a WTContainerRef, answer the LifeCycleTemplate.getLifeCycleTemplate(LifeCycleManaged object) Deprecated.in R4.0 - Use myObject.getLifeCycleTemplate() instead.getLifeCycleTemplateMaster(String aMasterName) Given a String representation of the LifeCycleTemplateMaster name, answer the LifeCycleTemplateMasterReference
Supported API: truegetLifeCycleTemplateMaster(String aMasterName, WTContainerRef context) Given a String representation of the LifeCycleTemplateMaster name and a WTContainerRef, answer the LifeCycleTemplateMasterReference
Supported API: trueGiven a String representation of the LifeCycleTemplater name, find the latest iteration or working copy of the LifeCycleTemplate.getLifeCycleTemplateReference(String aName, WTContainerRef context) Given a String representation of the LifeCycleTemplater name and a WTContainerRef, find the latest iteration or working copy of the LifeCycleTemplate.getLifecycleVotingHistory(String objRef) Answer a vector of signatures for all roles for the object for the passed lifecycle history object
Supported API: truegetPhaseTemplates(LifeCycleTemplate template) Given a LifeCycleTemplate, return a vector of all the PhaseTemplate objects
Supported API: truegetPredecessorState(LifeCycleManaged lcmObject) This operation determines the current state of the object and returns the predecessor state for the object.getReviewerList(LifeCycleManaged object) Answer a vector of LifeCycleSignatures
Supported API: truegetRoles(LifeCycleManaged object) Answer a vector of strings - role names for the current phase
Supported API: truegetSeriesSelectors(WTSet lcms) Given a WTSet of objects, returns a WTKeyedMap whose keys are those elements of the argument set that are LifeCycleManaged and whose values are the keys' corresponding SeriesRangeSelector values for their current states, if applicable.getSignatures(LifeCycleManaged object) Answer a vector of signatures for all roles for the object for the current phase.getSignatures(LifeCycleManaged object, WTUser user) Answer a vector of LifeCycleSignatures based on supplied object & user.getSignatures(LifeCycleManaged object, WTUser user, Role role) Answer a vector of LifeCycleSignature for the current phase based on object, user and role.getSignatures(LifeCycleManaged object, Role role) Answer a vector of LifeCycleSignature for the current phase based on object and role.getSuccessorState(LifeCycleManaged lcmObject) This operation determines the current state of the object and returns the successor state for the object.booleanhasAugmentRoleAccess(Role role, LifeCycleManaged object) Given a role and a LifeCycleManaged object, determines whether the current user has the permissions required to update the role participants
Supported API: truebooleanisA(LifeCycleManaged object, WTUser user, Role role) Deprecated.at 8.0.booleanisInFinalPhase(LifeCycleManaged object) Answers whether the LifeCycleManaged object is in the Final phase of its LifeCycle
Supported API: truebooleanisInInitialPhase(LifeCycleManaged object) Answer whether the LifeCycleManaged object is in the Initial phase
Supported API: truebooleanisState(LifeCycleTemplate aLifeCycleTemplate, State aState) Given a particular LifeCycleTemplate and a State, answer whether or not the State is used in the LifeCycle
Supported API: truenavigate(WTCollection c, Transition transition, boolean successor) Navigate the PhaseSuccessors for the Transition for all objects in the WTCollection.navigate(WTKeyedMap c, Transition transition, boolean successor) Navigates the PhaseTemplate->PhaseSuccession using param transition.navigate(LifeCycleManaged lcmObject, Transition name, boolean successor) Navigate the transition of the current state of the LifeCycleManagedObject using the passed transition.navigate(LifeCycleTemplateReference lctRef, State state, Transition transition, boolean successor) Navigate the transition from the passed state using the passed transition.promote(LifeCycleManaged object, LifeCycleSignature signature) Move the object to the next phase.reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, boolean preserveState) Reassign all objects in a WTList to a lifecycle.reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, boolean preserveState, String comments) Reassign all objects in a WTList to a lifecycle.reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, State state) Reassign the life cycle managed objects in a WTList to a new life cycle in a certain WTContainerRef.reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, State state, String comments) Reassign the life cycle managed objects in a WTList to a new life cycle in a certain WTContainerRef.reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) Reassign a life cycle managed object to a new life cycle.reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context) Reassign a life cycle managed object to a new life cycle in a certain WTContainerRef.reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context, String comments) Reassign a life cycle managed object to a new life cycle in a certain WTContainerRef.Store or update a LifeCycleTemplate.saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context) Store or update a LifeCycleTemplate.saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context, boolean bypassDefaultTransitions) Store or update a LifeCycleTemplate.voidsetEnabled(LifeCycleTemplateMaster aMaster, boolean enable) Enable/Disable the Life Cycle Template Master
Supported API: truevoidsetEnabled(LifeCycleTemplate aTemplate, boolean enable) Enable/Disable the Life Cycle Template Master
Supported API: truesetLifeCycleState(WTList list, Map stateMap, WTList terminateList) Set the state of the Life Cycle Managed objects in the WTList list.setLifeCycleState(WTList list, State state, boolean terminAssocRunningProcesses) Set the state of the Life Cycle Managed objects and provide the option to terminate the associated workflows.setLifeCycleState(LifeCycleManaged object, State state) Set the state of the Life Cycle Managed object.setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses) Set the state of the Life Cycle Managed object and provide the option to terminate the associated workflows.setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses, Timestamp timestamp) Set the state of the Life Cycle Managed object.voidsetRouting(LifeCycleTemplateMaster aMaster, boolean routing) Set/reset the routing attribute of the Life Cycle Template Master.voidsetRouting(LifeCycleTemplate aTemplate, boolean routing) Set/reset the rouing attribute on the Life Cycle Template Master.submitForApproval(LifeCycleManaged object) Submit the object for review.Perform pre-submit validations
Supported API: truevote(LifeCycleManaged object, LifeCycleSignature signature) Record a signer disposition (Yes/No) and any comments.
-
Method Details
-
submitForApproval
Submit the object for review.
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be submitted for approval- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
vote
LifeCycleSignature vote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException Record a signer disposition (Yes/No) and any comments.
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be voted onsignature- the signature object where the vote results should be recorded- Returns:
- LifeCycleSignature
- Throws:
WTExceptionLifeCycleException
-
promote
LifeCycleManaged promote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException Move the object to the next phase.The doPromote method is executed
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be promotedsignature- the Signature object where the results and information about the promote should be recorded- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
demote
LifeCycleManaged demote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException Move the object to the previous phase.The doDemote method is executed
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be demoted.signature- the Signature object where the results and information about the demote should be recorded- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
deny
LifeCycleManaged deny(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException Remove the object from the gate and return the object to the submitter
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be deniedsignature- the Signature object that the result and information about the deny is recorded- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
drop
LifeCycleManaged drop(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException Transition the object to an end state
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be moved to a final/dropped statesignature- the LifeCycleSignature object records information about the drop process- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
reassign
LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) throws WTException, LifeCycleException Reassign a life cycle managed object to a new life cycle.
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned to- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
getLifeCycleTemplate
LifeCycleTemplate getLifeCycleTemplate(LifeCycleManaged object) throws WTException, LifeCycleException Deprecated.in R4.0 - Use myObject.getLifeCycleTemplate() instead.Answer the LifeCycleTemplate the object is assigned to
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of the LifeCycleTemplate- Returns:
- LifeCycleTemplate
- Throws:
WTExceptionLifeCycleException
-
getSignatures
Vector getSignatures(LifeCycleManaged object, WTUser user, Role role) throws WTException, LifeCycleException Answer a vector of LifeCycleSignature for the current phase based on object, user and role.
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of signature objectsuser- the WTUser object used as search criteria in the retrieval of Signature objectsrole- the Role object used as search criteria in the retrieval of the Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getSignatures
Answer a vector of LifeCycleSignature for the current phase based on object and role.
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of the Signature objectsrole- the Role object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getSignatures
Answer a vector of signatures for all roles for the object for the current phase.
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getSignatures
Answer a vector of LifeCycleSignatures based on supplied object & user.
Supported API: true- Parameters:
object- The LifeCycleManaged object used as search criteria in the retrieval of Signature objectsuser- the WTUser object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getAllSignatures
Answer a vector of signatures for all roles for the object for the current phase and all preceeding phases.
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
createLifeCycleSignature
LifeCycleSignature createLifeCycleSignature(Persistable object, WTPrincipal signer, String comments, Role role, boolean vote) throws WTException Answer an initialized but unpersisted LifeCycleSignature instance
Supported API: true- Parameters:
object- the Persistable object that the LifeCycleSignature is associated tosigner- the WTPrincipal who did the workcomments- any comments the signer recorded about the work accomplishedrole- the Role object, used to represent the role the signer was participating asvote- a boolean signer designation, used to record the disposition- Returns:
- LifeCycleSignature
- Throws:
WTException
-
getReviewerList
Answer a vector of LifeCycleSignatures
Supported API: true- Parameters:
object- The LifeCycleManaged object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getAllReviewerList
Answer a vector of LifeCycleSignatures
Supported API: true- Parameters:
object- The LifeCycleManaged object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getRoles
Answer a vector of strings - role names for the current phase
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of Role objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getCriteria
Answer a vector of Criterion objects for the current phase
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of Criterion objects- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
saveLifeCycleTemplate
TransactionResult saveLifeCycleTemplate(TransactionContainer aTran) throws WTException, LifeCycleException Store or update a LifeCycleTemplate. This method accepts and processes a batch container of persistence assertions.
Supported API: true- Parameters:
aTran- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions that need to be applied against one or more LifeCycleTemplate objects- Returns:
- TransactionResult
- Throws:
WTExceptionLifeCycleException
-
getHistory
Answer an enumeration of LifeCycleHistory objects based on supplied object.Usage:
LifeCycleHistory aHistory = null; Enumeration e = LifeCycleHelper.service.getHistory(aLifeCycleManaged); while (e.hasMoreElements()) { aHistory = (LifeCycleHistory)e.nextElement(); // -- do stuff }
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria for the retrieval of History information- Returns:
- QueryResult
- Throws:
WTExceptionLifeCycleException
-
isA
Deprecated.at 8.0. A user no longer has to belong to a specific role in order to complete a lifecycle taskAnswer whether the designated user is validated for the designated role
Supported API: true- Parameters:
object- the LifeCycleManaged objectuser- the designated userrole- the designated role- Returns:
- boolean
- Throws:
WTExceptionLifeCycleException
-
isInInitialPhase
Answer whether the LifeCycleManaged object is in the Initial phase
Supported API: true- Parameters:
object- The LifeCycleManaged object- Returns:
- boolean
- Throws:
WTException
-
isInFinalPhase
Answers whether the LifeCycleManaged object is in the Final phase of its LifeCycle
Supported API: true- Parameters:
object- The LifeCycleManaged object- Returns:
- boolean
- Throws:
WTException
-
getLifeCycleTemplate
Given a String representation of the LifeCycleTemplate name, answer the enabled LifeCycleTemplate. If no template is found, returnnull/code>.
Supported API: true- Parameters:
aTemplateName- the name of the LifeCycleTemplate to retrieve- Returns:
- LifeCycleTemplate
- Throws:
LifeCycleExceptionWTException
-
validateSubmitForApproval
LifeCycleManaged validateSubmitForApproval(LifeCycleManaged object) throws WTException, LifeCycleException Perform pre-submit validations
Supported API: true- Parameters:
object- the LifeCycleManaged object to be submitted- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
hasAugmentRoleAccess
boolean hasAugmentRoleAccess(Role role, LifeCycleManaged object) throws WTException, LifeCycleException Given a role and a LifeCycleManaged object, determines whether the current user has the permissions required to update the role participants
Supported API: true- Parameters:
role- The LifeCycleManaged object that the role/participant mapping is being added toobject- the object whose team is being modified- Returns:
- boolean
- Throws:
WTExceptionLifeCycleException
-
findCandidateTemplates
Answer a vector of enabled life cycle template references valid for the life cycle managed object findCandidateMasterReference is the preferable to use instead of this method. Using findCandidateMasterReference plus the 'getLifeCycleTemplate' method on that object will get the latest iteration at the last possible moment, eliminating some multi-user timing issues.
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of canidate LifeCycleTemplates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findCandidateTemplates
Answer a vector of enabled life cycle template references valid for the class findCandidateMasterReference is the preferable to use instead of this method. Using findCandidateMasterReference plus the 'getLifeCycleTemplate' method on that object will get the latest iteration at the last possible moment, eliminating some multi-user timing issues.
Supported API: true- Parameters:
targetClass- the class used as search criteria in the retrieval of canidate LifeCycleTemplates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findStates
Given a particular LifeCycleTemplate, answer a Vector of all the Life Cycle States used in that LifeCycle
Supported API: true- Parameters:
aLifeCycleTemplate- the LifeCycleTemplate used to retrieve the appropriate states- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
isState
boolean isState(LifeCycleTemplate aLifeCycleTemplate, State aState) throws WTException, LifeCycleException Given a particular LifeCycleTemplate and a State, answer whether or not the State is used in the LifeCycle
Supported API: true- Parameters:
aLifeCycleTemplate- the LifeCycleTemplate used in the lookupaState- the State used in the lookup- Returns:
- boolean
- Throws:
WTExceptionLifeCycleException
-
findPredecessorStates
Given a particular LifeCycleManged object, answer an enumeration of all the predecessor States
Supported API: true- Parameters:
object- the LifeCycleManaged object of interest- Returns:
- Enumeration
- Throws:
WTExceptionLifeCycleException
-
findSuccessorStates
Given a particular LifeCycleTemplate, answer an enumeration of all the Successor States
Supported API: true- Parameters:
object- the LifeCycleManaged object of interest- Returns:
- Enumeration
- Throws:
WTExceptionLifeCycleException
-
setEnabled
Enable/Disable the Life Cycle Template Master
Supported API: true- Parameters:
aTemplate- the template to set the enabled flat onenable- specifies whether or not the template is enabled- Throws:
WTExceptionLifeCycleException
-
setEnabled
void setEnabled(LifeCycleTemplateMaster aMaster, boolean enable) throws WTException, LifeCycleException Enable/Disable the Life Cycle Template Master
Supported API: true- Parameters:
aMaster- the lifecycle template master to set the enabled flag onenable- sets the value of the enabled flag to true or false- Throws:
WTExceptionLifeCycleException
-
findCandidateMasterReferences
Vector findCandidateMasterReferences(LifeCycleManaged object) throws WTException, LifeCycleException Answer a vector of life cycle template references valid for the life cycle managed object
Supported API: true- Parameters:
object- the LifeCycleManaged object used as search criteria in the retrieval of canidate LifeCycleTemplates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findCandidateMasterReferences
Answer a vector of life cycle template references valid for the class
Supported API: true- Parameters:
targetClass- the class used as search criteria in the retrieval of canidate LifeCycleTemplates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getLifeCycleTemplateMaster
LifeCycleTemplateMaster getLifeCycleTemplateMaster(String aMasterName) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplateMaster name, answer the LifeCycleTemplateMasterReference
Supported API: true- Parameters:
aMasterName- the name of the LifeCycleTemplate to retrieve- Returns:
- LifeCycleTemplateMaster
- Throws:
LifeCycleExceptionWTException
-
getLifeCycleTemplateReference
LifeCycleTemplateReference getLifeCycleTemplateReference(String aName) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplater name, find the latest iteration or working copy of the LifeCycleTemplate. Return a LifeCycleTemplateReference.
Supported API: true- Parameters:
aName- the name of the LifeCycleTemplate to retrieve- Returns:
- LifeCycleTemplateReference
- Throws:
LifeCycleExceptionWTException
-
getLifeCycleTemplateReference
LifeCycleTemplateReference getLifeCycleTemplateReference(String aName, WTContainerRef context) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplater name and a WTContainerRef, find the latest iteration or working copy of the LifeCycleTemplate. Return a LifeCycleTemplateReference.
Supported API: true- Parameters:
aName- the name of the LifeCycleTemplate to retrievecontext- the container to search for the lifecycle template master- Returns:
- LifeCycleTemplateReference
- Throws:
LifeCycleExceptionWTException
-
setLifeCycleState
LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses) throws WTException, LifeCycleException Set the state of the Life Cycle Managed object and provide the option to terminate the associated workflows. If null is passed as the WfState, all processes are terminated.
Supported API: true- Parameters:
object- The LifeCycleManaged object whose state should be updatedstate- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNING- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
setLifeCycleState
LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state) throws WTException, LifeCycleException Set the state of the Life Cycle Managed object.
Supported API: true- Parameters:
object- The LifeCycleManaged object whose state should be updatedstate- The state to set the LifeCycleManaged object to.- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
findAssociatedProcesses
Vector findAssociatedProcesses(LifeCycleManaged object, WfState state) throws WTException, LifeCycleException Given a Life Cycle Managed object, return the Workflow processes associated with the current phase. If null is specified as the Wf State, all processes are retrieved.
Supported API: true- Parameters:
object- the Life Cycle Managed objectstate- the Workflow state- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
copyTemplate
LifeCycleTemplate copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation) throws WTException, LifeCycleException Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument. If the name argument is "null", the name of the copied LifeCycleTemplate object is prefixed with 'copy of'. If the folder location is not specified, the object will be persisted in the orginal LifeCycleTemplates's folder location. Note: The 'Copy Of' prefix is pulled from a Resource Bundle for localization purposes.
Supported API: true- Parameters:
lifeCycleTemplate- the LifeCycleTemplate object that should be copiedcopyName- the name of the new LifeCycleTemplatefolderLocation- the folder location of the new LifeCycleTemplate- Returns:
- LifeCycleTemplate
- Throws:
WTExceptionLifeCycleException
-
findAllTemplates
Answer a vector of all life cycle templates. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault.
Supported API: true- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getLatestIteration
LifeCycleTemplate getLatestIteration(LifeCycleTemplateMaster master) throws WTException, LifeCycleException Given a LifeCycleTemplateMaster, return the latest iteration (LifeCycleTemplate)
Supported API: true- Parameters:
master- the lifecycle master of interest- Returns:
- LifeCycleTemplate
- Throws:
WTExceptionLifeCycleException
-
getLatestIteration
LifeCycleTemplateReference getLatestIteration(LifeCycleTemplateMasterReference master) throws WTException, LifeCycleException Given a LifeCycleTemplateMasterReference, return the latest iteration (LifeCycleTemplateReference)
Supported API: true- Parameters:
master- the lifecycle template master of interest- Returns:
- LifeCycleTemplateReference
- Throws:
WTExceptionLifeCycleException
-
getPhaseTemplates
Given a LifeCycleTemplate, return a vector of all the PhaseTemplate objects
Supported API: true- Parameters:
template- the lifecycle template to retrieve the phase templates for- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getCurrentWorkflow
Given a LifeCycleManaged object, return a reference to the current WfProcess. If the LifeCycleManaged object is in the phase, the Phase WF is returned. If the LifeCycleManaged object is at the gate, the Gate WF is returned. If there is no workflow, a null is returned.
Supported API: true- Parameters:
object- the object whoose current workflow should be returned- Returns:
- ObjectReference
- Throws:
WTExceptionLifeCycleException
-
augmentRoles
Given a LifeCycleManaged object, the current State of the Object and the RoleHolder (the phase object), change the role participants to reflect those in the RoleHolder2
Supported API: true- Parameters:
object- The LifeCycleManaged object that the role/participant mapping is being added to- Returns:
- Phase
- Throws:
WTExceptionLifeCycleException
-
getSuccessorState
This operation determines the current state of the object and returns the successor state for the object. That is, the state the object will be in when promoted.
Supported API: true- Parameters:
lcmObject- The Life Cycle Managed object used to get the next state.- Returns:
- State
- Throws:
WTExceptionLifeCycleException
-
getPredecessorState
This operation determines the current state of the object and returns the predecessor state for the object. That is, the state the object will be in when demoted
Supported API: true- Parameters:
lcmObject- The Life Cycle Managed object used to get the next state.- Returns:
- State
- Throws:
WTExceptionLifeCycleException
-
augmentRoles
Given a team, rebuild all the ad hoc acls for objects associated with the team.
Supported API: true- Parameters:
team- The team being updated.- Throws:
WTExceptionLifeCycleException
-
getLifeCycleTemplate
LifeCycleTemplate getLifeCycleTemplate(String aTemplateName, WTContainerRef context) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplate name and a WTContainerRef, answer the LifeCycleTemplate. If no template is found, returnnull/code>.
Supported API: true- Parameters:
aTemplateName- the name of the LifeCycleTemplate to retrievecontext- the container to search for the lifecycle template- Returns:
- LifeCycleTemplate
- Throws:
LifeCycleExceptionWTException
-
getLifecycleTemplate
LifeCycleTemplate getLifecycleTemplate(String aTemplateName, WTContainerRef context, boolean ignoreCheckedOutTemplate) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplate name and a WTContainerRef, answer the LifeCycleTemplate. If no template is found, then return template in parent container .
Supported API: true- Parameters:
aTemplateName- the name of the LifeCycleTemplate to retrievecontext- the container to search for the lifecycle templateignoreCheckedOutTemplate- ignore check out template If value is true then it will check for template which is not check out in cabinet folder if not found then it return template in parent container.- Returns:
- LifeCycleTemplate
- Throws:
LifeCycleExceptionWTExceptionException
-
findAllTemplates
Answer a vector of all life cycle templates for the WTContainerRef passed. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault.
Supported API: true- Parameters:
context- the container to search for lifecycle templates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
getLifeCycleTemplateMaster
LifeCycleTemplateMaster getLifeCycleTemplateMaster(String aMasterName, WTContainerRef context) throws LifeCycleException, WTException Given a String representation of the LifeCycleTemplateMaster name and a WTContainerRef, answer the LifeCycleTemplateMasterReference
Supported API: true- Parameters:
aMasterName- the name of the LifeCycleTemplate to retrievecontext- the container to search for the lifecycle template master- Returns:
- LifeCycleTemplateMaster
- Throws:
LifeCycleExceptionWTException
-
reassign
LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context) throws WTException, LifeCycleException Reassign a life cycle managed object to a new life cycle in a certain WTContainerRef.
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- the container where the objects associated workflow processes will be created- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
saveLifeCycleTemplate
TransactionResult saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context) throws WTException, LifeCycleException Store or update a LifeCycleTemplate. This method accepts and processes a batch container of persistence assertions. If a WTContainerRef is passed, and it is different that that of this templates master; then a new master is created in the passed WTContainer, and this template becomes the first iteration.
Supported API: true- Parameters:
aTran- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions that need to be applied against one or more LifeCycleTemplate objectscontext- the container the lifecycle template is being saved in- Returns:
- TransactionResult
- Throws:
WTExceptionLifeCycleException
-
findCandidateMasterReferences
Vector findCandidateMasterReferences(Class targetClass, WTContainerRef context) throws WTException, LifeCycleException Answer a vector of life cycle template references valid for the target class in the container.
Supported API: true- Parameters:
targetClass- the class used as search criteria in the retrieval of canidate LifeCycleTemplatescontext- the container to search for lifecycle template masters- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findAllTemplateMasters
Answer a vector of all life cycle template masters for the WTContainerRef passed. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault.
Supported API: true- Parameters:
context- the container to search for lifecycle templates- Returns:
- QueryResult
- Throws:
WTExceptionLifeCycleException
-
setRouting
void setRouting(LifeCycleTemplate aTemplate, boolean routing) throws WTException, LifeCycleException Set/reset the rouing attribute on the Life Cycle Template Master. This attribute denotes whether or not the template master can be used to route other objects
Supported API: true- Parameters:
aTemplate- the template to set the routing statis onrouting- sets the routing flag to true or false- Throws:
WTExceptionLifeCycleException
-
setRouting
void setRouting(LifeCycleTemplateMaster aMaster, boolean routing) throws WTException, LifeCycleException Set/reset the routing attribute of the Life Cycle Template Master. This attribute denotes whether or not the template master can be used to route other objects
Supported API: true- Parameters:
aMaster- the lifecycle template master to set the routing status onrouting- sets the routing flag to true or false- Throws:
WTExceptionLifeCycleException
-
findRoutingTemplates
Return an Enumeration of all lifecycle templates for the WTContainerRef passed. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault.
Supported API: true- Parameters:
context- the container to search for lifecycle templates- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findAllTemplates
Vector findAllTemplates(WTContainerRef context, boolean routingOnly, boolean keepFiltered) throws WTException, LifeCycleException Answer a vector of all life cycle templates for the WTContainerRef passed. If routingOnly is true, returns only those templates whose routing attribute is true. If keepFiltered is true, returns templates that have been hidden in the container context, otherwise only those templates that are visible in the container context are returned. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault.
Supported API: true- Parameters:
context- the container to search for lifecycle templatesroutingOnly- specifies whether only the lifecycle templates marked as routing should be returned or it all enabled lifecycle templates should be returnedkeepFiltered- Indicates whether or not filtered templates are to be returned. If true, return all templates, otherwise return only those templates that are visible in the container context.- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
findAllTemplates
Vector findAllTemplates(WTContainerRef context, boolean routingOnly) throws WTException, LifeCycleException Answer a vector of all life cycle templates for the WTContainerRef passed. If routingOnly is true, returns only those templates whose routing attribute is true. The latest iteration of each life cycle template will be returned. In this particular context, the definition of 'latest iteration' is either the current user's working copy, if one exists, or the latest iteration in the vault. This API will call findAllTemplates(WTContainerRef context, boolean routingOnly, boolean keepFiltered) with a value of false for the keepFiltered argument.
Supported API: true- Parameters:
context- the container to search for lifecycle templatesroutingOnly- specifies whether only the lifecycle templates marked as routing should be returned or it all enabled lifecycle templates should be returned- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
copyTemplate
LifeCycleTemplate copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation, WTContainerRef context) throws WTException, LifeCycleException Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument. If the name argument is "null", the name of the copied LifeCycleTemplate object is prefixed with 'copy of'. If the folder location is not specified, the object will be persisted in the orginal LifeCycleTemplates's folder location. If the context is null, the current container will be used. Note: The 'Copy Of' prefix is pulled from a Resource Bundle for localization purposes.
Supported API: true- Parameters:
lifeCycleTemplate- the LifeCycleTemplate object that should be copiedcopyName- the name of the new LifeCycleTemplatefolderLocation- the folder location of the new LifeCycleTemplatecontext- the container where the copy should be stored- Returns:
- LifeCycleTemplate
- Throws:
WTExceptionLifeCycleException
-
copyTemplate
LifeCycleTemplate copyTemplate(LifeCycleTemplate lifeCycleTemplate, String copyName, String folderLocation, WTContainerRef context, boolean checkAccess) throws WTException, LifeCycleException Produces a copy of the LifeCycleTemplate object and persists it with the name passed as argument. If the name argument is "null", the name of the copied LifeCycleTemplate object is prefixed with 'copy of'. If the folder location is not specified, the object will be persisted in the orginal LifeCycleTemplates's folder location. If the context is null, the current container will be used. Allows turning on or off checking access permissions to invoke this method. Note: The 'Copy Of' prefix is pulled from a Resource Bundle for localization purposes.
Supported API: true- Parameters:
lifeCycleTemplate- the LifeCycleTemplate object that should be copiedcopyName- the name of the new LifeCycleTemplatefolderLocation- the folder location of the new LifeCycleTemplatecontext- the container where the copy should be storedcheckAccess- enables or disables access check- Returns:
- LifeCycleTemplate
- Throws:
WTExceptionLifeCycleException
-
reassign
WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, boolean preserveState) throws WTException, LifeCycleException Reassign all objects in a WTList to a lifecycle.
Supported API: true- Parameters:
list- the WtList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- The container the object resides in. This may be null.preserveState- If this is set to true, the existing state of objects will be preserved if the state is contained in the lifecycle template. Otherwise, the object will be set to the initial state of the lifecycle.- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
reassign
WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, State state) throws WTException, LifeCycleException Reassign the life cycle managed objects in a WTList to a new life cycle in a certain WTContainerRef.
Supported API: true- Parameters:
list- the WTList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- The container which the object resides in.state- The state the objects in the lifecycle should be assigned when reassigned to the lifecycle.- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
setLifeCycleState
WTList setLifeCycleState(WTList list, State state, boolean terminAssocRunningProcesses) throws WTException, LifeCycleException Set the state of the Life Cycle Managed objects and provide the option to terminate the associated workflows. If null is passed as the WfState, all processes are terminated.
Supported API: true- Parameters:
list- The LifeCycleManaged objects whose state should be updatedstate- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNING- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
findSetStateCandidates
Determines the allowable states the session principal can set the objects in the collection to. The return type is a map with the lifecycle managed objects assigned as keys and the value is a HashSet containing the allowable states the user can assign to the object.
Supported API: true- Parameters:
lcms- a collection of lifecycle managed objects- Returns:
- WTKeyedMap
- Throws:
WTException
-
setLifeCycleState
LifeCycleManaged setLifeCycleState(LifeCycleManaged object, State state, boolean terminAssocRunningProcesses, Timestamp timestamp) throws WTException, LifeCycleException Set the state of the Life Cycle Managed object.
Supported API: true- Parameters:
object- The LifeCycleManaged object whose state should be updatedstate- The state to set the LifeCycleManaged object to.terminAssocRunningProcesses- a flag that determines whether or not to terminate the wf processes associated with this phase that are OPEN_RUNNINGtimestamp- An optional parameter that allows specification of the created and modified timestamps for the history objects.- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
getSeriesSelectors
Given a WTSet of objects, returns a WTKeyedMap whose keys are those elements of the argument set that are LifeCycleManaged and whose values are the keys' corresponding SeriesRangeSelector values for their current states, if applicable. If a key's current state does not have a SeriesRangeSelector, it is mapped to null.
Supported API: true- Parameters:
lcms- set of objects. Those that are not wt.lifecycle.LifeCycleManaged are ignored (and are excluded from the result).- Returns:
- WTKeyedMap
- Throws:
WTException
-
saveLifeCycleTemplate
TransactionResult saveLifeCycleTemplate(TransactionContainer aTran, WTContainerRef context, boolean bypassDefaultTransitions) throws WTException, LifeCycleException Store or update a LifeCycleTemplate. This method accepts and processes a batch container of persistence assertions. If a WTContainerRef is passed, and it is different that that of this templates master; then a new master is created in the passed WTContainer, and this template becomes the first iteration.
Supported API: true- Parameters:
aTran- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocAclSpec, Criterion and Transition assertions and transitions that need to be applied against one or more LifeCycleTemplate objectscontext- the container the template is being saved inbypassDefaultTransitions- specifies whether or not the default transitions should be created. if set to true, the transitions must be specified in the transaction container- Returns:
- TransactionResult
- Throws:
WTExceptionLifeCycleException
-
setLifeCycleState
WTList setLifeCycleState(WTList list, Map stateMap, WTList terminateList) throws WTException, LifeCycleException Set the state of the Life Cycle Managed objects in the WTList list. Set state values are in the Map stateMap where the key is the LCMO in list and the value is a State. Also this method will terminate any workflow processes accociated in WTList terminateList.
Supported API: true- Parameters:
list- The LifeCycleManaged objects whose state should be updatedstateMap- The state to set the LifeCycleManaged object to. Key=LCMO, value StateterminateList- The LifeCycleManaged objects whose workflow processes should be terminated.- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
findCandidateTemplates
Vector findCandidateTemplates(Class targetClass, WTContainerRef containerRef) throws WTException, LifeCycleException Answer a vector of enabled life cycle template references valid for the life cycle managed object and container context.
Supported API: true- Parameters:
targetClass- the LifeCycleManaged class used as search criteria in the retrieval of canidate LifeCycleTemplatescontainerRef-- Returns:
- Vector
- Throws:
WTExceptionLifeCycleException
-
reassign
LifeCycleManaged reassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef, WTContainerRef context, String comments) throws WTException, LifeCycleException Reassign a life cycle managed object to a new life cycle in a certain WTContainerRef.
Supported API: true- Parameters:
object- the LifeCycleManaged object that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- the container where the objects associated workflow processes will be createdcomments- Notes or comments for the lifecycle operation. Can be null.- Returns:
- LifeCycleManaged
- Throws:
WTExceptionLifeCycleException
-
reassign
WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, State state, String comments) throws WTException, LifeCycleException Reassign the life cycle managed objects in a WTList to a new life cycle in a certain WTContainerRef.
Supported API: true- Parameters:
list- the WTList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- The container which the object resides in.state- The state the objects in the lifecycle should be assigned when reassigned to the lifecycle.comments- Notes or comments for lifecycle operation. Can be null.- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
reassign
WTList reassign(WTList list, LifeCycleTemplateReference lctRef, WTContainerRef context, boolean preserveState, String comments) throws WTException, LifeCycleException Reassign all objects in a WTList to a lifecycle.
Supported API: true- Parameters:
list- the WtList of LifeCycleManaged objects that should be assigned to a new life cyclelctRef- a reference to a LifeCycleTemplate, the LifeCycleTemplate that the object should be reassigned tocontext- The container the object resides in. This may be null.preserveState- If this is set to true, the existing state of objects will be preserved if the state is contained in the lifecycle template. Otherwise, the object will be set to the initial state of the lifecycle.comments- Notes or comments for lifecycle operation. Can be null.- Returns:
- WTList
- Throws:
WTExceptionLifeCycleException
-
getLifecycleVotingHistory
Answer a vector of signatures for all roles for the object for the passed lifecycle history object
Supported API: true- Parameters:
object- the LifeCycleHistory object used as search criteria in the retrieval of Signature objects- Returns:
- Vector
- Throws:
WTException
-
augmentRoles
Given a Set of LifeCycleManaged object, the current State of the Object and the RoleHolder (the phase object), change the role participants to reflect those in the RoleHolder2
Supported API: true- Parameters:
lcmObject- The LifeCycleManaged object that the role/participant mapping is being added to- Returns:
- WTCollection
- Throws:
WTExceptionLifeCycleException
-
findReviseTransistion
Navigates the PhaseTemplate->PhaseSuccession using param transition. Returns a WTKeyedMap where the keys are the keys passed in param c and the values State object
Supported API: true- Parameters:
c- A WTKeyedMap that contains as its keys LifecycleManagedObject- Returns:
- Map key is lifecycle managed object and value is State object. If not bound the state then value becomes null
- Throws:
WTExceptionLifeCycleException
-