@Entity public class DocumentRouteHeaderValue extends DataObjectBase implements DocumentContract, DocumentSearchCriteriaEbo
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 KewApiConstants 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,
KewApiConstants,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_ROUTE_NODE_NAME_DELIMITER |
protected static HashMap<String,String> |
legalActions |
protected static HashMap<String,String> |
stateTransitionMap |
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup, objectId, versionNumber| Constructor and Description |
|---|
DocumentRouteHeaderValue() |
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get_objectId, _persistence_get_versionNumber, _persistence_get, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set_objectId, _persistence_set_versionNumber, _persistence_set, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringprotected static final HashMap<String,String> legalActions
protected static final HashMap<String,String> stateTransitionMap
public static final String CURRENT_ROUTE_NODE_NAME_DELIMITER
public DocumentRouteHeaderValue()
public org.kuali.rice.kim.api.identity.principal.Principal getInitiatorPrincipal()
public org.kuali.rice.kim.api.identity.principal.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 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 DocumentContractpublic 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 DocumentContractgetDocumentId in interface DocumentSearchCriteriaEbopublic void setDocumentId(String documentId)
public Timestamp getRouteStatusDate()
public void setRouteStatusDate(Timestamp routeStatusDate)
public Timestamp getDateModified()
public void setDateModified(Timestamp dateModified)
public String getAppDocStatus()
ApplicationDocumentStatus,
DocumentTypePolicypublic void setAppDocStatus(String appDocStatus)
public String getCombinedStatus()
public void updateAppDocStatus(String appDocStatus) throws WorkflowRuntimeException
appDocStatus - WorkflowRuntimeExceptionpublic Timestamp getAppDocStatusDate()
public void setAppDocStatusDate(Timestamp appDocStatusDate)
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.ActionRegistry.getValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract, DocumentRouteHeaderValue)public boolean isValidStatusChange(String newStatus)
public void setRouteStatus(String newStatus, boolean finalState) throws InvalidActionTakenException
InvalidActionTakenExceptionpublic void markDocumentProcessed() throws InvalidActionTakenException
public void markDocumentCanceled() throws InvalidActionTakenException
public void markDocumentRecalled() throws InvalidActionTakenException
public void markDocumentDisapproved() throws InvalidActionTakenException
public void markDocumentSaved() throws InvalidActionTakenException
public void markDocumentInException() throws InvalidActionTakenException
public void markDocumentEnroute() throws InvalidActionTakenException
public void markDocumentFinalized() throws InvalidActionTakenException
public void setRouteHeaderData(Document routeHeaderVO) throws WorkflowException
routeHeaderVO - WorkflowExceptionpublic void applyDocumentUpdate(DocumentUpdate documentUpdate)
public Branch getRootBranch()
public String getVariable(String name)
name - variable namepublic 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
WorkflowExceptionpublic CustomEmailAttribute getCustomEmailAttribute() throws WorkflowException
WorkflowExceptionpublic CustomNoteAttribute getCustomNoteAttribute() throws WorkflowException
WorkflowExceptionpublic 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 DocumentRouteHeaderValueContent getDocumentContent()
public void setDocumentContent(DocumentRouteHeaderValueContent documentContent)
public List<DocumentStatusTransition> getAppDocStatusHistory()
public void setAppDocStatusHistory(List<DocumentStatusTransition> appDocStatusHistory)
public DocumentStatus getStatus()
getStatus in interface DocumentContractgetStatus in interface DocumentSearchCriteriaEbopublic org.joda.time.DateTime getDateCreated()
getDateCreated in interface DocumentContractgetDateCreated in interface DocumentSearchCriteriaEbopublic org.joda.time.DateTime getDateLastModified()
getDateLastModified in interface DocumentContractpublic org.joda.time.DateTime getDateApproved()
getDateApproved in interface DocumentContractpublic org.joda.time.DateTime getDateFinalized()
getDateFinalized in interface DocumentContractpublic String getTitle()
getTitle in interface DocumentContractgetTitle in interface DocumentSearchCriteriaEbopublic String getApplicationDocumentId()
getApplicationDocumentId in interface DocumentContractgetApplicationDocumentId in interface DocumentSearchCriteriaEbopublic String getInitiatorPrincipalId()
getInitiatorPrincipalId in interface DocumentContractgetInitiatorPrincipalId in interface DocumentSearchCriteriaEbopublic String getRoutedByPrincipalId()
getRoutedByPrincipalId in interface DocumentContractpublic String getDocumentTypeName()
getDocumentTypeName in interface DocumentContractgetDocumentTypeName in interface DocumentSearchCriteriaEbopublic String getDocumentHandlerUrl()
getDocumentHandlerUrl in interface DocumentContractpublic String getApplicationDocumentStatus()
getApplicationDocumentStatus in interface DocumentContractgetApplicationDocumentStatus in interface DocumentSearchCriteriaEbopublic org.joda.time.DateTime getApplicationDocumentStatusDate()
getApplicationDocumentStatusDate in interface DocumentContractpublic Map<String,String> getVariables()
getVariables in interface DocumentContractpublic static Document to(DocumentRouteHeaderValue documentBo)
public static DocumentRouteHeaderValue from(Document document)
public void refresh()
refresh in interface BusinessObjectpublic DocumentRouteHeaderValue deepCopy(Map<Object,Object> visited)
Copyright © 2005–2017 The Kuali Foundation. All rights reserved.