|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
These methods are can only be invoked from classes running in the server.
Supported API: false
Extendable: false
LifeCycleServerHelper
Method Summary | |
Persistable |
assignToLifeCycle(Persistable object)
Associate a life cycle managed object with a life cycle. |
void |
demote(WTObject object)
Demote the object to the previous phase. |
void |
deny(WTObject object)
Return the object to the submitter, removing it from the gate. |
LifeCycleManaged |
doDemote(LifeCycleManaged object,
LifeCycleSignature signature)
Transition the object to its previous phase, updating its state, initiating the appropriate workflow and recording history. |
LifeCycleManaged |
doDeny(LifeCycleManaged object,
LifeCycleSignature signature)
Transition the object from the gate back to the phase, initating the appropriate workflow and recording history. |
LifeCycleManaged |
doDrop(LifeCycleManaged object,
LifeCycleSignature signature)
Remove the object from the life cycle and set its state to DROPPED. |
LifeCycleManaged |
doPromote(LifeCycleManaged object,
LifeCycleSignature signature)
Transition the object to its next phase, updating its state, initiating the appropriate workflow and recording history. |
LifeCycleManaged |
doReassign(LifeCycleManaged object,
LifeCycleTemplateReference lctRef)
Re-assign the object to a new life cycle. |
LifeCycleManaged |
doSetState(LifeCycleManaged object,
PhaseTemplate aPhaseTemplate)
Sets the state of the object. |
LifeCycleManaged |
doSubmit(LifeCycleManaged object)
Submit the object for review. |
void |
drop(WTObject object)
Transition the object to an end state. |
String |
getPhaseName(LifeCycleManaged object)
Answer the phase name of the current phase for the specified life cycle managed object Supported API: false |
Enumeration |
getRunningInstances(String templateName)
Deprecated. at 5.0 - Use the whereUsed methods instead. |
void |
promote(WTObject object)
Promote an object to the next phase. |
LifeCycleHistory |
saveHistory(LifeCycleManaged object,
Phase aPhase,
String event)
Create a history entry based on a life cycle event. |
LifeCycleManaged |
setState(LifeCycleManaged object,
int aStateOrdinal)
Transition the object to an different state. |
LifeCycleManaged |
setState(LifeCycleManaged object,
State aState)
Transition the object to an different state. |
WTList |
setState(WTList list,
Map map)
Transition the objects in the collection to a different state. |
WTList |
setState(WTList list,
State aState)
Transition the objects in the collection to a different state. |
WTObject |
setState(WTObject object,
Integer aStateOrdinal)
Used to Validate the WTObject from the robot and pass onto setState. |
WTObject |
setState(WTObject object,
State aState)
Used to Validate the WTObject from the robot and pass onto setState. |
void |
submit(WTObject object)
Submit the object for review. |
LifeCycleSignature |
validateDemote(LifeCycleManaged object,
LifeCycleSignature signature)
Perform pre-demote validations Supported API: false |
LifeCycleSignature |
validateDeny(LifeCycleManaged object,
LifeCycleSignature signature)
Perform pre-deny validations Supported API: false |
LifeCycleSignature |
validateDrop(LifeCycleManaged object,
LifeCycleSignature signature)
Perform pre-drop validations Supported API: false |
LifeCycleSignature |
validatePromote(LifeCycleManaged object,
LifeCycleSignature signature)
Perform pre-promote validations Supported API: false |
LifeCycleManaged |
validateReassign(LifeCycleManaged object,
LifeCycleTemplateReference lctRef)
Perform pre-reassign validations Supported API: false |
PhaseTemplate |
validateSetState(LifeCycleManaged object,
int aStateOrdinal)
Used by setState, checks that the state the Workflow SetState robot is tying to set the object to is valid. |
PhaseTemplate |
validateSetState(LifeCycleManaged object,
State aState)
Used by setState, checks that the state the Workflow SetState robot is tying to set the object to is valid. |
LifeCycleManaged |
validateSubmit(LifeCycleManaged object)
Perform pre-submit validations Supported API: false |
LifeCycleSignature |
validateVote(LifeCycleManaged object,
LifeCycleSignature signature)
Perform pre-vote validations Supported API: false |
QueryResult |
whereUsed(LifeCycleTemplate aTemplate)
Given a LifeCycleTemplate, return a QueryResult containing all LifeCycleManaged objects that use it Supported API: false |
QueryResult |
whereUsed(LifeCycleTemplateMaster aMaster)
Given a LifeCycleTemplateMaster, return a QueryResult containing all LifeCycleManaged objects that use any iteration of it Supported API: false |
QueryResult |
whereUsed(WfProcessTemplate template)
Given a WfProcessTemplate, return a QueryResult containing all PhaseTemplate objects that use it Supported API: false |
QueryResult |
whereUsed(WfProcessTemplateMaster master)
Given a WfProcessTemplateMaster, return a QueryResult containing all PhaseTemplate objects that use it. |
Method Detail |
public Persistable assignToLifeCycle(Persistable object) throws WTException, LifeCycleException
object
- the Persistable object that the caller wants assigned to a life cycle
WTException
LifeCycleException
public LifeCycleManaged doSubmit(LifeCycleManaged object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be submitted for review
WTException
LifeCycleException
public LifeCycleManaged doPromote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be promotedsignature
- the LifeCycleSignature object to be used to record information about the promote
WTException
LifeCycleException
public LifeCycleManaged doDemote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be used in the demotesignature
- the LifeCycleSignature object to be used to record information about the demote
WTException
LifeCycleException
public LifeCycleManaged doDeny(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be used in the demotesignature
- the LifeCycleSignature object to be used to record information about the demote
WTException
LifeCycleException
public LifeCycleManaged doDrop(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be used in the demotesignature
- the LifeCycleSignature object to be used to record information about the demote
WTException
LifeCycleException
public LifeCycleManaged doReassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be reassignedlctRef
-
WTException
LifeCycleException
public LifeCycleManaged validateSubmit(LifeCycleManaged object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be submitted
WTException
LifeCycleException
public LifeCycleSignature validatePromote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object to be promotedsignature
- the LifeCycleSignature object to be used to record information about the promote
WTException
LifeCycleException
public LifeCycleSignature validateDemote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LilfeCycleManaged object to be demotedsignature
- the LifeCycleSignature object used to record information about the demote
WTException
LifeCycleException
public LifeCycleSignature validateDeny(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LilfeCycleManaged object to be demotedsignature
- the LifeCycleSignature object used to record information about the demote
WTException
LifeCycleException
public LifeCycleSignature validateDrop(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be voted onsignature
- the LifeCycleSignature object used to record information about the vote
WTException
LifeCycleException
public LifeCycleSignature validateVote(LifeCycleManaged object, LifeCycleSignature signature) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be voted onsignature
- the LifeCycleSignature object used to record information about the vote
WTException
LifeCycleException
public LifeCycleManaged validateReassign(LifeCycleManaged object, LifeCycleTemplateReference lctRef) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be reassignedlctRef
-
WTException
LifeCycleException
public LifeCycleHistory saveHistory(LifeCycleManaged object, Phase aPhase, String event) throws WTException, LifeCycleException
1. StandardLifeCycleService.ENTER_PHASE # Default: History event recorded 2. StandardLifeCycleService.SUBMIT # Default: History event recorded 3. StandardLifeCycleService.PROMOTE # Default: History event recorded 4. StandardLifeCycleService.VOTE # Default: Signature created but no history event recorded 5. StandardLifeCycleService.DEMOTE # Default: History event recorded 6. StandardLifeCycleService.DROP # Default: History event recorded 7. StandardLifeCycleService.DENY # Default: History event recorded 8. StandardLifeCycleService.RETEAM # Default: History event recorded 9. StandardLifeCycleService.REASSIGN # Default: History event recorded
object
- the LifeCycleManaged object that the history is associated toaPhase
- the Phase object that the history will be associated toevent
- the name of the event that History is associated to
WTException
LifeCycleException
public String getPhaseName(LifeCycleManaged object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object used as search criteria in the retrieval of the name of the phase
WTException
LifeCycleException
public Enumeration getRunningInstances(String templateName) throws WTException, LifeCycleException
templateName
- the name of the LifeCycleTemplate used as search criteria in the retrieval of LifeCycleManaged objects associated to the LifeCycleTemplate name
WTException
LifeCycleException
public void submit(WTObject object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be submitted for approval
WTException
LifeCycleException
public void promote(WTObject object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be promoted
WTException
LifeCycleException
public void demote(WTObject object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be demoted.
WTException
LifeCycleException
public void deny(WTObject object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be denied
WTException
LifeCycleException
public void drop(WTObject object) throws WTException, LifeCycleException
object
- the LifeCycleManaged object that should be moved to a final/dropped state
WTException
LifeCycleException
public LifeCycleManaged setState(LifeCycleManaged object, State aState) throws WTException, LifeCycleException
object
- the LifeCycleManaged objectaState
- The state to set the LifeCycleManaged object to.
WTException
LifeCycleException
public LifeCycleManaged setState(LifeCycleManaged object, int aStateOrdinal) throws WTException, LifeCycleException
object
- the LifeCycleManagedObject.aStateOrdinal
- The ordianal value of the state to set the LifeCycleManaged object to.
WTException
LifeCycleException
public PhaseTemplate validateSetState(LifeCycleManaged object, State aState) throws WTException, LifeCycleException
object
- The LifeCycleManagedObjectaState
- The state to set the LifeCycleManagedObject to, this state must be validated.
WTException
LifeCycleException
public PhaseTemplate validateSetState(LifeCycleManaged object, int aStateOrdinal) throws WTException, LifeCycleException
object
- The LifeCycleManagedObject.aStateOrdinal
- The state ordinal value to set the LifeCycleManagedObject to, this state must be validated.
WTException
LifeCycleException
public LifeCycleManaged doSetState(LifeCycleManaged object, PhaseTemplate aPhaseTemplate) throws WTException, LifeCycleException
object
- The LifeCycleManagedObjectaPhaseTemplate
- The phasetemplate to set the lifecyclemanagedobject to indicated by the state from setState.
WTException
LifeCycleException
public QueryResult whereUsed(LifeCycleTemplate aTemplate) throws WTException, LifeCycleException
aTemplate
-
WTException
LifeCycleException
public QueryResult whereUsed(LifeCycleTemplateMaster aMaster) throws WTException, LifeCycleException
aMaster
-
WTException
LifeCycleException
public WTObject setState(WTObject object, State aState) throws WTException, LifeCycleException
object
- The WTObject containing the LifeCycleManaged object.aState
- The state to set the LifeCycle to.
WTException
LifeCycleException
public WTObject setState(WTObject object, Integer aStateOrdinal) throws WTException, LifeCycleException
object
- The WTObject containing the LifeCycleManaged object.aStateOrdinal
- A ordinal value which corresponds to a state in the LifeCycle.
WTException
LifeCycleException
public QueryResult whereUsed(WfProcessTemplateMaster master) throws WTException, LifeCycleException
master
-
WTException
LifeCycleException
public QueryResult whereUsed(WfProcessTemplate template) throws WTException, LifeCycleException
template
-
WTException
LifeCycleException
public WTList setState(WTList list, State aState) throws WTException, LifeCycleException
list
- a collection of lifecycle managed objectsaState
- The state to set the LifeCycleManaged object to.
WTException
LifeCycleException
public WTList setState(WTList list, Map map) throws WTException, LifeCycleException
list
- a collection of lifecycle managed objectsmap
- The state to set the LifeCycleManaged object to. Key= LCMO. Value = State.
WTException
LifeCycleException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |