|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormFields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
DocumentRouteHeaderValue()
|
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 |
---|
private static final long serialVersionUID
private static final org.apache.log4j.Logger LOG
public static final String CURRENT_ROUTE_NODE_NAME_DELIMITER
private Long documentTypeId
private String docRouteStatus
private Integer docRouteLevel
private Timestamp statusModDate
private Timestamp createDate
private Timestamp approvedDate
private Timestamp finalizedDate
private DocumentRouteHeaderValueContent documentContent
private String docTitle
private String appDocId
private Integer docVersion
private String initiatorWorkflowId
private String routedByUserWorkflowId
private Timestamp routeStatusDate
private Timestamp routeLevelDate
private String appDocStatus
private Timestamp appDocStatusDate
private Long routeHeaderId
private List<ActionRequestValue> actionRequests
private List<ActionTakenValue> actionsTaken
private List<ActionItem> actionItems
private List<DocumentStatusTransition> appDocStatusHistory
private List<Note> notes
private List<SearchableAttributeValue> searchableAttributeValues
private Collection queueItems
private boolean routingReport
private static final boolean FINAL_STATE
protected static final HashMap<String,String> legalActions
protected static final HashMap<String,String> stateTransitionMap
private List<RouteNodeInstance> initialRouteNodeInstances
Constructor Detail |
---|
public DocumentRouteHeaderValue()
Method Detail |
---|
public KimPrincipal getInitiatorPrincipal()
public KimPrincipal 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 void setActionItems(List<ActionItem> actionItems)
public List<ActionTakenValue> getActionsTaken()
public void setActionsTaken(List<ActionTakenValue> actionsTaken)
public List<ActionRequestValue> getActionRequests()
public void setActionRequests(List<ActionRequestValue> actionRequests)
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 Long getDocumentTypeId()
public void setDocumentTypeId(Long docTypeId)
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 Long getRouteHeaderId()
public void setRouteHeaderId(Long routeHeaderId)
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 isApproved()
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 markDocumentApproved() 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 Branch getRootBranch()
private BranchState findVariable(String name)
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)
private RouteNodeInstance getInitialRouteNodeInstance(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 String toString()
toString
in class BusinessObjectBase
Object.toString()
protected LinkedHashMap toStringMapper()
toStringMapper
in class BusinessObjectBase
BusinessObjectBase.toStringMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |