Interface ManualWorkflowSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, WorkflowManagementSession
This session provides methods for manually moving work through a workflow.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadvanceWork(Id processId, Id workId) Advances work to a next step in the workflow based on the work and the input conditions of the next steps.voidassignWorkToStep(Id processId, Id workId, Id stepId) Manually assigns a work to a step.booleanTests if this user can operate a workflow.booleancanOperateWorkflowForProcess(Id processId) Tests if this user can operate a workflow.getAllValidStepsForWork(Id processId, Id workId) Gets the all valid steps in this process the given work can be manually assigned and includes the steps previous to the work's current step.getValidNextStepsForWork(Id processId, Id workId) Gets the valid next steps in this process in which the given work can be manually advanced.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface WorkflowManagementSession
cancelWork, canManageWorkflow, canManageWorkflowForProcess, getOffice, getOfficeId, resumeWork, suspendWorkModifier and TypeMethodDescriptionvoidcancelWork(Id processId, Id workId) Cancels a work in this process removing it from the workflow.booleanTests if this user can manage a workflow.booleancanManageWorkflowForProcess(Id processId) Tests if this user can manage a workflow for a process.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidresumeWork(Id processId, Id workId) Resumes a work in this process.voidsuspendWork(Id processId, Id workId) Suspends a work in this process leaving it at its current step.
-
Method Details
-
canOperateWorkflow
boolean canOperateWorkflow()Tests if this user can operate a workflow. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer workflow operations to unauthorized users.- Returns:
falseif workflow operation methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canOperateWorkflowForProcess
Tests if this user can operate a workflow. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer workflow operations to unauthorized users.- Parameters:
processId- a processId- Returns:
falseif workflow operation methods are not authorized,trueotherwise- Throws:
NullArgumentException-processIdisnull- Compliance:
mandatory- This method must be implemented.
-
advanceWork
void advanceWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException Advances work to a next step in the workflow based on the work and the input conditions of the next steps.- Parameters:
processId- a processIdworkId- a workId- Throws:
NotFoundException-processIdis not found orworkIdis in processNullArgumentException-processIdorworkIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getValidNextStepsForWork
StepList getValidNextStepsForWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the valid next steps in this process in which the given work can be manually advanced.- Parameters:
processId- a processIdworkId- a workId- Returns:
- the returned
Steplist - Throws:
NotFoundException-processIdis not found orworkIdis in processNullArgumentException-processIdorworkIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAllValidStepsForWork
StepList getAllValidStepsForWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the all valid steps in this process the given work can be manually assigned and includes the steps previous to the work's current step.- Parameters:
processId- a processIdworkId- a workId- Returns:
- the returned
Steplist - Throws:
NotFoundException-processIdis not found orworkIdis in processNullArgumentException-processIdorworkIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
assignWorkToStep
void assignWorkToStep(Id processId, Id workId, Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException Manually assigns a work to a step.- Parameters:
processId- a processIdworkId- a workIdstepId- a stepId- Throws:
NotFoundException-processIdis not found orworkIdorstepIdis not found in this processNullArgumentException-processId, workId, orstepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-