|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase
org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue
@Sequence(name="KREW_DOC_HDR_S", property="routeHeaderId") 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 java.lang.String |
CURRENT_ROUTE_NODE_NAME_DELIMITER
|
protected static java.util.HashMap<java.lang.String,java.lang.String> |
legalActions
|
protected static java.util.HashMap<java.lang.String,java.lang.String> |
stateTransitionMap
|
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
DocumentRouteHeaderValue()
|
Method Summary | |
---|---|
java.lang.Object |
copy(boolean preserveKeys)
|
java.util.List<ActionItem> |
getActionItems()
|
java.util.List<ActionRequestValue> |
getActionRequests()
|
java.util.List<ActionTakenValue> |
getActionsTaken()
|
java.lang.String |
getAppDocId()
|
java.lang.String |
getAppDocStatus()
This method returns the Application Document Status. |
java.sql.Timestamp |
getAppDocStatusDate()
|
java.util.List<DocumentStatusTransition> |
getAppDocStatusHistory()
|
java.sql.Timestamp |
getApprovedDate()
|
java.lang.String |
getCombinedStatus()
This method returns a combination of the route status label and the app doc status. |
java.sql.Timestamp |
getCreateDate()
|
java.util.List<java.lang.String> |
getCurrentNodeNames()
|
java.lang.String |
getCurrentRouteLevelName()
|
CustomActionListAttribute |
getCustomActionListAttribute()
|
CustomEmailAttribute |
getCustomEmailAttribute()
|
CustomNoteAttribute |
getCustomNoteAttribute()
|
ActionItem |
getDocActionItem(int index)
|
ActionRequestValue |
getDocActionRequest(int index)
|
ActionTakenValue |
getDocActionTaken(int index)
|
java.lang.String |
getDocContent()
|
java.lang.Integer |
getDocRouteLevel()
|
java.lang.String |
getDocRouteStatus()
|
java.lang.String |
getDocRouteStatusLabel()
|
java.lang.String |
getDocStatusPolicy()
This method returns the Document Status Policy for the document type associated with this Route Header. |
java.lang.String |
getDocTitle()
|
DocumentRouteHeaderValueContent |
getDocumentContent()
|
DocumentType |
getDocumentType()
|
java.lang.Long |
getDocumentTypeId()
|
java.lang.Integer |
getDocVersion()
|
java.sql.Timestamp |
getFinalizedDate()
|
java.util.List<RouteNodeInstance> |
getInitialRouteNodeInstances()
|
java.lang.String |
getInitiatorDisplayName()
|
org.kuali.rice.kim.bo.entity.KimPrincipal |
getInitiatorPrincipal()
|
java.lang.String |
getInitiatorWorkflowId()
|
java.util.List<Note> |
getNotes()
|
java.util.Collection |
getQueueItems()
|
Branch |
getRootBranch()
Convenience method that returns the branch of the first (and presumably only?) initial node |
java.util.List<BranchState> |
getRootBranchState()
|
java.lang.String |
getRoutedByDisplayName()
|
org.kuali.rice.kim.bo.entity.KimPrincipal |
getRoutedByPrincipal()
|
java.lang.String |
getRoutedByUserWorkflowId()
|
java.lang.Long |
getRouteHeaderId()
|
java.sql.Timestamp |
getRouteLevelDate()
|
java.sql.Timestamp |
getRouteStatusDate()
|
java.lang.String |
getRouteStatusLabel()
|
java.sql.Timestamp |
getStatusModDate()
|
java.lang.String |
getVariable(java.lang.String name)
Gets a variable |
boolean |
isApproved()
|
boolean |
isCanceled()
|
boolean |
isDisaproved()
|
boolean |
isEnroute()
|
boolean |
isFinal()
|
boolean |
isInException()
|
boolean |
isProcessed()
|
boolean |
isRoutable()
|
boolean |
isRouted()
|
boolean |
isRoutingReport()
|
boolean |
isStateInitiated()
|
boolean |
isStateSaved()
|
boolean |
isValidActionToTake(java.lang.String actionCd)
Return true if the given action code is valid for this document's current state. |
boolean |
isValidStatusChange(java.lang.String newStatus)
|
void |
markDocumentApproved()
Mark the document as being approved. |
void |
markDocumentCanceled()
Mark document cancled. |
void |
markDocumentDisapproved()
Mark document disapproved |
void |
markDocumentEnroute()
Mark the document as being actively routed. |
void |
markDocumentFinalized()
Mark document finalized. |
void |
markDocumentInException()
Mark the document as being in the exception state. |
void |
markDocumentProcessed()
Mark the document as being processed. |
void |
markDocumentSaved()
Mark document saved |
void |
removeVariableThatContains(java.lang.String name)
|
void |
setActionItems(java.util.List<ActionItem> actionItems)
|
void |
setActionRequests(java.util.List<ActionRequestValue> actionRequests)
|
void |
setActionsTaken(java.util.List<ActionTakenValue> actionsTaken)
|
void |
setAppDocId(java.lang.String appDocId)
|
void |
setAppDocStatus(java.lang.String appDocStatus)
|
void |
setAppDocStatusDate(java.sql.Timestamp appDocStatusDate)
|
void |
setAppDocStatusHistory(java.util.List<DocumentStatusTransition> appDocStatusHistory)
|
void |
setApprovedDate(java.sql.Timestamp approvedDate)
|
void |
setCreateDate(java.sql.Timestamp createDate)
|
void |
setDocContent(java.lang.String docContent)
|
void |
setDocRouteLevel(java.lang.Integer docRouteLevel)
|
void |
setDocRouteStatus(java.lang.String docRouteStatus)
|
void |
setDocTitle(java.lang.String docTitle)
|
void |
setDocumentContent(DocumentRouteHeaderValueContent documentContent)
|
void |
setDocumentTypeId(java.lang.Long docTypeId)
|
void |
setDocVersion(java.lang.Integer docVersion)
|
void |
setFinalizedDate(java.sql.Timestamp finalizedDate)
|
void |
setInitialRouteNodeInstances(java.util.List<RouteNodeInstance> initialRouteNodeInstances)
|
void |
setInitiatorWorkflowId(java.lang.String initiatorWorkflowId)
|
void |
setNotes(java.util.List<Note> notes)
|
void |
setQueueItems(java.util.Collection queueItems)
|
void |
setRoutedByUserWorkflowId(java.lang.String routedByUserWorkflowId)
|
void |
setRouteHeaderData(org.kuali.rice.kew.dto.RouteHeaderDTO routeHeaderVO)
This method takes data from a VO and sets it on this route header |
void |
setRouteHeaderId(java.lang.Long routeHeaderId)
|
void |
setRouteLevelDate(java.sql.Timestamp routeLevelDate)
|
void |
setRouteStatus(java.lang.String newStatus,
boolean finalState)
|
void |
setRouteStatusDate(java.sql.Timestamp routeStatusDate)
|
void |
setRoutingReport(boolean routingReport)
|
void |
setStatusModDate(java.sql.Timestamp statusModDate)
|
void |
setVariable(java.lang.String name,
java.lang.String value)
Sets a variable |
java.lang.String |
toString()
|
protected java.util.LinkedHashMap |
toStringMapper()
This overridden method ... |
void |
updateAppDocStatus(java.lang.String appDocStatus)
This method sets the appDocStatus. |
Methods inherited from class org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase |
---|
beforeInsert |
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase |
---|
prepareForWorkflow, toStringBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject |
---|
prepareForWorkflow |
Field Detail |
---|
public static final java.lang.String CURRENT_ROUTE_NODE_NAME_DELIMITER
protected static final java.util.HashMap<java.lang.String,java.lang.String> legalActions
protected static final java.util.HashMap<java.lang.String,java.lang.String> stateTransitionMap
Constructor Detail |
---|
public DocumentRouteHeaderValue()
Method Detail |
---|
public org.kuali.rice.kim.bo.entity.KimPrincipal getInitiatorPrincipal()
public org.kuali.rice.kim.bo.entity.KimPrincipal getRoutedByPrincipal()
public java.lang.String getInitiatorDisplayName()
public java.lang.String getRoutedByDisplayName()
public java.lang.String getCurrentRouteLevelName()
public java.util.List<java.lang.String> getCurrentNodeNames()
public java.lang.String getRouteStatusLabel()
public java.lang.String getDocRouteStatusLabel()
public java.lang.String getDocStatusPolicy()
public java.util.Collection getQueueItems()
public void setQueueItems(java.util.Collection queueItems)
public java.util.List<ActionItem> getActionItems()
public void setActionItems(java.util.List<ActionItem> actionItems)
public java.util.List<ActionTakenValue> getActionsTaken()
public void setActionsTaken(java.util.List<ActionTakenValue> actionsTaken)
public java.util.List<ActionRequestValue> getActionRequests()
public void setActionRequests(java.util.List<ActionRequestValue> actionRequests)
public DocumentType getDocumentType()
public java.lang.String getAppDocId()
public void setAppDocId(java.lang.String appDocId)
public java.sql.Timestamp getApprovedDate()
public void setApprovedDate(java.sql.Timestamp approvedDate)
public java.sql.Timestamp getCreateDate()
public void setCreateDate(java.sql.Timestamp createDate)
public java.lang.String getDocContent()
public void setDocContent(java.lang.String docContent)
public java.lang.Integer getDocRouteLevel()
public void setDocRouteLevel(java.lang.Integer docRouteLevel)
public java.lang.String getDocRouteStatus()
public void setDocRouteStatus(java.lang.String docRouteStatus)
public java.lang.String getDocTitle()
public void setDocTitle(java.lang.String docTitle)
public java.lang.Long getDocumentTypeId()
public void setDocumentTypeId(java.lang.Long docTypeId)
public java.lang.Integer getDocVersion()
public void setDocVersion(java.lang.Integer docVersion)
public java.sql.Timestamp getFinalizedDate()
public void setFinalizedDate(java.sql.Timestamp finalizedDate)
public java.lang.String getInitiatorWorkflowId()
public void setInitiatorWorkflowId(java.lang.String initiatorWorkflowId)
public java.lang.String getRoutedByUserWorkflowId()
public void setRoutedByUserWorkflowId(java.lang.String routedByUserWorkflowId)
public java.lang.Long getRouteHeaderId()
public void setRouteHeaderId(java.lang.Long routeHeaderId)
public java.sql.Timestamp getRouteLevelDate()
public void setRouteLevelDate(java.sql.Timestamp routeLevelDate)
public java.sql.Timestamp getRouteStatusDate()
public void setRouteStatusDate(java.sql.Timestamp routeStatusDate)
public java.sql.Timestamp getStatusModDate()
public void setStatusModDate(java.sql.Timestamp statusModDate)
public java.lang.String getAppDocStatus()
ApplicationDocumentStatus
,
DocumentTypePolicy
public void setAppDocStatus(java.lang.String appDocStatus)
public java.lang.String getCombinedStatus()
public void updateAppDocStatus(java.lang.String appDocStatus) throws org.kuali.rice.kew.exception.WorkflowRuntimeException
appDocStatus
-
org.kuali.rice.kew.exception.WorkflowRuntimeException
public java.sql.Timestamp getAppDocStatusDate()
public void setAppDocStatusDate(java.sql.Timestamp appDocStatusDate)
public java.lang.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 isApproved()
public boolean isRoutable()
public boolean isValidActionToTake(java.lang.String actionCd)
actionCd
- The action code to be tested.
public boolean isValidStatusChange(java.lang.String newStatus)
public void setRouteStatus(java.lang.String newStatus, boolean finalState) throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentProcessed() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentCanceled() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentDisapproved() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentSaved() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentApproved() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentInException() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentEnroute() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void markDocumentFinalized() throws org.kuali.rice.kew.exception.InvalidActionTakenException
org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.InvalidActionTakenException
public void setRouteHeaderData(org.kuali.rice.kew.dto.RouteHeaderDTO routeHeaderVO) throws org.kuali.rice.kew.exception.WorkflowException
routeHeaderVO
-
org.kuali.rice.kew.exception.WorkflowException
public Branch getRootBranch()
public java.lang.String getVariable(java.lang.String name)
name
- variable name
public void removeVariableThatContains(java.lang.String name)
public void setVariable(java.lang.String name, java.lang.String value)
name
- variable namevalue
- variable value, or null if variable should be removedpublic java.util.List<BranchState> getRootBranchState()
public CustomActionListAttribute getCustomActionListAttribute() throws org.kuali.rice.kew.exception.WorkflowException
org.kuali.rice.kew.exception.WorkflowException
public CustomEmailAttribute getCustomEmailAttribute() throws org.kuali.rice.kew.exception.WorkflowException
org.kuali.rice.kew.exception.WorkflowException
public CustomNoteAttribute getCustomNoteAttribute() throws org.kuali.rice.kew.exception.WorkflowException
org.kuali.rice.kew.exception.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 java.util.List<RouteNodeInstance> getInitialRouteNodeInstances()
public void setInitialRouteNodeInstances(java.util.List<RouteNodeInstance> initialRouteNodeInstances)
public java.util.List<Note> getNotes()
public void setNotes(java.util.List<Note> notes)
public DocumentRouteHeaderValueContent getDocumentContent()
public void setDocumentContent(DocumentRouteHeaderValueContent documentContent)
public java.util.List<DocumentStatusTransition> getAppDocStatusHistory()
public void setAppDocStatusHistory(java.util.List<DocumentStatusTransition> appDocStatusHistory)
public java.lang.String toString()
toString
in class BusinessObjectBase
Object.toString()
protected java.util.LinkedHashMap toStringMapper()
toStringMapper
in class BusinessObjectBase
BusinessObjectBase.toStringMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |