Interface WorkflowDocument
- All Superinterfaces:
DocumentContract
WorkflowDocumentFactory
This class is *not* thread safe. If you are operating on the same document, be sure to synchronize
access to the WorkflowDocument instance. If you are operating on different documents, obtain a distinct
instance from the WorkflowDocumentFactory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(String annotation) Acknowledges the document, commits updates.voidaddAttributeDefinition(WorkflowAttributeDefinition attributeDefinition) Adds a workflow attribute definition.voidaddSearchableDefinition(WorkflowAttributeDefinition searchableDefinition) Adds a searchable workflow attribute definition.voidadHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified group; commits updates.voidadHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified group; commits updates.voidadHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel) Sends an "ad-hoc" action request to the specified principal; commits updates.voidadHocToGroup(AdHocToGroup adHocToGroup, String annotation) Sends an "ad-hoc" action request to the specified principal; commits updates.voidadHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified principal; commits updates.voidadHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified principal; commits updates.voidadHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel) Sends an "ad-hoc" action request to the specified principal; commits updates.voidadHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation) Sends an "ad-hoc" action request to the specified principal; commits updates.voidApproves the document, commits updates.voidblanketApprove(String annotation) Cancels the document, commits updates.voidblanketApprove(String annotation, String... nodeNames) Blanket-approves the document, commits updates.voidApproves the document, commits updates.booleancheckStatus(DocumentStatus status) Helper that checks whether the document has the given status NOTE: does this really need to be in the public API?voidClears the document's attribute content.voidClears workflow attribute definitions.voidClears the searchable content.voidClears searchable workflow attribute definitions.voidCompletes the document, commits updates.voiddelete()Deletes the document.voiddisapprove(String annotation) Disapproves the document, commits updates.voidfyi()Clears an outstanding FYI on the document without an annotation, commits updates.voidClears an outstanding FYI on the document, commits updates.Return the list of past actions taken on the documentReturns the list of active route node instancesReturns the currently set application content.Returns the currently set document attribute content.Returns the currently set workflow attribute definitionsReturns whether the workflow variable that specifies that ... has been setReturns the names of the nodes at which the document is currently at in it's route path.Returns the list of active route node instancesReturns the names of the simple nodes at which the document is currently at in it's route path.Returns a read-only view of the underlying document meta-dataReturns a read-only view of the underlying mutable document contentReturns detailed document information TODO: consolidate with Document/ModifiableDocument or eliminate?Returns whether the workflow variable that specifies that this principal should NOT receive future requests has been setReturns the names of the route nodes on the document which are currently active.Returns the list of previous route node namesReturns the principalId with which this WorkflowDocument was constructedReturns whether the workflow variable that specifies that this principal should receive future requests has been setReturns the list of requested actions on this document for the current userReturn the list of root action requests on the document.Returns the flattened list of route node instancesReturns the currently set searchable workflow attribute definitionsReturns the names of the simple route nodes on the document which are currently active.Returns the list of valid actions on this document for the current usergetVariableValue(String name) Gets a workflow variable value.booleanReturns whether an acknowledge request is one of the requested actions.booleanReturns whether an approval request is one of the requested actions.booleanIndicates if the document is in the Processed or Finalized state.booleanReturns whether a blank-approve action is a valid action.booleanIndicates if the document is in the canceled state or not.booleanReturns whether a completion request is one of the requested actions.booleanIndicates if the document is in the disapproved state or not.booleanIndicates if the document is in the enroute state or not.booleanIndicates if the document is in the exception state or not.booleanisFinal()Indicates if the document is in the final state or not.booleanReturns whether an FYI is one of the requested actions.booleanIndicates if the document is in the initiated state or not.booleanIndicates if the document is in the processed state or not.booleanIndicates if the document is in the recalled state or not.booleanReturns whether a route action is a valid action.booleanisSaved()Indicates if the document is in the saved state or not.booleanisValidAction(ActionType actionType) Returns whether the specified action type is validvoidlogAnnotation(String annotation) Records a log action which adds an annotation on the document but does not affect routing.voidMoves the document to a different node; commits updates.voidplaceInExceptionRouting(String annotation) Places the document in exception routing; commits updates.voidRecalls the document, commits updates.voidrefresh()Reloads the document state, any pending changes will be discardedvoidreleaseGroupAuthority(String annotation, String groupId) Releases authority of a group by a member of that group; commits updates.voidremoveAttributeDefinition(WorkflowAttributeDefinition attributeDefinition) Removes a workflow attribute definition.voidremoveSearchableDefinition(WorkflowAttributeDefinition searchableDefinition) Removes a searchable workflow attribute definition.voidreturnToPreviousNode(String annotation, String nodeName) Returns the document to a previous node; commits updates.voidreturnToPreviousNode(String annotation, ReturnPoint returnPoint) Returns the document to a previous node; commits updates.voidrevokeAdHocRequestById(String actionRequestId, String annotation) Revokes an Ad-Hoc request by id; commits updates.voidrevokeAdHocRequests(AdHocRevoke revoke, String annotation) Revokes an Ad-Hoc request by the specified criteria; commits updates.voidrevokeAllAdHocRequests(String annotation) Revokes all Ad-Hoc requests; commits updates; commits updates.voidRoutes the document, commits updates.voidsaveDocument(String annotation) Saves the document, commits updates.voidSave the document data without affecting routing, commits updates.voidsetApplicationContent(String applicationContent) Sets the document's application content.voidsetApplicationDocumentId(String applicationDocumentId) Sets the application document id.voidsetApplicationDocumentStatus(String applicationDocumentStatus) Sets the application document status.voidsetAttributeContent(String attributeContent) Sets the document's attribute content.voidSets the workflow variable that specifies that ...voidSets the workflow variable that specifies that this principal should NOT receive future requestsvoidSets the workflow variable that specifies that this principal should receive future requestsvoidsetSearchableContent(String searchableContent) Sets the document's searchable content.voidSets the document title.voidsetVariable(String name, String value) Sets a workflow variable.voidsuperUserBlanketApprove(String annotation) Performs a super-user blanket-approve action; commits updates.voidsuperUserCancel(String annotation) Performs a super-user cancel action; commits updates.voidsuperUserDisapprove(String annotation) Performs a super-user disapprove action; commits updates.voidsuperUserNodeApprove(String nodeName, String annotation) Performs a super-user approve action for the specified node; commits updates.voidsuperUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation) Performs a super-user "return to previous node" action; commits updates.voidsuperUserTakeRequestedAction(String actionRequestId, String annotation) Performs a super-user approve action for the specified node; commits updates.voidswitchPrincipal(String principalId) Switches the principalId under which WorkflowDocument API are performed.voidtakeGroupAuthority(String annotation, String groupId) Takes authority of a group by a member of that group; commits updates.voidupdateDocumentContent(DocumentContentUpdate documentContentUpdate) Sets internal DocumentContentUpdate object TODO: exposes internal API and used only by tests, candidate for elimination?List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition) Validates a workflow attribute definition and returns a list of validation errors.Methods inherited from interface org.kuali.rice.kew.api.document.DocumentContract
getApplicationDocumentId, getApplicationDocumentStatus, getApplicationDocumentStatusDate, getDateApproved, getDateCreated, getDateFinalized, getDateLastModified, getDocumentHandlerUrl, getDocumentId, getDocumentTypeId, getDocumentTypeName, getInitiatorPrincipalId, getRoutedByPrincipalId, getStatus, getTitle, getVariables
-
Method Details
-
getPrincipalId
String getPrincipalId()Returns the principalId with which this WorkflowDocument was constructed- Returns:
- the principalId with which this WorkflowDocument was constructed
-
switchPrincipal
Switches the principalId under which WorkflowDocument API are performed. This method necessitates clearing of any state associated with the principalId such as requested and valid actions.- Parameters:
principalId- the new principalId
-
getDocument
Document getDocument()Returns a read-only view of the underlying document meta-data- Returns:
- a read-only view of the underlying document meta-data
-
getDocumentContent
DocumentContent getDocumentContent()Returns a read-only view of the underlying mutable document content- Returns:
- a read-only view of the underlying mutable document content
-
getApplicationContent
String getApplicationContent()Returns the currently set application content.- Returns:
- the currently set application content.
- See Also:
-
setTitle
Sets the document title. The update will be committed with the next document operation.- Parameters:
title- the document title to set
-
setApplicationDocumentId
Sets the application document id. The update will be committed with the next document operation.- Parameters:
applicationDocumentId- the application document id to set.
-
setApplicationDocumentStatus
Sets the application document status. The update will be committed with the next document operation.- Parameters:
applicationDocumentStatus- the application document status to set
-
setApplicationContent
Sets the document's application content. The update will be committed with the next document operation.- Parameters:
applicationContent- the document application content to set
-
setAttributeContent
Sets the document's attribute content. The update will be committed with the next document operation.- Parameters:
attributeContent- the document attribute content to set
-
clearAttributeContent
void clearAttributeContent()Clears the document's attribute content. The update will be committed with the next document operation. -
getAttributeContent
String getAttributeContent()Returns the currently set document attribute content. -
addAttributeDefinition
Adds a workflow attribute definition. The update will be committed with the next document operation.- Parameters:
attributeDefinition- the WorkflowAttributeDefinition to add
-
removeAttributeDefinition
Removes a workflow attribute definition. The update will be committed with the next document operation. Equality is determined on the basis of WorkflowAttributeDefinition fields.- Parameters:
attributeDefinition- the WorkflowAttributeDefinition to remove- See Also:
-
clearAttributeDefinitions
void clearAttributeDefinitions()Clears workflow attribute definitions. The update will be committed with the next document operation. -
getAttributeDefinitions
List<WorkflowAttributeDefinition> getAttributeDefinitions()Returns the currently set workflow attribute definitions- Returns:
- the currently set workflow attribute definitions
-
setSearchableContent
Sets the document's searchable content. The update will be committed with the next document operation.- Parameters:
searchableContent- the searchable content to set
-
addSearchableDefinition
Adds a searchable workflow attribute definition. The update will be committed with the next document operation.- Parameters:
searchableDefinition- the WorkflowAttributeDefinition to add
-
removeSearchableDefinition
Removes a searchable workflow attribute definition. The update will be committed with the next document operation. Equality is determined on the basis of WorkflowAttributeDefinition fields.- Parameters:
searchableDefinition- the WorkflowAttributeDefinition to remove- See Also:
-
clearSearchableDefinitions
void clearSearchableDefinitions()Clears searchable workflow attribute definitions. The update will be committed with the next document operation. -
clearSearchableContent
void clearSearchableContent()Clears the searchable content. The update will be committed with the next document operation. -
getSearchableDefinitions
List<WorkflowAttributeDefinition> getSearchableDefinitions()Returns the currently set searchable workflow attribute definitions- Returns:
- the currently set searchable workflow attribute definitions
-
setVariable
Sets a workflow variable. The update will be committed with the next document operation.- Parameters:
name- variable namevalue- variable value- See Also:
-
getVariableValue
Gets a workflow variable value.- Parameters:
name- variable name- See Also:
-
setReceiveFutureRequests
void setReceiveFutureRequests()Sets the workflow variable that specifies that this principal should receive future requests- See Also:
-
setDoNotReceiveFutureRequests
void setDoNotReceiveFutureRequests()Sets the workflow variable that specifies that this principal should NOT receive future requests- See Also:
-
setClearFutureRequests
void setClearFutureRequests()Sets the workflow variable that specifies that ... TODO: what does this do? (org.kuali.rice.kew.util.FutureRequestDocumentStateManager#clearStateFromDocument)- See Also:
-
getReceiveFutureRequestsValue
String getReceiveFutureRequestsValue()Returns whether the workflow variable that specifies that this principal should receive future requests has been set- Returns:
- whether the workflow variable that specifies that this principal should receive future requests has been set
- See Also:
-
getDoNotReceiveFutureRequestsValue
String getDoNotReceiveFutureRequestsValue()Returns whether the workflow variable that specifies that this principal should NOT receive future requests has been set- Returns:
- whether the workflow variable that specifies that this principal should NOT receive future requests has been set
- See Also:
-
getClearFutureRequestsValue
String getClearFutureRequestsValue()Returns whether the workflow variable that specifies that ... has been set- Returns:
- whether the workflow variable that specifies that ... has been set
-
validateAttributeDefinition
List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition) Validates a workflow attribute definition and returns a list of validation errors. This action is stateless and does not cause a commit of document updates. Implementation note: this is currently only used by EDL.- Parameters:
attributeDefinition- the workflow attribute definition to validate- Returns:
- list of attribute validation errors
- See Also:
-
getRootActionRequests
List<ActionRequest> getRootActionRequests()Return the list of root action requests on the document.- Returns:
- the list of root action requests on the document.
- See Also:
-
getActionsTaken
List<ActionTaken> getActionsTaken()Return the list of past actions taken on the document- Returns:
- the list of past actions taken on the document
- See Also:
-
getValidActions
ValidActions getValidActions()Returns the list of valid actions on this document for the current user- Returns:
- the list of valid actions on this document for the current user
- See Also:
-
getRequestedActions
RequestedActions getRequestedActions()Returns the list of requested actions on this document for the current user- Returns:
- the list of requested actions on this document for the current user
- See Also:
-
saveDocument
Saves the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
route
Routes the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
complete
Completes the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
disapprove
Disapproves the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
approve
Approves the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
cancel
Approves the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
recall
Recalls the document, commits updates.- Parameters:
annotation- the document action annotation- Since:
- 2.1
- See Also:
-
blanketApprove
Cancels the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
blanketApprove
Blanket-approves the document, commits updates.- Parameters:
annotation- the document action annotationnodeNames- a set of node names to which to blanket approve the given document- See Also:
-
saveDocumentData
void saveDocumentData()Save the document data without affecting routing, commits updates.- See Also:
-
acknowledge
Acknowledges the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
fyi
Clears an outstanding FYI on the document, commits updates.- Parameters:
annotation- the document action annotation- See Also:
-
fyi
void fyi()Clears an outstanding FYI on the document without an annotation, commits updates.- See Also:
-
delete
void delete()Deletes the document. Any pending updates are NOT committed, they are discarded. After deletion this WorkflowDocument object will no longer be valid, and any operations that interact with the workflow system will throws anIllegalStateException- See Also:
-
refresh
void refresh()Reloads the document state, any pending changes will be discarded- Throws:
RiceIllegalArgumentExceptionRiceIllegalArgumentException- See Also:
-
adHocToPrincipal
void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
actionRequested- the request action typeannotation- the route annotationtargetPrincipalId- the target principal idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipient- See Also:
-
adHocToPrincipal
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
actionRequested- the request action typenodeName- the node on which to generate the adhoc requestannotation- the route annotationtargetPrincipalId- the target principal idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipient- See Also:
-
adHocToPrincipal
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel) Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
actionRequested- the request action typenodeName- the node on which to generate the adhoc requestannotation- the route annotationtargetPrincipalId- the target principal idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipientrequestLabel- the request label- See Also:
-
adHocToPrincipal
Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
adHocToPrincipal- a pre-constructed AdHocToPrincipal objectannotation- the route annotation- See Also:
-
adHocToGroup
void adHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified group; commits updates.- Parameters:
actionRequested- the request action typeannotation- the route annotationtargetGroupId- the target group idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipient- See Also:
-
adHocToGroup
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction) Sends an "ad-hoc" action request to the specified group; commits updates.- Parameters:
actionRequested- the request action typenodeName- the node on which to generate the adhoc requestannotation- the route annotationtargetGroupId- the target group idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipient- See Also:
-
adHocToGroup
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel) Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
actionRequested- the request action typenodeName- the node on which to generate the adhoc requestannotation- the route annotationtargetGroupId- the target group idresponsibilityDescription- description of the responsibilityforceAction- whether the adhoc requests forces action by the recipientrequestLabel- the request label- See Also:
-
adHocToGroup
Sends an "ad-hoc" action request to the specified principal; commits updates.- Parameters:
adHocToGroup- a pre-constructed AdHocToGroup objectannotation- the route annotation- See Also:
-
revokeAdHocRequestById
Revokes an Ad-Hoc request by id; commits updates.- Parameters:
actionRequestId- the action request id to revokeannotation- the routing annotation- See Also:
-
revokeAdHocRequests
Revokes an Ad-Hoc request by the specified criteria; commits updates.- Parameters:
revoke- the criteria for matching ad hoc action requests on the specified document that should be revokedannotation- the routing annotation- See Also:
-
revokeAllAdHocRequests
Revokes all Ad-Hoc requests; commits updates; commits updates.- Parameters:
annotation- the routing annotation- See Also:
-
returnToPreviousNode
Returns the document to a previous node; commits updates.- Parameters:
annotation- the routing annotationnodeName- the node to return to- See Also:
-
returnToPreviousNode
Returns the document to a previous node; commits updates.- Parameters:
annotation- the routing annotationreturnPoint- the node to return to- See Also:
-
move
Moves the document to a different node; commits updates.- Parameters:
movePoint- the node to move toannotation- the routing annotation- See Also:
-
takeGroupAuthority
Takes authority of a group by a member of that group; commits updates.- Parameters:
annotation- the routing annotationgroupId- the group for which to take authority- See Also:
-
releaseGroupAuthority
Releases authority of a group by a member of that group; commits updates.- Parameters:
annotation- the routing annotationgroupId- the group for which to take authority- See Also:
-
placeInExceptionRouting
Places the document in exception routing; commits updates.- Parameters:
annotation- the routing annotation- See Also:
-
superUserBlanketApprove
Performs a super-user blanket-approve action; commits updates. The current user must be a super-user for this document.- Parameters:
annotation- the routing annotation- See Also:
-
superUserNodeApprove
Performs a super-user approve action for the specified node; commits updates. The current user must be a super-user for this document.- Parameters:
nodeName- the node to super-user approveannotation- the routing annotation- See Also:
-
superUserTakeRequestedAction
Performs a super-user approve action for the specified node; commits updates. The current user must be a super-user for this document.- Parameters:
actionRequestId- the action request to satisfy/approveannotation- the routing annotation- See Also:
-
superUserDisapprove
Performs a super-user disapprove action; commits updates. The current user must be a super-user for this document.- Parameters:
annotation- the routing annotation- See Also:
-
superUserCancel
Performs a super-user cancel action; commits updates. The current user must be a super-user for this document.- Parameters:
annotation- the routing annotation- See Also:
-
superUserReturnToPreviousNode
Performs a super-user "return to previous node" action; commits updates. The current user must be a super-user for this document.- Parameters:
returnPoint- the node to return toannotation- the routing annotation- See Also:
-
logAnnotation
Records a log action which adds an annotation on the document but does not affect routing. This action is stateless and does not cause a commit of document updates.- Parameters:
annotation- the annotation to log
-
isCompletionRequested
boolean isCompletionRequested()Returns whether a completion request is one of the requested actions.- Returns:
- whether a completion request is one of the requested actions.
- See Also:
-
isApprovalRequested
boolean isApprovalRequested()Returns whether an approval request is one of the requested actions.- Returns:
- whether an approval request is one of the requested actions.
- See Also:
-
isAcknowledgeRequested
boolean isAcknowledgeRequested()Returns whether an acknowledge request is one of the requested actions.- Returns:
- whether an acknowledge request is one of the requested actions.
- See Also:
-
isFYIRequested
boolean isFYIRequested()Returns whether an FYI is one of the requested actions.- Returns:
- whether an FYI is one of the requested actions.
- See Also:
-
isBlanketApproveCapable
boolean isBlanketApproveCapable()Returns whether a blank-approve action is a valid action.- Returns:
- whether a blank-approve action is a valid action.
- See Also:
-
isRouteCapable
boolean isRouteCapable()Returns whether a route action is a valid action.- Returns:
- whether a route action is a valid action.
- See Also:
-
isValidAction
Returns whether the specified action type is valid- Parameters:
actionType- the non-null ActionType to check- Returns:
- whether the specified action type is valid
- See Also:
-
checkStatus
Helper that checks whether the document has the given status NOTE: does this really need to be in the public API? it only appears to be used internally- Parameters:
status- the status to check- Returns:
- whether the document status is the specified status
- See Also:
-
isInitiated
boolean isInitiated()Indicates if the document is in the initiated state or not.- Returns:
- true if in the specified state
- See Also:
-
isSaved
boolean isSaved()Indicates if the document is in the saved state or not.- Returns:
- true if in the specified state
- See Also:
-
isEnroute
boolean isEnroute()Indicates if the document is in the enroute state or not.- Returns:
- true if in the specified state
- See Also:
-
isException
boolean isException()Indicates if the document is in the exception state or not.- Returns:
- true if in the specified state
- See Also:
-
isCanceled
boolean isCanceled()Indicates if the document is in the canceled state or not.- Returns:
- true if in the specified state
- See Also:
-
isRecalled
boolean isRecalled()Indicates if the document is in the recalled state or not.- Returns:
- true if in the specified state
- Since:
- 2.1
- See Also:
-
isDisapproved
boolean isDisapproved()Indicates if the document is in the disapproved state or not.- Returns:
- true if in the specified state
- See Also:
-
isApproved
boolean isApproved()Indicates if the document is in the Processed or Finalized state.- Returns:
- true if in the specified state
- See Also:
-
isProcessed
boolean isProcessed()Indicates if the document is in the processed state or not.- Returns:
- true if in the specified state
- See Also:
-
isFinal
boolean isFinal()Indicates if the document is in the final state or not.- Returns:
- true if in the specified state
- See Also:
-
getNodeNames
Returns the names of the route nodes on the document which are currently active.If the document has completed its routing (i.e. it is in processed or final status) then this method may return an empty set since no nodes are active at that time. In order to get either the active *or* terminal nodes, use the
getCurrentNodeNames()method.- Returns:
- an unmodifiable set containing the names of the active nodes for this document
- See Also:
-
getSimpleNodeNames
Returns the names of the simple route nodes on the document which are currently active.If the document has completed its routing (i.e. it is in processed or final status) then this method may return an empty set since no nodes are active at that time. In order to get either the active *or* terminal nodes, use the
method.invalid reference
#getSimpleCurrentNodeNames()- Returns:
- an unmodifiable set containing the names of the active nodes for this document
- Since:
- 2.6
-
getCurrentNodeNames
Returns the names of the nodes at which the document is currently at in it's route path.This method differs from
getNodeNames()in the fact that if there are no active nodes, it will return the last nodes on the document instead (a.k.a. the document's terminal nodes).- Returns:
- an unmodifiable set containing the names of the nodes at which this document is currently located within it's route path
- See Also:
-
getCurrentSimpleNodeNames
Returns the names of the simple nodes at which the document is currently at in it's route path.This method differs from
getSimpleNodeNames()in the fact that if there are no active nodes, it will return the last nodes on the document instead (a.k.a. the document's terminal nodes) as long as they are of a simple type.- Returns:
- an unmodifiable set containing the names of the simple nodes at which this document is currently located within it's route path
- Since:
- 2.6
-
getActiveRouteNodeInstances
List<RouteNodeInstance> getActiveRouteNodeInstances()Returns the list of active route node instances- Returns:
- the list of active route node instances
- See Also:
-
getCurrentRouteNodeInstances
List<RouteNodeInstance> getCurrentRouteNodeInstances()Returns the list of active route node instances- Returns:
- the list of active route node instances
- See Also:
-
getRouteNodeInstances
List<RouteNodeInstance> getRouteNodeInstances()Returns the flattened list of route node instances- Returns:
- the flattened list of route node instances
- See Also:
-
getPreviousNodeNames
Returns the list of previous route node names- Returns:
- the list of previous route node names
- See Also:
-
getDocumentDetail
DocumentDetail getDocumentDetail()Returns detailed document information TODO: consolidate with Document/ModifiableDocument or eliminate? currently bypasses locally cached Document data- Returns:
- detailed document information
- See Also:
-
updateDocumentContent
Sets internal DocumentContentUpdate object TODO: exposes internal API and used only by tests, candidate for elimination?- Parameters:
documentContentUpdate- the DocumentContentUpdate to set
-