|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue
@Entity public class DocumentRouteHeaderValue
A document within KEW. A document effectively represents a process that moves through
the workflow engine. It is created from a particular DocumentType
and follows
the route path defined by that DocumentType.
During a document's lifecycle it progresses through a series of statuses, starting
with INITIATED and moving to one of the terminal states (such as FINAL, CANCELED, etc).
The list of status on a document are defined in the KEWConstants
class and
include the constants starting with "ROUTE_HEADER_" and ending with "_CD".
Associated with the document is the document content. The document content is XML which represents the content of that document. This XML content is typically used to make routing decisions for the document.
A document has associated with it a set of ActionRequestValue
object and
ActionTakenValue
objects. Action Requests represent requests for user
action (such as Approve, Acknowledge, etc). Action Takens represent action that
users have performed on the document, such as approvals or cancelling of the document.
The instantiated route path of a document is defined by it's graph of
RouteNodeInstance
objects. The path starts at the initial node of the document
and progresses from there following the next nodes of each node instance. The current
active nodes on the document are defined by the "active" flag on the node instance
where are not marked as "complete".
DocumentType
,
ActionRequestValue
,
ActionItem
,
ActionTakenValue
,
RouteNodeInstance
,
KEWConstants
,
Serialized FormField Summary | |
---|---|
static String |
CURRENT_ROUTE_NODE_NAME_DELIMITER
|
protected static HashMap<String,String> |
legalActions
|
protected static HashMap<String,String> |
stateTransitionMap
|
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
DocumentRouteHeaderValue()
|
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
prepareForWorkflow, toString, toStringBuilder, toStringMapper |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Field Detail |
---|
public static final String CURRENT_ROUTE_NODE_NAME_DELIMITER
protected static final HashMap<String,String> legalActions
protected static final HashMap<String,String> stateTransitionMap
Constructor Detail |
---|
public DocumentRouteHeaderValue()
Method Detail |
---|
public Principal getInitiatorPrincipal()
public Principal getRoutedByPrincipal()
public String getInitiatorDisplayName()
public String getRoutedByDisplayName()
public String getCurrentRouteLevelName()
public List<String> getCurrentNodeNames()
public String getRouteStatusLabel()
public String getDocRouteStatusLabel()
public String getDocStatusPolicy()
public Collection getQueueItems()
public void setQueueItems(Collection queueItems)
public List<ActionItem> getActionItems()
public List<ActionTakenValue> getActionsTaken()
public List<ActionRequestValue> getActionRequests()
public List<ActionRequestValue> getSimulatedActionRequests()
public void setSimulatedActionRequests(List<ActionRequestValue> simulatedActionRequests)
public DocumentType getDocumentType()
public String getAppDocId()
public void setAppDocId(String appDocId)
public Timestamp getApprovedDate()
public void setApprovedDate(Timestamp approvedDate)
public Timestamp getCreateDate()
public void setCreateDate(Timestamp createDate)
public String getDocContent()
public void setDocContent(String docContent)
public Integer getDocRouteLevel()
public void setDocRouteLevel(Integer docRouteLevel)
public String getDocRouteStatus()
public void setDocRouteStatus(String docRouteStatus)
public String getDocTitle()
public void setDocTitle(String docTitle)
public String getDocumentTypeId()
getDocumentTypeId
in interface DocumentContract
public void setDocumentTypeId(String documentTypeId)
public Integer getDocVersion()
public void setDocVersion(Integer docVersion)
public Timestamp getFinalizedDate()
public void setFinalizedDate(Timestamp finalizedDate)
public String getInitiatorWorkflowId()
public void setInitiatorWorkflowId(String initiatorWorkflowId)
public String getRoutedByUserWorkflowId()
public void setRoutedByUserWorkflowId(String routedByUserWorkflowId)
public String getDocumentId()
getDocumentId
in interface DocumentContract
public void setDocumentId(String documentId)
public Timestamp getRouteLevelDate()
public void setRouteLevelDate(Timestamp routeLevelDate)
public Timestamp getRouteStatusDate()
public void setRouteStatusDate(Timestamp routeStatusDate)
public Timestamp getStatusModDate()
public void setStatusModDate(Timestamp statusModDate)
public String getAppDocStatus()
ApplicationDocumentStatus
,
DocumentTypePolicy
public void setAppDocStatus(String appDocStatus)
public String getCombinedStatus()
public void updateAppDocStatus(String appDocStatus) throws WorkflowRuntimeException
appDocStatus
-
WorkflowRuntimeException
public Timestamp getAppDocStatusDate()
public void setAppDocStatusDate(Timestamp appDocStatusDate)
public Object copy(boolean preserveKeys)
public boolean isStateInitiated()
public boolean isStateSaved()
public boolean isRouted()
public boolean isInException()
public boolean isDisaproved()
public boolean isCanceled()
public boolean isFinal()
public boolean isEnroute()
public boolean isProcessed()
public boolean isRoutable()
public boolean isValidActionToTake(String actionCd)
actionCd
- The action code to be tested.
public boolean isValidStatusChange(String newStatus)
public void setRouteStatus(String newStatus, boolean finalState) throws InvalidActionTakenException
InvalidActionTakenException
public void markDocumentProcessed() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentCanceled() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentDisapproved() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentSaved() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentInException() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentEnroute() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void markDocumentFinalized() throws InvalidActionTakenException
ResourceUnavailableException
InvalidActionTakenException
public void setRouteHeaderData(RouteHeaderDTO routeHeaderVO) throws WorkflowException
routeHeaderVO
-
WorkflowException
public void applyDocumentUpdate(DocumentUpdate documentUpdate)
public Branch getRootBranch()
public String getVariable(String name)
name
- variable name
public void removeVariableThatContains(String name)
public void setVariable(String name, String value)
name
- variable namevalue
- variable value, or null if variable should be removedpublic List<BranchState> getRootBranchState()
public CustomActionListAttribute getCustomActionListAttribute() throws WorkflowException
WorkflowException
public CustomEmailAttribute getCustomEmailAttribute() throws WorkflowException
WorkflowException
public CustomNoteAttribute getCustomNoteAttribute() throws WorkflowException
WorkflowException
public ActionRequestValue getDocActionRequest(int index)
public ActionTakenValue getDocActionTaken(int index)
public ActionItem getDocActionItem(int index)
public boolean isRoutingReport()
public void setRoutingReport(boolean routingReport)
public List<RouteNodeInstance> getInitialRouteNodeInstances()
public void setInitialRouteNodeInstances(List<RouteNodeInstance> initialRouteNodeInstances)
public List<Note> getNotes()
public void setNotes(List<Note> notes)
public DocumentRouteHeaderValueContent getDocumentContent()
public void setDocumentContent(DocumentRouteHeaderValueContent documentContent)
public List<DocumentStatusTransition> getAppDocStatusHistory()
public void setAppDocStatusHistory(List<DocumentStatusTransition> appDocStatusHistory)
public DocumentStatus getStatus()
getStatus
in interface DocumentContract
public org.joda.time.DateTime getDateCreated()
getDateCreated
in interface DocumentContract
public org.joda.time.DateTime getDateLastModified()
getDateLastModified
in interface DocumentContract
public org.joda.time.DateTime getDateApproved()
getDateApproved
in interface DocumentContract
public org.joda.time.DateTime getDateFinalized()
getDateFinalized
in interface DocumentContract
public String getTitle()
getTitle
in interface DocumentContract
public String getApplicationDocumentId()
getApplicationDocumentId
in interface DocumentContract
public String getInitiatorPrincipalId()
getInitiatorPrincipalId
in interface DocumentContract
public String getRoutedByPrincipalId()
getRoutedByPrincipalId
in interface DocumentContract
public String getDocumentTypeName()
getDocumentTypeName
in interface DocumentContract
public String getDocumentHandlerUrl()
getDocumentHandlerUrl
in interface DocumentContract
public String getApplicationDocumentStatus()
getApplicationDocumentStatus
in interface DocumentContract
public org.joda.time.DateTime getApplicationDocumentStatusDate()
getApplicationDocumentStatusDate
in interface DocumentContract
public Map<String,String> getVariables()
getVariables
in interface DocumentContract
public static Document to(DocumentRouteHeaderValue documentBo)
public static DocumentRouteHeaderValue from(Document document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |