public interface WorkflowDocument extends 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
.
Modifier and Type | Method and Description |
---|---|
void |
acknowledge(String annotation)
Acknowledges the document, commits updates.
|
void |
addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
Adds a workflow attribute definition.
|
void |
addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
Adds a searchable workflow attribute definition.
|
void |
adHocToGroup(ActionRequestType actionRequested,
String annotation,
String targetGroupId,
String responsibilityDescription,
boolean forceAction)
Sends an "ad-hoc" action request to the specified group; commits updates.
|
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.
|
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.
|
void |
adHocToGroup(AdHocToGroup adHocToGroup,
String annotation)
Sends an "ad-hoc" action request to the specified principal; commits updates.
|
void |
adHocToPrincipal(ActionRequestType actionRequested,
String annotation,
String targetPrincipalId,
String responsibilityDescription,
boolean forceAction)
Sends an "ad-hoc" action request to the specified principal; commits updates.
|
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.
|
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.
|
void |
adHocToPrincipal(AdHocToPrincipal adHocToPrincipal,
String annotation)
Sends an "ad-hoc" action request to the specified principal; commits updates.
|
void |
approve(String annotation)
Approves the document, commits updates.
|
void |
blanketApprove(String annotation)
Cancels the document, commits updates.
|
void |
blanketApprove(String annotation,
String... nodeNames)
Blanket-approves the document, commits updates.
|
void |
cancel(String annotation)
Approves the document, commits updates.
|
boolean |
checkStatus(DocumentStatus status)
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
|
void |
clearAttributeContent()
Clears the document's attribute content.
|
void |
clearAttributeDefinitions()
Clears workflow attribute definitions.
|
void |
clearSearchableContent()
Clears the searchable content.
|
void |
clearSearchableDefinitions()
Clears searchable workflow attribute definitions.
|
void |
complete(String annotation)
Completes the document, commits updates.
|
void |
delete()
Deletes the document.
|
void |
disapprove(String annotation)
Disapproves the document, commits updates.
|
void |
fyi()
Clears an outstanding FYI on the document without an annotation, commits updates.
|
void |
fyi(String annotation)
Clears an outstanding FYI on the document, commits updates.
|
List<ActionTaken> |
getActionsTaken()
Return the list of past actions taken on the document
|
List<RouteNodeInstance> |
getActiveRouteNodeInstances()
Returns the list of active route node instances
|
String |
getApplicationContent()
Returns the currently set application content.
|
String |
getAttributeContent()
Returns the currently set document attribute content.
|
List<WorkflowAttributeDefinition> |
getAttributeDefinitions()
Returns the currently set workflow attribute definitions
|
String |
getClearFutureRequestsValue()
Returns whether the workflow variable that specifies that ...
|
Set<String> |
getCurrentNodeNames()
Returns the names of the nodes at which the document is currently at in it's route path.
|
List<RouteNodeInstance> |
getCurrentRouteNodeInstances()
Returns the list of active route node instances
|
Document |
getDocument()
Returns a read-only view of the underlying document meta-data
|
DocumentContent |
getDocumentContent()
Returns a read-only view of the underlying mutable document content
|
DocumentDetail |
getDocumentDetail()
Returns detailed document information
TODO: consolidate with Document/ModifiableDocument or eliminate? currently bypasses
locally cached Document data
|
String |
getDoNotReceiveFutureRequestsValue()
Returns whether the workflow variable that specifies that this principal should NOT receive future requests has been set
|
Set<String> |
getNodeNames()
Returns the names of the route nodes on the document which are currently active.
|
List<String> |
getPreviousNodeNames()
Returns the list of previous route node names
|
String |
getPrincipalId()
Returns the principalId with which this WorkflowDocument was constructed
|
String |
getReceiveFutureRequestsValue()
Returns whether the workflow variable that specifies that this principal should receive future requests has been set
|
RequestedActions |
getRequestedActions()
Returns the list of requested actions on this document for the current user
|
List<ActionRequest> |
getRootActionRequests()
Return the list of root action requests on the document.
|
List<RouteNodeInstance> |
getRouteNodeInstances()
Returns the flattened list of route node instances
|
List<WorkflowAttributeDefinition> |
getSearchableDefinitions()
Returns the currently set searchable workflow attribute definitions
|
ValidActions |
getValidActions()
Returns the list of valid actions on this document for the current user
|
String |
getVariableValue(String name)
Gets a workflow variable value.
|
boolean |
isAcknowledgeRequested()
Returns whether an acknowledge request is one of the requested actions.
|
boolean |
isApprovalRequested()
Returns whether an approval request is one of the requested actions.
|
boolean |
isApproved()
Indicates if the document is in the Processed or Finalized state.
|
boolean |
isBlanketApproveCapable()
Returns whether a blank-approve action is a valid action.
|
boolean |
isCanceled()
Indicates if the document is in the canceled state or not.
|
boolean |
isCompletionRequested()
Returns whether a completion request is one of the requested actions.
|
boolean |
isDisapproved()
Indicates if the document is in the disapproved state or not.
|
boolean |
isEnroute()
Indicates if the document is in the enroute state or not.
|
boolean |
isException()
Indicates if the document is in the exception state or not.
|
boolean |
isFinal()
Indicates if the document is in the final state or not.
|
boolean |
isFYIRequested()
Returns whether an FYI is one of the requested actions.
|
boolean |
isInitiated()
Indicates if the document is in the initiated state or not.
|
boolean |
isProcessed()
Indicates if the document is in the processed state or not.
|
boolean |
isRecalled()
Indicates if the document is in the recalled state or not.
|
boolean |
isRouteCapable()
Returns whether a route action is a valid action.
|
boolean |
isSaved()
Indicates if the document is in the saved state or not.
|
boolean |
isValidAction(ActionType actionType)
Returns whether the specified action type is valid
|
void |
logAnnotation(String annotation)
Records a log action which adds an annotation on the document but does not affect routing.
|
void |
move(MovePoint movePoint,
String annotation)
Moves the document to a different node; commits updates.
|
void |
placeInExceptionRouting(String annotation)
Places the document in exception routing; commits updates.
|
void |
recall(String annotation,
boolean cancel)
Recalls the document, commits updates.
|
void |
refresh()
Reloads the document state, any pending changes will be discarded
|
void |
releaseGroupAuthority(String annotation,
String groupId)
Releases authority of a group by a member of that group; commits updates.
|
void |
removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
Removes a workflow attribute definition.
|
void |
removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
Removes a searchable workflow attribute definition.
|
void |
returnToPreviousNode(String annotation,
ReturnPoint returnPoint)
Returns the document to a previous node; commits updates.
|
void |
returnToPreviousNode(String annotation,
String nodeName)
Returns the document to a previous node; commits updates.
|
void |
revokeAdHocRequestById(String actionRequestId,
String annotation)
Revokes an Ad-Hoc request by id; commits updates.
|
void |
revokeAdHocRequests(AdHocRevoke revoke,
String annotation)
Revokes an Ad-Hoc request by the specified criteria; commits updates.
|
void |
revokeAllAdHocRequests(String annotation)
Revokes all Ad-Hoc requests; commits updates; commits updates.
|
void |
route(String annotation)
Routes the document, commits updates.
|
void |
saveDocument(String annotation)
Saves the document, commits updates.
|
void |
saveDocumentData()
Save the document data without affecting routing, commits updates.
|
void |
setApplicationContent(String applicationContent)
Sets the document's application content.
|
void |
setApplicationDocumentId(String applicationDocumentId)
Sets the application document id.
|
void |
setApplicationDocumentStatus(String applicationDocumentStatus)
Sets the application document status.
|
void |
setAttributeContent(String attributeContent)
Sets the document's attribute content.
|
void |
setClearFutureRequests()
Sets the workflow variable that specifies that ...
|
void |
setDoNotReceiveFutureRequests()
Sets the workflow variable that specifies that this principal should NOT receive future requests
|
void |
setReceiveFutureRequests()
Sets the workflow variable that specifies that this principal should receive future requests
|
void |
setSearchableContent(String searchableContent)
Sets the document's searchable content.
|
void |
setTitle(String title)
Sets the document title.
|
void |
setVariable(String name,
String value)
Sets a workflow variable.
|
void |
superUserBlanketApprove(String annotation)
Performs a super-user blanket-approve action; commits updates.
|
void |
superUserCancel(String annotation)
Performs a super-user cancel action; commits updates.
|
void |
superUserDisapprove(String annotation)
Performs a super-user disapprove action; commits updates.
|
void |
superUserNodeApprove(String nodeName,
String annotation)
Performs a super-user approve action for the specified node; commits updates.
|
void |
superUserReturnToPreviousNode(ReturnPoint returnPoint,
String annotation)
Performs a super-user "return to previous node" action; commits updates.
|
void |
superUserTakeRequestedAction(String actionRequestId,
String annotation)
Performs a super-user approve action for the specified node; commits updates.
|
void |
switchPrincipal(String principalId)
Switches the principalId under which WorkflowDocument API are performed.
|
void |
takeGroupAuthority(String annotation,
String groupId)
Takes authority of a group by a member of that group; commits updates.
|
void |
updateDocumentContent(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.
|
getApplicationDocumentId, getApplicationDocumentStatus, getApplicationDocumentStatusDate, getDateApproved, getDateCreated, getDateFinalized, getDateLastModified, getDocumentHandlerUrl, getDocumentId, getDocumentTypeId, getDocumentTypeName, getInitiatorPrincipalId, getRoutedByPrincipalId, getStatus, getTitle, getVariables
String getPrincipalId()
void switchPrincipal(String principalId)
principalId
- the new principalIdDocument getDocument()
DocumentContent getDocumentContent()
String getApplicationContent()
getDocumentContent()
void setTitle(String title)
title
- the document title to setvoid setApplicationDocumentId(String applicationDocumentId)
applicationDocumentId
- the application document id to set.void setApplicationDocumentStatus(String applicationDocumentStatus)
applicationDocumentStatus
- the application document status to setvoid setApplicationContent(String applicationContent)
applicationContent
- the document application content to setvoid setAttributeContent(String attributeContent)
attributeContent
- the document attribute content to setvoid clearAttributeContent()
String getAttributeContent()
void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
attributeDefinition
- the WorkflowAttributeDefinition to addvoid removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
attributeDefinition
- the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)
void clearAttributeDefinitions()
List<WorkflowAttributeDefinition> getAttributeDefinitions()
void setSearchableContent(String searchableContent)
searchableContent
- the searchable content to setvoid addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
searchableDefinition
- the WorkflowAttributeDefinition to addvoid removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
searchableDefinition
- the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)
void clearSearchableDefinitions()
void clearSearchableContent()
List<WorkflowAttributeDefinition> getSearchableDefinitions()
void setVariable(String name, String value)
name
- variable namevalue
- variable valueDocumentContract.getVariables()
String getVariableValue(String name)
name
- variable nameDocumentContract.getVariables()
void setReceiveFutureRequests()
void setDoNotReceiveFutureRequests()
void setClearFutureRequests()
String getReceiveFutureRequestsValue()
setReceiveFutureRequests()
String getDoNotReceiveFutureRequestsValue()
setDoNotReceiveFutureRequests()
String getClearFutureRequestsValue()
List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
attributeDefinition
- the workflow attribute definition to validateWorkflowDocumentActionsService.validateWorkflowAttributeDefinition(org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition)
List<ActionRequest> getRootActionRequests()
WorkflowDocumentService.getRootActionRequests(String)
List<ActionTaken> getActionsTaken()
WorkflowDocumentService.getActionsTaken(String)
ValidActions getValidActions()
WorkflowDocumentActionsService.determineValidActions(String, String)
RequestedActions getRequestedActions()
WorkflowDocumentActionsService.determineRequestedActions(String, String)
void saveDocument(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.save(org.kuali.rice.kew.api.action.DocumentActionParameters)
void route(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)
void complete(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.complete(org.kuali.rice.kew.api.action.DocumentActionParameters)
void disapprove(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)
void approve(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)
void cancel(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)
void recall(String annotation, boolean cancel)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)
void blanketApprove(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.cancel(org.kuali.rice.kew.api.action.DocumentActionParameters)
void blanketApprove(String annotation, String... nodeNames)
annotation
- the document action annotationnodeNames
- a set of node names to which to blanket approve the given documentorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.blanketApproveToNodes(org.kuali.rice.kew.api.action.DocumentActionParameters, java.util.Set)
void saveDocumentData()
org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.saveDocumentData(org.kuali.rice.kew.api.action.DocumentActionParameters)
void acknowledge(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.acknowledge(org.kuali.rice.kew.api.action.DocumentActionParameters)
void fyi(String annotation)
annotation
- the document action annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.clearFyi(org.kuali.rice.kew.api.action.DocumentActionParameters)
void fyi()
org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionfyi(String)
void delete()
IllegalStateException
org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidActionTakenExceptionWorkflowDocumentActionsService.delete(String, String)
void refresh()
void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
actionRequested
- the request action typeannotation
- the route annotationtargetPrincipalId
- the target principal idresponsibilityDescription
- description of the responsibilityforceAction
- whether the adhoc requests forces action by the recipientorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
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 recipientorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel)
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 labelorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
void adHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation)
adHocToPrincipal
- a pre-constructed AdHocToPrincipal objectannotation
- the route annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
void adHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
actionRequested
- the request action typeannotation
- the route annotationtargetGroupId
- the target group idresponsibilityDescription
- description of the responsibilityforceAction
- whether the adhoc requests forces action by the recipientorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
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 recipientorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel)
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 labelorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)
void adHocToGroup(AdHocToGroup adHocToGroup, String annotation)
adHocToGroup
- a pre-constructed AdHocToGroup objectannotation
- the route annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
void revokeAdHocRequestById(String actionRequestId, String annotation)
actionRequestId
- the action request id to revokeannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.revokeAdHocRequestById(org.kuali.rice.kew.api.action.DocumentActionParameters, String)
void revokeAdHocRequests(AdHocRevoke revoke, String annotation)
revoke
- the criteria for matching ad hoc action requests on the specified document that
should be revokedannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.revokeAdHocRequests(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocRevoke)
void revokeAllAdHocRequests(String annotation)
annotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.revokeAllAdHocRequests(org.kuali.rice.kew.api.action.DocumentActionParameters)
void returnToPreviousNode(String annotation, String nodeName)
annotation
- the routing annotationnodeName
- the node to return toorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.returnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.ReturnPoint)
void returnToPreviousNode(String annotation, ReturnPoint returnPoint)
annotation
- the routing annotationreturnPoint
- the node to return toorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionreturnToPreviousNode(String, String)
,
WorkflowDocumentActionsService.returnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.ReturnPoint)
void move(MovePoint movePoint, String annotation)
movePoint
- the node to move toannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.move(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.MovePoint)
void takeGroupAuthority(String annotation, String groupId)
annotation
- the routing annotationgroupId
- the group for which to take authorityorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.takeGroupAuthority(org.kuali.rice.kew.api.action.DocumentActionParameters, String)
void releaseGroupAuthority(String annotation, String groupId)
annotation
- the routing annotationgroupId
- the group for which to take authorityorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.releaseGroupAuthority(org.kuali.rice.kew.api.action.DocumentActionParameters, String)
void placeInExceptionRouting(String annotation)
annotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.placeInExceptionRouting(org.kuali.rice.kew.api.action.DocumentActionParameters)
void superUserBlanketApprove(String annotation)
annotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserBlanketApprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
void superUserNodeApprove(String nodeName, String annotation)
nodeName
- the node to super-user approveannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserNodeApprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, String)
void superUserTakeRequestedAction(String actionRequestId, String annotation)
actionRequestId
- the action request to satisfy/approveannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserTakeRequestedAction(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, String)
void superUserDisapprove(String annotation)
annotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserDisapprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
void superUserCancel(String annotation)
annotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserCancel(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
void superUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation)
returnPoint
- the node to return toannotation
- the routing annotationorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidDocumentContentException, InvalidActionTakenExceptionWorkflowDocumentActionsService.superUserReturnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, org.kuali.rice.kew.api.action.ReturnPoint)
void logAnnotation(String annotation)
annotation
- the annotation to logorg.kuali.rice.core.api.exception.RiceIllegalArgumentException,
- InvalidActionTakenExceptionboolean isCompletionRequested()
getRequestedActions()
boolean isApprovalRequested()
getRequestedActions()
boolean isAcknowledgeRequested()
getRequestedActions()
boolean isFYIRequested()
getRequestedActions()
boolean isBlanketApproveCapable()
getValidActions()
boolean isRouteCapable()
getValidActions()
boolean isValidAction(ActionType actionType)
actionType
- the non-null ActionType to checkgetValidActions()
boolean checkStatus(DocumentStatus status)
status
- the status to checkDocumentContract.getStatus()
boolean isInitiated()
DocumentContract.getStatus()
boolean isSaved()
DocumentContract.getStatus()
boolean isEnroute()
DocumentContract.getStatus()
boolean isException()
DocumentContract.getStatus()
boolean isCanceled()
DocumentContract.getStatus()
boolean isRecalled()
DocumentContract.getStatus()
boolean isDisapproved()
DocumentContract.getStatus()
boolean isApproved()
DocumentContract.getStatus()
boolean isProcessed()
DocumentContract.getStatus()
boolean isFinal()
DocumentContract.getStatus()
Set<String> getNodeNames()
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.
getActiveRouteNodeInstances()
,
WorkflowDocumentService.getActiveRouteNodeInstances(String)
Set<String> getCurrentNodeNames()
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).
getCurrentRouteNodeInstances()
,
WorkflowDocumentService.getCurrentRouteNodeInstances(String)
List<RouteNodeInstance> getActiveRouteNodeInstances()
WorkflowDocumentService.getActiveRouteNodeInstances(String)
List<RouteNodeInstance> getCurrentRouteNodeInstances()
WorkflowDocumentService.getCurrentRouteNodeInstances(String)
List<RouteNodeInstance> getRouteNodeInstances()
WorkflowDocumentService.getRouteNodeInstances(String)
List<String> getPreviousNodeNames()
WorkflowDocumentService.getPreviousRouteNodeNames(String)
DocumentDetail getDocumentDetail()
WorkflowDocumentService.getDocumentDetail(String)
void updateDocumentContent(DocumentContentUpdate documentContentUpdate)
documentContentUpdate
- the DocumentContentUpdate to setCopyright © 2005–2015 The Kuali Foundation. All rights reserved.