|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.impl.document.WorkflowDocumentImpl
public class WorkflowDocumentImpl
The implementation of 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 FormNested Class Summary | |
---|---|
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 Summary | |
---|---|
WorkflowDocumentImpl()
|
Method Summary | |
---|---|
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 |
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 |
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(ReturnPoint returnPoint,
String annotation)
Returns the document to a previous node; commits updates. |
void |
returnToPreviousNode(String nodeName,
String annotation)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowDocumentImpl()
Method Detail |
---|
public void init(String principalId, Document document)
WorkflowDocumentPrototype
init
in interface WorkflowDocumentPrototype
principalId
- 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()
DocumentContract
getDocumentId
in interface DocumentContract
public Document getDocument()
WorkflowDocument
getDocument
in interface WorkflowDocument
public DocumentContent getDocumentContent()
WorkflowDocument
getDocumentContent
in interface WorkflowDocument
public String getApplicationContent()
WorkflowDocument
getApplicationContent
in interface WorkflowDocument
WorkflowDocument.getDocumentContent()
public void setApplicationContent(String applicationContent)
WorkflowDocument
setApplicationContent
in interface WorkflowDocument
applicationContent
- the document application content to setpublic void setAttributeContent(String attributeContent)
WorkflowDocument
setAttributeContent
in interface WorkflowDocument
attributeContent
- the document attribute content to setpublic void clearAttributeContent()
WorkflowDocument
clearAttributeContent
in interface WorkflowDocument
public String getAttributeContent()
WorkflowDocument
getAttributeContent
in interface WorkflowDocument
public void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocument
addAttributeDefinition
in interface WorkflowDocument
attributeDefinition
- the WorkflowAttributeDefinition to addpublic void removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocument
removeAttributeDefinition
in interface WorkflowDocument
attributeDefinition
- the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)
public void clearAttributeDefinitions()
WorkflowDocument
clearAttributeDefinitions
in interface WorkflowDocument
public List<WorkflowAttributeDefinition> getAttributeDefinitions()
WorkflowDocument
getAttributeDefinitions
in interface WorkflowDocument
public void setSearchableContent(String searchableContent)
WorkflowDocument
setSearchableContent
in interface WorkflowDocument
searchableContent
- the searchable content to setpublic void addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
WorkflowDocument
addSearchableDefinition
in interface WorkflowDocument
searchableDefinition
- the WorkflowAttributeDefinition to addpublic void removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
WorkflowDocument
removeSearchableDefinition
in interface WorkflowDocument
searchableDefinition
- the WorkflowAttributeDefinition to removeAbstractDataTransferObject.equals(Object)
public void clearSearchableDefinitions()
WorkflowDocument
clearSearchableDefinitions
in interface WorkflowDocument
public void clearSearchableContent()
WorkflowDocument
clearSearchableContent
in interface WorkflowDocument
public List<WorkflowAttributeDefinition> getSearchableDefinitions()
WorkflowDocument
getSearchableDefinitions
in interface WorkflowDocument
public List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
WorkflowDocument
validateAttributeDefinition
in interface WorkflowDocument
attributeDefinition
- the workflow attribute definition to validate
WorkflowDocumentActionsService.validateWorkflowAttributeDefinition(org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition)
public List<ActionRequest> getRootActionRequests()
WorkflowDocument
getRootActionRequests
in interface WorkflowDocument
WorkflowDocumentService.getRootActionRequests(String)
public List<ActionTaken> getActionsTaken()
WorkflowDocument
getActionsTaken
in interface WorkflowDocument
WorkflowDocumentService.getActionsTaken(String)
public void setApplicationDocumentId(String applicationDocumentId)
WorkflowDocument
setApplicationDocumentId
in interface WorkflowDocument
applicationDocumentId
- the application document id to set.public String getApplicationDocumentId()
DocumentContract
getApplicationDocumentId
in interface DocumentContract
public org.joda.time.DateTime getDateCreated()
DocumentContract
getDateCreated
in interface DocumentContract
public String getTitle()
DocumentContract
getTitle
in interface DocumentContract
public ValidActions getValidActions()
WorkflowDocument
getValidActions
in interface WorkflowDocument
WorkflowDocumentActionsService.determineValidActions(String, String)
public RequestedActions getRequestedActions()
WorkflowDocument
getRequestedActions
in interface WorkflowDocument
WorkflowDocumentActionsService.determineRequestedActions(String, String)
protected DocumentUpdate getDocumentUpdateIfDirty()
protected DocumentContentUpdate getDocumentContentUpdateIfDirty()
protected void resetStateAfterAction(DocumentActionResult response)
public void saveDocument(String annotation)
WorkflowDocument
saveDocument
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.save(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void route(String annotation)
WorkflowDocument
route
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void disapprove(String annotation)
WorkflowDocument
disapprove
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.route(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void approve(String annotation)
WorkflowDocument
approve
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void cancel(String annotation)
WorkflowDocument
cancel
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.approve(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void blanketApprove(String annotation)
WorkflowDocument
blanketApprove
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.cancel(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void blanketApprove(String annotation, String... nodeNames)
WorkflowDocument
blanketApprove
in interface WorkflowDocument
annotation
- 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()
WorkflowDocument
saveDocumentData
in interface WorkflowDocument
WorkflowDocumentActionsService.saveDocumentData(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void setApplicationDocumentStatus(String applicationDocumentStatus)
WorkflowDocument
setApplicationDocumentStatus
in interface WorkflowDocument
applicationDocumentStatus
- the application document status to setpublic void acknowledge(String annotation)
WorkflowDocument
acknowledge
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.acknowledge(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void fyi(String annotation)
WorkflowDocument
fyi
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.clearFyi(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void fyi()
WorkflowDocument
fyi
in interface WorkflowDocument
WorkflowDocument.fyi(String)
public void delete()
WorkflowDocument
IllegalStateException
delete
in interface WorkflowDocument
WorkflowDocumentActionsService.delete(String, String)
public void refresh()
WorkflowDocument
refresh
in interface WorkflowDocument
WorkflowDocumentService.getDocument(String)
public void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
WorkflowDocument
adHocToPrincipal
in interface WorkflowDocument
actionRequested
- 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)
WorkflowDocument
adHocToPrincipal
in interface WorkflowDocument
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 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)
WorkflowDocument
adHocToPrincipal
in interface WorkflowDocument
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 labelWorkflowDocumentActionsService.adHocToPrincipal(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToPrincipal)
public void adHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation)
WorkflowDocument
adHocToPrincipal
in interface WorkflowDocument
adHocToPrincipal
- 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)
WorkflowDocument
adHocToGroup
in interface WorkflowDocument
actionRequested
- 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)
WorkflowDocument
adHocToGroup
in interface WorkflowDocument
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 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)
WorkflowDocument
adHocToGroup
in interface WorkflowDocument
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 labelWorkflowDocumentActionsService.adHocToGroup(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.AdHocToGroup)
public void adHocToGroup(AdHocToGroup adHocToGroup, String annotation)
WorkflowDocument
adHocToGroup
in interface WorkflowDocument
adHocToGroup
- 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)
WorkflowDocument
revokeAdHocRequestById
in interface WorkflowDocument
actionRequestId
- 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)
WorkflowDocument
revokeAdHocRequests
in interface WorkflowDocument
revoke
- 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)
WorkflowDocument
revokeAllAdHocRequests
in interface WorkflowDocument
annotation
- the routing annotationWorkflowDocumentActionsService.revokeAllAdHocRequests(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void setTitle(String title)
WorkflowDocument
setTitle
in interface WorkflowDocument
title
- the document title to setpublic String getDocumentTypeName()
DocumentContract
getDocumentTypeName
in interface DocumentContract
public boolean isCompletionRequested()
WorkflowDocument
isCompletionRequested
in interface WorkflowDocument
WorkflowDocument.getRequestedActions()
public boolean isApprovalRequested()
WorkflowDocument
isApprovalRequested
in interface WorkflowDocument
WorkflowDocument.getRequestedActions()
public boolean isAcknowledgeRequested()
WorkflowDocument
isAcknowledgeRequested
in interface WorkflowDocument
WorkflowDocument.getRequestedActions()
public boolean isFYIRequested()
WorkflowDocument
isFYIRequested
in interface WorkflowDocument
WorkflowDocument.getRequestedActions()
public boolean isBlanketApproveCapable()
WorkflowDocument
isBlanketApproveCapable
in interface WorkflowDocument
WorkflowDocument.getValidActions()
public boolean isRouteCapable()
WorkflowDocument
isRouteCapable
in interface WorkflowDocument
WorkflowDocument.getValidActions()
public boolean isValidAction(ActionType actionType)
WorkflowDocument
isValidAction
in interface WorkflowDocument
actionType
- the non-null ActionType to check
WorkflowDocument.getValidActions()
public void superUserBlanketApprove(String annotation)
WorkflowDocument
superUserBlanketApprove
in interface WorkflowDocument
annotation
- the routing annotationWorkflowDocumentActionsService.superUserBlanketApprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
public void superUserNodeApprove(String nodeName, String annotation)
WorkflowDocument
superUserNodeApprove
in interface WorkflowDocument
nodeName
- 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)
WorkflowDocument
superUserTakeRequestedAction
in interface WorkflowDocument
actionRequestId
- the action request to satisfy/approveannotation
- the routing annotationWorkflowDocumentActionsService.superUserTakeRequestedAction(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean, String)
public void superUserDisapprove(String annotation)
WorkflowDocument
superUserDisapprove
in interface WorkflowDocument
annotation
- the routing annotationWorkflowDocumentActionsService.superUserDisapprove(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
public void superUserCancel(String annotation)
WorkflowDocument
superUserCancel
in interface WorkflowDocument
annotation
- the routing annotationWorkflowDocumentActionsService.superUserCancel(org.kuali.rice.kew.api.action.DocumentActionParameters, boolean)
public void superUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation)
WorkflowDocument
superUserReturnToPreviousNode
in interface WorkflowDocument
returnPoint
- 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)
WorkflowDocument
complete
in interface WorkflowDocument
annotation
- the document action annotationWorkflowDocumentActionsService.complete(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void logAnnotation(String annotation)
WorkflowDocument
logAnnotation
in interface WorkflowDocument
annotation
- the annotation to logpublic DocumentStatus getStatus()
DocumentContract
getStatus
in interface DocumentContract
public boolean checkStatus(DocumentStatus status)
WorkflowDocument
checkStatus
in interface WorkflowDocument
status
- the status to check
DocumentContract.getStatus()
public boolean isInitiated()
isInitiated
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isSaved()
isSaved
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isEnroute()
isEnroute
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isException()
isException
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isCanceled()
isCanceled
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isDisapproved()
isDisapproved
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isApproved()
isApproved
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isProcessed()
isProcessed
in interface WorkflowDocument
DocumentContract.getStatus()
public boolean isFinal()
isFinal
in interface WorkflowDocument
DocumentContract.getStatus()
public String getPrincipalId()
getPrincipalId
in interface WorkflowDocument
public void switchPrincipal(String principalId)
WorkflowDocument
switchPrincipal
in interface WorkflowDocument
principalId
- the new principalIdpublic void takeGroupAuthority(String annotation, String groupId)
WorkflowDocument
takeGroupAuthority
in interface WorkflowDocument
annotation
- 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)
WorkflowDocument
releaseGroupAuthority
in interface WorkflowDocument
annotation
- the routing annotationgroupId
- the group for which to take authorityWorkflowDocumentActionsService.releaseGroupAuthority(org.kuali.rice.kew.api.action.DocumentActionParameters, String)
public Set<String> getNodeNames()
WorkflowDocument
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 WorkflowDocument.getCurrentNodeNames()
method.
getNodeNames
in interface WorkflowDocument
WorkflowDocument.getActiveRouteNodeInstances()
,
WorkflowDocumentService.getActiveRouteNodeInstances(String)
public Set<String> getCurrentNodeNames()
WorkflowDocument
This 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 WorkflowDocument
WorkflowDocument.getCurrentRouteNodeInstances()
,
WorkflowDocumentService.getCurrentRouteNodeInstances(String)
public void returnToPreviousNode(String nodeName, String annotation)
WorkflowDocument
returnToPreviousNode
in interface WorkflowDocument
nodeName
- the node to return toannotation
- the routing annotationWorkflowDocumentActionsService.returnToPreviousNode(org.kuali.rice.kew.api.action.DocumentActionParameters, org.kuali.rice.kew.api.action.ReturnPoint)
public void returnToPreviousNode(ReturnPoint returnPoint, String annotation)
WorkflowDocument
returnToPreviousNode
in interface WorkflowDocument
returnPoint
- the node to return toannotation
- the routing annotationWorkflowDocument.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)
WorkflowDocument
move
in interface WorkflowDocument
movePoint
- 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()
WorkflowDocument
getActiveRouteNodeInstances
in interface WorkflowDocument
WorkflowDocumentService.getActiveRouteNodeInstances(String)
public List<RouteNodeInstance> getCurrentRouteNodeInstances()
WorkflowDocument
getCurrentRouteNodeInstances
in interface WorkflowDocument
WorkflowDocumentService.getCurrentRouteNodeInstances(String)
public List<RouteNodeInstance> getRouteNodeInstances()
WorkflowDocument
getRouteNodeInstances
in interface WorkflowDocument
WorkflowDocumentService.getRouteNodeInstances(String)
public List<String> getPreviousNodeNames()
WorkflowDocument
getPreviousNodeNames
in interface WorkflowDocument
WorkflowDocumentService.getPreviousRouteNodeNames(String)
public DocumentDetail getDocumentDetail()
WorkflowDocument
getDocumentDetail
in interface WorkflowDocument
WorkflowDocumentService.getDocumentDetail(String)
public void updateDocumentContent(DocumentContentUpdate documentContentUpdate)
WorkflowDocument
updateDocumentContent
in interface WorkflowDocument
documentContentUpdate
- the DocumentContentUpdate to setpublic void placeInExceptionRouting(String annotation)
WorkflowDocument
placeInExceptionRouting
in interface WorkflowDocument
annotation
- the routing annotationWorkflowDocumentActionsService.placeInExceptionRouting(org.kuali.rice.kew.api.action.DocumentActionParameters)
public void setVariable(String name, String value)
WorkflowDocument
setVariable
in interface WorkflowDocument
name
- variable namevalue
- variable valueDocumentContract.getVariables()
public String getVariableValue(String name)
WorkflowDocument
getVariableValue
in interface WorkflowDocument
name
- variable nameDocumentContract.getVariables()
public void setReceiveFutureRequests()
WorkflowDocument
setReceiveFutureRequests
in interface WorkflowDocument
KewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_KEY
,
KewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_VALUE
public void setDoNotReceiveFutureRequests()
WorkflowDocument
setDoNotReceiveFutureRequests
in interface WorkflowDocument
KewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_KEY
,
KewApiConstants.DONT_RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_VALUE
public void setClearFutureRequests()
WorkflowDocument
setClearFutureRequests
in interface WorkflowDocument
KewApiConstants.RECEIVE_FUTURE_REQUESTS_BRANCH_STATE_KEY
,
KewApiConstants.CLEAR_FUTURE_REQUESTS_BRANCH_STATE_VALUE
protected String getFutureRequestsKey(String principalId)
public String getReceiveFutureRequestsValue()
WorkflowDocument
getReceiveFutureRequestsValue
in interface WorkflowDocument
WorkflowDocument.setReceiveFutureRequests()
public String getDoNotReceiveFutureRequestsValue()
WorkflowDocument
getDoNotReceiveFutureRequestsValue
in interface WorkflowDocument
WorkflowDocument.setDoNotReceiveFutureRequests()
public String getClearFutureRequestsValue()
WorkflowDocument
getClearFutureRequestsValue
in interface WorkflowDocument
protected DocumentActionParameters constructDocumentActionParameters(String annotation)
public org.joda.time.DateTime getDateLastModified()
DocumentContract
getDateLastModified
in interface DocumentContract
public org.joda.time.DateTime getDateApproved()
DocumentContract
getDateApproved
in interface DocumentContract
public org.joda.time.DateTime getDateFinalized()
DocumentContract
getDateFinalized
in interface DocumentContract
public String getInitiatorPrincipalId()
DocumentContract
getInitiatorPrincipalId
in interface DocumentContract
public String getRoutedByPrincipalId()
DocumentContract
getRoutedByPrincipalId
in interface DocumentContract
public String getDocumentTypeId()
DocumentContract
getDocumentTypeId
in interface DocumentContract
public String getDocumentHandlerUrl()
DocumentContract
getDocumentHandlerUrl
in interface DocumentContract
public String getApplicationDocumentStatus()
DocumentContract
getApplicationDocumentStatus
in interface DocumentContract
public org.joda.time.DateTime getApplicationDocumentStatusDate()
DocumentContract
getApplicationDocumentStatusDate
in interface DocumentContract
public Map<String,String> getVariables()
DocumentContract
getVariables
in interface DocumentContract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |