public class WorkflowDocumentImpl extends Object implements Serializable, WorkflowDocumentPrototype
WorkflowDocument. Implements WorkflowDocumentPrototype to expose
and initialization method used for construction.
NOTE: operations against document data on this are only "flushed" when an action is performed.
This class is *not* thread safe.
WorkflowDocument,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkflowDocumentImpl.ModifiableDocument
A wrapper around Document which keeps track of local changes and generates
a new updated Document as necessary.
|
protected static class |
WorkflowDocumentImpl.ModifiableDocumentContent
A wrapper around DocumentContent which keeps track of local changes and generates
a new updated DocumentContent as necessary.
|
| Constructor and Description |
|---|
WorkflowDocumentImpl() |
| 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.
|
protected DocumentActionParameters |
constructDocumentActionParameters(String annotation) |
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 |
getApplicationDocumentId()
Retrieve the application document id.
|
String |
getApplicationDocumentStatus()
Retrieve the application document status.
|
org.joda.time.DateTime |
getApplicationDocumentStatusDate()
Retrieve the last application document status transition date.
|
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
|
org.joda.time.DateTime |
getDateApproved()
Retrieve the document approval date
|
org.joda.time.DateTime |
getDateCreated()
Retrieve the document creation date
|
org.joda.time.DateTime |
getDateFinalized()
Retrieve the document finalization date
|
org.joda.time.DateTime |
getDateLastModified()
Retrieve the document last-modified date
|
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
|
protected DocumentContentUpdate |
getDocumentContentUpdateIfDirty() |
DocumentDetail |
getDocumentDetail()
Returns detailed document information
TODO: consolidate with Document/ModifiableDocument or eliminate? currently bypasses
locally cached Document data
|
String |
getDocumentHandlerUrl()
Retrieve the document handler url
|
String |
getDocumentId()
Retrieve the document id
|
String |
getDocumentTypeId()
Retrieve the id of the type of this document
|
String |
getDocumentTypeName()
Retrieve the name of the type of this document
|
protected DocumentUpdate |
getDocumentUpdateIfDirty() |
String |
getDoNotReceiveFutureRequestsValue()
Returns whether the workflow variable that specifies that this principal should NOT receive future requests has been set
|
protected String |
getFutureRequestsKey(String principalId) |
String |
getInitiatorPrincipalId()
Retrieve the initiator principal id
|
protected WorkflowDocumentImpl.ModifiableDocument |
getModifiableDocument() |
protected WorkflowDocumentImpl.ModifiableDocumentContent |
getModifiableDocumentContent() |
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.
|
String |
getRoutedByPrincipalId()
Retrieve the router principal id
|
List<RouteNodeInstance> |
getRouteNodeInstances()
Returns the flattened list of route node instances
|
List<WorkflowAttributeDefinition> |
getSearchableDefinitions()
Returns the currently set searchable workflow attribute definitions
|
DocumentStatus |
getStatus()
Retrieve the document status
|
String |
getTitle()
Retrieve the document title
|
ValidActions |
getValidActions()
Returns the list of valid actions on this document for the current user
|
Map<String,String> |
getVariables()
Retrieve the currently defined internal workflow engine variables for the document
NOTE: use of workflow engine variables is an advanced technique requiring specific crafting of the
workflow document routing; these variables will not be useful for the majority of workflow use cases
|
String |
getVariableValue(String name)
Gets a workflow variable value.
|
WorkflowDocumentActionsService |
getWorkflowDocumentActionsService() |
WorkflowDocumentService |
getWorkflowDocumentService() |
void |
init(String principalId,
Document document)
Initialize the WorkflowDocument
|
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.
|
protected void |
resetStateAfterAction(DocumentActionResult response) |
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 |
setWorkflowDocumentActionsService(WorkflowDocumentActionsService workflowDocumentActionsService) |
void |
setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService) |
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.
|
public WorkflowDocumentImpl()
public void init(String principalId, Document document)
WorkflowDocumentPrototypeinit in interface WorkflowDocumentPrototypeprincipalId - the interacting/consuming user principal iddocument - the DTO of the document this WorkflowDocument representspublic WorkflowDocumentActionsService getWorkflowDocumentActionsService()
public void setWorkflowDocumentActionsService(WorkflowDocumentActionsService workflowDocumentActionsService)
public WorkflowDocumentService getWorkflowDocumentService()
public void setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)
protected WorkflowDocumentImpl.ModifiableDocument getModifiableDocument()
protected WorkflowDocumentImpl.ModifiableDocumentContent getModifiableDocumentContent()
public String getDocumentId()
DocumentContractgetDocumentId in interface DocumentContractpublic Document getDocument()
WorkflowDocumentgetDocument in interface WorkflowDocumentpublic DocumentContent getDocumentContent()
WorkflowDocumentgetDocumentContent in interface WorkflowDocumentpublic String getApplicationContent()
WorkflowDocumentgetApplicationContent in interface WorkflowDocumentWorkflowDocument.getDocumentContent()public void setApplicationContent(String applicationContent)
WorkflowDocumentsetApplicationContent in interface WorkflowDocumentapplicationContent - the document application content to setpublic void setAttributeContent(String attributeContent)
WorkflowDocumentsetAttributeContent in interface WorkflowDocumentattributeContent - the document attribute content to setpublic void clearAttributeContent()
WorkflowDocumentclearAttributeContent in interface WorkflowDocumentpublic String getAttributeContent()
WorkflowDocumentgetAttributeContent in interface WorkflowDocumentpublic void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocumentaddAttributeDefinition in interface WorkflowDocumentattributeDefinition - the WorkflowAttributeDefinition to addpublic void removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocumentremoveAttributeDefinition in interface WorkflowDocumentattributeDefinition - the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)public void clearAttributeDefinitions()
WorkflowDocumentclearAttributeDefinitions in interface WorkflowDocumentpublic List<WorkflowAttributeDefinition> getAttributeDefinitions()
WorkflowDocumentgetAttributeDefinitions in interface WorkflowDocumentpublic void setSearchableContent(String searchableContent)
WorkflowDocumentsetSearchableContent in interface WorkflowDocumentsearchableContent - the searchable content to setpublic void addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
WorkflowDocumentaddSearchableDefinition in interface WorkflowDocumentsearchableDefinition - the WorkflowAttributeDefinition to addpublic void removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
WorkflowDocumentremoveSearchableDefinition in interface WorkflowDocumentsearchableDefinition - the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)public void clearSearchableDefinitions()
WorkflowDocumentclearSearchableDefinitions in interface WorkflowDocumentpublic void clearSearchableContent()
WorkflowDocumentclearSearchableContent in interface WorkflowDocumentpublic List<WorkflowAttributeDefinition> getSearchableDefinitions()
WorkflowDocumentgetSearchableDefinitions in interface WorkflowDocumentpublic List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocumentvalidateAttributeDefinition in interface WorkflowDocumentattributeDefinition - the workflow attribute definition to validateWorkflowDocumentActionsService.validateWorkflowAttributeDefinition(org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition)public List<ActionRequest> getRootActionRequests()
WorkflowDocumentgetRootActionRequests in interface WorkflowDocumentWorkflowDocumentService.getRootActionRequests(String)public List<ActionTaken> getActionsTaken()
WorkflowDocumentgetActionsTaken in interface WorkflowDocumentWorkflowDocumentService.getActionsTaken(String)public void setApplicationDocumentId(String applicationDocumentId)
WorkflowDocumentsetApplicationDocumentId in interface WorkflowDocumentapplicationDocumentId - the application document id to set.public String getApplicationDocumentId()
DocumentContractgetApplicationDocumentId in interface DocumentContractpublic org.joda.time.DateTime getDateCreated()
DocumentContractgetDateCreated in interface DocumentContractpublic String getTitle()
DocumentContractgetTitle in interface DocumentContractpublic ValidActions getValidActions()
WorkflowDocumentgetValidActions in interface WorkflowDocumentWorkflowDocumentActionsService.determineValidActions(String, String)public RequestedActions getRequestedActions()
WorkflowDocumentgetRequestedActions in interface WorkflowDocumentWorkflowDocumentActionsService.determineRequestedActions(String, String)protected DocumentUpdate getDocumentUpdateIfDirty()
protected DocumentContentUpdate getDocumentContentUpdateIfDirty()
protected void resetStateAfterAction(DocumentActionResult response)
public void saveDocument(String annotation)
WorkflowDocumentsaveDocument in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.save(org.kuali.rice.kew.api.action.DocumentActionParameters)public void route(String annotation)
WorkflowDocumentroute in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)public void disapprove(String annotation)
WorkflowDocumentdisapprove in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)public void approve(String annotation)
WorkflowDocumentapprove in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)public void cancel(String annotation)
WorkflowDocumentcancel in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)public void recall(String annotation, boolean cancel)
WorkflowDocumentrecall in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)public void blanketApprove(String annotation)
WorkflowDocumentblanketApprove in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.cancel(org.kuali.rice.kew.api.action.DocumentActionParameters)public void blanketApprove(String annotation, String... nodeNames)
WorkflowDocumentblanketApprove in interface WorkflowDocumentannotation - the document action annotationnodeNames - a set of node names to which to blanket approve the given documentWorkflowDocumentActionsService.blanketApproveToNodes(org.kuali.rice.kew.api.action.DocumentActionParameters, java.util.Set)public void saveDocumentData()
WorkflowDocumentsaveDocumentData in interface WorkflowDocumentWorkflowDocumentActionsService.saveDocumentData(org.kuali.rice.kew.api.action.DocumentActionParameters)public void setApplicationDocumentStatus(String applicationDocumentStatus)
WorkflowDocumentsetApplicationDocumentStatus in interface WorkflowDocumentapplicationDocumentStatus - the application document status to setpublic void acknowledge(String annotation)
WorkflowDocumentacknowledge in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.acknowledge(org.kuali.rice.kew.api.action.DocumentActionParameters)public void fyi(String annotation)
WorkflowDocumentfyi in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.clearFyi(org.kuali.rice.kew.api.action.DocumentActionParameters)public void fyi()
WorkflowDocumentfyi in interface WorkflowDocumentWorkflowDocument.fyi(String)public void delete()
WorkflowDocumentIllegalStateExceptiondelete in interface WorkflowDocumentWorkflowDocumentActionsService.delete(String, String)public void refresh()
WorkflowDocumentrefresh in interface WorkflowDocumentWorkflowDocumentService.getDocument(String)public void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
WorkflowDocumentadHocToPrincipal in interface WorkflowDocumentactionRequested - the request action typeannotation - the route annotationtargetPrincipalId - the target principal idresponsibilityDescription - description of the responsibilityforceAction - whether the adhoc requests forces action by the recipientWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)public void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
WorkflowDocumentadHocToPrincipal in interface WorkflowDocumentactionRequested - 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 recipientWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)public void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel)
WorkflowDocumentadHocToPrincipal in interface WorkflowDocumentactionRequested - 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 labelWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)public void adHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation)
WorkflowDocumentadHocToPrincipal in interface WorkflowDocumentadHocToPrincipal - a pre-constructed AdHocToPrincipal objectannotation - the route annotationWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)public void adHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
WorkflowDocumentadHocToGroup in interface WorkflowDocumentactionRequested - the request action typeannotation - the route annotationtargetGroupId - the target group idresponsibilityDescription - description of the responsibilityforceAction - whether the adhoc requests forces action by the recipientWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)public void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
WorkflowDocumentadHocToGroup in interface WorkflowDocumentactionRequested - 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 recipientWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)public void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel)
WorkflowDocumentadHocToGroup in interface WorkflowDocumentactionRequested - 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 labelWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)public void adHocToGroup(AdHocToGroup adHocToGroup, String annotation)
WorkflowDocumentadHocToGroup in interface WorkflowDocumentadHocToGroup - a pre-constructed AdHocToGroup objectannotation - the route annotationWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)public void revokeAdHocRequestById(String actionRequestId, String annotation)
WorkflowDocumentrevokeAdHocRequestById in interface WorkflowDocumentactionRequestId - the action request id to revokeannotation - the routing annotationWorkflowDocumentActionsService.revokeAdHocRequestById(org.kuali.rice.kew.api.action.DocumentActionParameters, String)public void revokeAdHocRequests(AdHocRevoke revoke, String annotation)
WorkflowDocumentrevokeAdHocRequests in interface WorkflowDocumentrevoke - the criteria for matching ad hoc action requests on the specified document that
should be revokedannotation - the routing annotationWorkflowDocumentActionsService.revokeAdHocRequests(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocRevoke)public void revokeAllAdHocRequests(String annotation)
WorkflowDocumentrevokeAllAdHocRequests in interface WorkflowDocumentannotation - the routing annotationWorkflowDocumentActionsService.revokeAllAdHocRequests(org.kuali.rice.kew.api.action.DocumentActionParameters)public void setTitle(String title)
WorkflowDocumentsetTitle in interface WorkflowDocumenttitle - the document title to setpublic String getDocumentTypeName()
DocumentContractgetDocumentTypeName in interface DocumentContractpublic boolean isCompletionRequested()
WorkflowDocumentisCompletionRequested in interface WorkflowDocumentWorkflowDocument.getRequestedActions()public boolean isApprovalRequested()
WorkflowDocumentisApprovalRequested in interface WorkflowDocumentWorkflowDocument.getRequestedActions()public boolean isAcknowledgeRequested()
WorkflowDocumentisAcknowledgeRequested in interface WorkflowDocumentWorkflowDocument.getRequestedActions()public boolean isFYIRequested()
WorkflowDocumentisFYIRequested in interface WorkflowDocumentWorkflowDocument.getRequestedActions()public boolean isBlanketApproveCapable()
WorkflowDocumentisBlanketApproveCapable in interface WorkflowDocumentWorkflowDocument.getValidActions()public boolean isRouteCapable()
WorkflowDocumentisRouteCapable in interface WorkflowDocumentWorkflowDocument.getValidActions()public boolean isValidAction(ActionType actionType)
WorkflowDocumentisValidAction in interface WorkflowDocumentactionType - the non-null ActionType to checkWorkflowDocument.getValidActions()public void superUserBlanketApprove(String annotation)
WorkflowDocumentsuperUserBlanketApprove in interface WorkflowDocumentannotation - the routing annotationWorkflowDocumentActionsService.superUserBlanketApprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)public void superUserNodeApprove(String nodeName, String annotation)
WorkflowDocumentsuperUserNodeApprove in interface WorkflowDocumentnodeName - the node to super-user approveannotation - the routing annotationWorkflowDocumentActionsService.superUserNodeApprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, String)public void superUserTakeRequestedAction(String actionRequestId, String annotation)
WorkflowDocumentsuperUserTakeRequestedAction in interface WorkflowDocumentactionRequestId - the action request to satisfy/approveannotation - the routing annotationWorkflowDocumentActionsService.superUserTakeRequestedAction(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, String)public void superUserDisapprove(String annotation)
WorkflowDocumentsuperUserDisapprove in interface WorkflowDocumentannotation - the routing annotationWorkflowDocumentActionsService.superUserDisapprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)public void superUserCancel(String annotation)
WorkflowDocumentsuperUserCancel in interface WorkflowDocumentannotation - the routing annotationWorkflowDocumentActionsService.superUserCancel(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)public void superUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation)
WorkflowDocumentsuperUserReturnToPreviousNode in interface WorkflowDocumentreturnPoint - the node to return toannotation - the routing annotationWorkflowDocumentActionsService.superUserReturnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, org.kuali.rice.kew.api.action.ReturnPoint)public void complete(String annotation)
WorkflowDocumentcomplete in interface WorkflowDocumentannotation - the document action annotationWorkflowDocumentActionsService.complete(org.kuali.rice.kew.api.action.DocumentActionParameters)public void logAnnotation(String annotation)
WorkflowDocumentlogAnnotation in interface WorkflowDocumentannotation - the annotation to logpublic DocumentStatus getStatus()
DocumentContractgetStatus in interface DocumentContractpublic boolean checkStatus(DocumentStatus status)
WorkflowDocumentcheckStatus in interface WorkflowDocumentstatus - the status to checkDocumentContract.getStatus()public boolean isInitiated()
isInitiated in interface WorkflowDocumentDocumentContract.getStatus()public boolean isSaved()
isSaved in interface WorkflowDocumentDocumentContract.getStatus()public boolean isEnroute()
isEnroute in interface WorkflowDocumentDocumentContract.getStatus()public boolean isException()
isException in interface WorkflowDocumentDocumentContract.getStatus()public boolean isCanceled()
isCanceled in interface WorkflowDocumentDocumentContract.getStatus()public boolean isRecalled()
isRecalled in interface WorkflowDocumentDocumentContract.getStatus()public boolean isDisapproved()
isDisapproved in interface WorkflowDocumentDocumentContract.getStatus()public boolean isApproved()
isApproved in interface WorkflowDocumentDocumentContract.getStatus()public boolean isProcessed()
isProcessed in interface WorkflowDocumentDocumentContract.getStatus()public boolean isFinal()
isFinal in interface WorkflowDocumentDocumentContract.getStatus()public String getPrincipalId()
getPrincipalId in interface WorkflowDocumentpublic void switchPrincipal(String principalId)
WorkflowDocumentswitchPrincipal in interface WorkflowDocumentprincipalId - the new principalIdpublic void takeGroupAuthority(String annotation, String groupId)
WorkflowDocumenttakeGroupAuthority in interface WorkflowDocumentannotation - the routing annotationgroupId - the group for which to take authorityWorkflowDocumentActionsService.takeGroupAuthority(org.kuali.rice.kew.api.action.DocumentActionParameters, String)public void releaseGroupAuthority(String annotation, String groupId)
WorkflowDocumentreleaseGroupAuthority in interface WorkflowDocumentannotation - the routing annotationgroupId - the group for which to take authorityWorkflowDocumentActionsService.releaseGroupAuthority(org.kuali.rice.kew.api.action.DocumentActionParameters, String)public Set<String> getNodeNames()
WorkflowDocumentIf 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 WorkflowDocument.getCurrentNodeNames() method.
getNodeNames in interface WorkflowDocumentWorkflowDocument.getActiveRouteNodeInstances(),
WorkflowDocumentService.getActiveRouteNodeInstances(String)public Set<String> getCurrentNodeNames()
WorkflowDocumentThis method differs from WorkflowDocument.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).
getCurrentNodeNames in interface WorkflowDocumentWorkflowDocument.getCurrentRouteNodeInstances(),
WorkflowDocumentService.getCurrentRouteNodeInstances(String)public void returnToPreviousNode(String annotation, String nodeName)
WorkflowDocumentreturnToPreviousNode in interface WorkflowDocumentannotation - the routing annotationnodeName - the node to return toWorkflowDocumentActionsService.returnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.ReturnPoint)public void returnToPreviousNode(String annotation, ReturnPoint returnPoint)
WorkflowDocumentreturnToPreviousNode in interface WorkflowDocumentannotation - the routing annotationreturnPoint - the node to return toWorkflowDocument.returnToPreviousNode(String, String),
WorkflowDocumentActionsService.returnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.ReturnPoint)public void move(MovePoint movePoint, String annotation)
WorkflowDocumentmove in interface WorkflowDocumentmovePoint - the node to move toannotation - the routing annotationWorkflowDocumentActionsService.move(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.MovePoint)public List<RouteNodeInstance> getActiveRouteNodeInstances()
WorkflowDocumentgetActiveRouteNodeInstances in interface WorkflowDocumentWorkflowDocumentService.getActiveRouteNodeInstances(String)public List<RouteNodeInstance> getCurrentRouteNodeInstances()
WorkflowDocumentgetCurrentRouteNodeInstances in interface WorkflowDocumentWorkflowDocumentService.getCurrentRouteNodeInstances(String)public List<RouteNodeInstance> getRouteNodeInstances()
WorkflowDocumentgetRouteNodeInstances in interface WorkflowDocumentWorkflowDocumentService.getRouteNodeInstances(String)public List<String> getPreviousNodeNames()
WorkflowDocumentgetPreviousNodeNames in interface WorkflowDocumentWorkflowDocumentService.getPreviousRouteNodeNames(String)public DocumentDetail getDocumentDetail()
WorkflowDocumentgetDocumentDetail in interface WorkflowDocumentWorkflowDocumentService.getDocumentDetail(String)public void updateDocumentContent(DocumentContentUpdate documentContentUpdate)
WorkflowDocumentupdateDocumentContent in interface WorkflowDocumentdocumentContentUpdate - the DocumentContentUpdate to setpublic void placeInExceptionRouting(String annotation)
WorkflowDocumentplaceInExceptionRouting in interface WorkflowDocumentannotation - the routing annotationWorkflowDocumentActionsService.placeInExceptionRouting(org.kuali.rice.kew.api.action.DocumentActionParameters)public void setVariable(String name, String value)
WorkflowDocumentsetVariable in interface WorkflowDocumentname - variable namevalue - variable valueDocumentContract.getVariables()public String getVariableValue(String name)
WorkflowDocumentgetVariableValue in interface WorkflowDocumentname - variable nameDocumentContract.getVariables()public void setReceiveFutureRequests()
WorkflowDocumentsetReceiveFutureRequests in interface WorkflowDocumentKewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_KEY,
KewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_VALUEpublic void setDoNotReceiveFutureRequests()
WorkflowDocumentpublic void setClearFutureRequests()
WorkflowDocumentsetClearFutureRequests in interface WorkflowDocumentKewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_KEY,
KewApiConstants.CLEAR_FUTURE_REQUESTS_BRANCH_STATE_VALUEprotected String getFutureRequestsKey(String principalId)
public String getReceiveFutureRequestsValue()
WorkflowDocumentgetReceiveFutureRequestsValue in interface WorkflowDocumentWorkflowDocument.setReceiveFutureRequests()public String getDoNotReceiveFutureRequestsValue()
WorkflowDocumentgetDoNotReceiveFutureRequestsValue in interface WorkflowDocumentWorkflowDocument.setDoNotReceiveFutureRequests()public String getClearFutureRequestsValue()
WorkflowDocumentgetClearFutureRequestsValue in interface WorkflowDocumentprotected DocumentActionParameters constructDocumentActionParameters(String annotation)
public org.joda.time.DateTime getDateLastModified()
DocumentContractgetDateLastModified in interface DocumentContractpublic org.joda.time.DateTime getDateApproved()
DocumentContractgetDateApproved in interface DocumentContractpublic org.joda.time.DateTime getDateFinalized()
DocumentContractgetDateFinalized in interface DocumentContractpublic String getInitiatorPrincipalId()
DocumentContractgetInitiatorPrincipalId in interface DocumentContractpublic String getRoutedByPrincipalId()
DocumentContractgetRoutedByPrincipalId in interface DocumentContractpublic String getDocumentTypeId()
DocumentContractgetDocumentTypeId in interface DocumentContractpublic String getDocumentHandlerUrl()
DocumentContractgetDocumentHandlerUrl in interface DocumentContractpublic String getApplicationDocumentStatus()
DocumentContractgetApplicationDocumentStatus in interface DocumentContractpublic org.joda.time.DateTime getApplicationDocumentStatusDate()
DocumentContractgetApplicationDocumentStatusDate in interface DocumentContractpublic Map<String,String> getVariables()
DocumentContractgetVariables in interface DocumentContractCopyright © 2005–2015 The Kuali Foundation. All rights reserved.