|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowDocument
TODO .. TODO - it is intended that operations against document data on this are only "flushed" when an action is performed...
This class is *not* thread safe.
Method Summary | |
---|---|
void |
acknowledge(String annotation)
|
void |
addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
|
void |
addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
|
void |
adHocToGroup(ActionRequestType actionRequested,
String annotation,
String targetGroupId,
String responsibilityDescription,
boolean forceAction)
|
void |
adHocToGroup(ActionRequestType actionRequested,
String nodeName,
String annotation,
String targetGroupId,
String responsibilityDescription,
boolean forceAction)
|
void |
adHocToGroup(ActionRequestType actionRequested,
String nodeName,
String annotation,
String targetGroupId,
String responsibilityDescription,
boolean forceAction,
String requestLabel)
|
void |
adHocToGroup(AdHocToGroup adHocToGroup,
String annotation)
|
void |
adHocToPrincipal(ActionRequestType actionRequested,
String annotation,
String targetPrincipalId,
String responsibilityDescription,
boolean forceAction)
|
void |
adHocToPrincipal(ActionRequestType actionRequested,
String nodeName,
String annotation,
String targetPrincipalId,
String responsibilityDescription,
boolean forceAction)
|
void |
adHocToPrincipal(ActionRequestType actionRequested,
String nodeName,
String annotation,
String targetPrincipalId,
String responsibilityDescription,
boolean forceAction,
String requestLabel)
|
void |
adHocToPrincipal(AdHocToPrincipal adHocToPrincipal,
String annotation)
|
void |
approve(String annotation)
|
void |
blanketApprove(String annotation)
|
void |
blanketApprove(String annotation,
String... nodeNames)
|
void |
cancel(String annotation)
|
boolean |
checkStatus(DocumentStatus status)
|
void |
clearAttributeContent()
|
void |
clearAttributeDefinitions()
|
void |
clearSearchableContent()
|
void |
clearSearchableDefinitions()
|
void |
complete(String annotation)
|
void |
delete()
TODO - be sure to mention that once this document is deleted, this api effectively becomes "dead" when you try to execute any document operation |
void |
disapprove(String annotation)
|
void |
fyi()
|
void |
fyi(String annotation)
|
List<ActionTaken> |
getActionsTaken()
|
List<RouteNodeInstance> |
getActiveRouteNodeInstances()
|
String |
getApplicationContent()
|
String |
getApplicationDocumentId()
|
String |
getAttributeContent()
|
List<WorkflowAttributeDefinition> |
getAttributeDefinitions()
|
String |
getClearFutureRequestsValue()
|
Set<String> |
getCurrentNodeNames()
Returns the names of the nodes at which the document is currently at in it's route path. |
List<RouteNodeInstance> |
getCurrentRouteNodeInstances()
|
org.joda.time.DateTime |
getDateCreated()
|
Document |
getDocument()
|
DocumentContent |
getDocumentContent()
|
DocumentDetail |
getDocumentDetail()
|
String |
getDocumentId()
|
String |
getDocumentTypeName()
|
String |
getDoNotReceiveFutureRequestsValue()
|
Set<String> |
getNodeNames()
Returns the names of the route nodes on the document which are currently active. |
List<String> |
getPreviousNodeNames()
|
String |
getPrincipalId()
Returns the principalId with which this WorkflowDocument was constructed |
String |
getReceiveFutureRequestsValue()
|
RequestedActions |
getRequestedActions()
|
List<ActionRequest> |
getRootActionRequests()
|
List<RouteNodeInstance> |
getRouteNodeInstances()
|
List<WorkflowAttributeDefinition> |
getSearchableDefinitions()
|
DocumentStatus |
getStatus()
|
String |
getTitle()
|
ValidActions |
getValidActions()
|
String |
getVariableValue(String name)
|
boolean |
isAcknowledgeRequested()
|
boolean |
isApprovalRequested()
|
boolean |
isApproved()
Indicates if the document is in the Processed or Finalized state. |
boolean |
isBlanketApproveCapable()
|
boolean |
isCanceled()
Indicates if the document is in the canceled state or not. |
boolean |
isCompletionRequested()
|
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()
|
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()
|
boolean |
isSaved()
Indicates if the document is in the saved state or not. |
boolean |
isValidAction(ActionType actionType)
|
void |
logAnnotation(String annotation)
|
void |
move(MovePoint movePoint,
String annotation)
|
void |
placeInExceptionRouting(String annotation)
|
void |
refresh()
|
void |
releaseGroupAuthority(String annotation,
String groupId)
|
void |
removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
|
void |
removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
|
void |
returnToPreviousNode(ReturnPoint returnPoint,
String annotation)
|
void |
returnToPreviousNode(String nodeName,
String annotation)
|
void |
revokeAdHocRequestById(String actionRequestId,
String annotation)
|
void |
revokeAdHocRequests(AdHocRevoke revoke,
String annotation)
|
void |
revokeAllAdHocRequests(String annotation)
|
void |
route(String annotation)
|
void |
saveDocument(String annotation)
|
void |
saveDocumentData()
|
void |
setApplicationContent(String applicationContent)
|
void |
setApplicationDocumentId(String applicationDocumentId)
|
void |
setApplicationDocumentStatus(String applicationDocumentStatus)
|
void |
setAttributeContent(String attributeContent)
|
void |
setClearFutureRequests()
|
void |
setDoNotReceiveFutureRequests()
|
void |
setReceiveFutureRequests()
|
void |
setSearchableContent(String searchableContent)
|
void |
setTitle(String title)
|
void |
setVariable(String name,
String value)
|
void |
superUserBlanketApprove(String annotation)
|
void |
superUserCancel(String annotation)
|
void |
superUserDisapprove(String annotation)
|
void |
superUserNodeApprove(String nodeName,
String annotation)
|
void |
superUserReturnToPreviousNode(ReturnPoint returnPoint,
String annotation)
|
void |
superUserTakeRequestedAction(String actionRequestId,
String annotation)
|
void |
switchPrincipal(String principalId)
|
void |
takeGroupAuthority(String annotation,
String groupId)
|
void |
updateDocumentContent(DocumentContentUpdate documentContentUpdate)
|
List<WorkflowAttributeValidationError> |
validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
|
Methods inherited from interface org.kuali.rice.kew.api.document.DocumentContract |
---|
getApplicationDocumentStatus, getApplicationDocumentStatusDate, getDateApproved, getDateFinalized, getDateLastModified, getDocumentHandlerUrl, getDocumentTypeId, getInitiatorPrincipalId, getRoutedByPrincipalId, getVariables |
Method Detail |
---|
String getDocumentId()
getDocumentId
in interface DocumentContract
Document getDocument()
DocumentContent getDocumentContent()
String getApplicationContent()
void setApplicationContent(String applicationContent)
void setAttributeContent(String attributeContent)
void clearAttributeContent()
String getAttributeContent()
void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
void removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
void clearAttributeDefinitions()
List<WorkflowAttributeDefinition> getAttributeDefinitions()
void setSearchableContent(String searchableContent)
void addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
void removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
void clearSearchableDefinitions()
void clearSearchableContent()
List<WorkflowAttributeDefinition> getSearchableDefinitions()
List<WorkflowAttributeValidationError> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
List<ActionRequest> getRootActionRequests()
List<ActionTaken> getActionsTaken()
void setApplicationDocumentId(String applicationDocumentId)
String getApplicationDocumentId()
getApplicationDocumentId
in interface DocumentContract
org.joda.time.DateTime getDateCreated()
getDateCreated
in interface DocumentContract
String getTitle()
getTitle
in interface DocumentContract
ValidActions getValidActions()
RequestedActions getRequestedActions()
void saveDocument(String annotation)
void route(String annotation)
void disapprove(String annotation)
void approve(String annotation)
void cancel(String annotation)
void blanketApprove(String annotation)
void blanketApprove(String annotation, String... nodeNames)
void saveDocumentData()
void setApplicationDocumentStatus(String applicationDocumentStatus)
void acknowledge(String annotation)
void fyi(String annotation)
void fyi()
void delete()
void refresh()
void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel)
void adHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation)
void adHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel)
void adHocToGroup(AdHocToGroup adHocToGroup, String annotation)
void revokeAdHocRequestById(String actionRequestId, String annotation)
void revokeAdHocRequests(AdHocRevoke revoke, String annotation)
void revokeAllAdHocRequests(String annotation)
void setTitle(String title)
String getDocumentTypeName()
getDocumentTypeName
in interface DocumentContract
boolean isCompletionRequested()
boolean isApprovalRequested()
boolean isAcknowledgeRequested()
boolean isFYIRequested()
boolean isBlanketApproveCapable()
boolean isRouteCapable()
boolean isValidAction(ActionType actionType)
void superUserBlanketApprove(String annotation)
void superUserNodeApprove(String nodeName, String annotation)
void superUserTakeRequestedAction(String actionRequestId, String annotation)
void superUserDisapprove(String annotation)
void superUserCancel(String annotation)
void superUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation)
void complete(String annotation)
void logAnnotation(String annotation)
DocumentStatus getStatus()
getStatus
in interface DocumentContract
boolean checkStatus(DocumentStatus status)
boolean isInitiated()
boolean isSaved()
boolean isEnroute()
boolean isException()
boolean isCanceled()
boolean isDisapproved()
boolean isApproved()
boolean isProcessed()
boolean isFinal()
String getPrincipalId()
void switchPrincipal(String principalId)
void takeGroupAuthority(String annotation, String groupId)
void releaseGroupAuthority(String annotation, String groupId)
Set<String> getNodeNames()
If the document has completed it's 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.
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).
void returnToPreviousNode(String nodeName, String annotation)
void returnToPreviousNode(ReturnPoint returnPoint, String annotation)
void move(MovePoint movePoint, String annotation)
List<RouteNodeInstance> getActiveRouteNodeInstances()
List<RouteNodeInstance> getCurrentRouteNodeInstances()
List<RouteNodeInstance> getRouteNodeInstances()
List<String> getPreviousNodeNames()
DocumentDetail getDocumentDetail()
void updateDocumentContent(DocumentContentUpdate documentContentUpdate)
void placeInExceptionRouting(String annotation)
void setVariable(String name, String value)
String getVariableValue(String name)
void setReceiveFutureRequests()
void setDoNotReceiveFutureRequests()
void setClearFutureRequests()
String getReceiveFutureRequestsValue()
String getDoNotReceiveFutureRequestsValue()
String getClearFutureRequestsValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |