public interface WorkflowManagementSession extends OsidSession
This session provides methods for managing a workflow.
Modifier and Type | Method and Description |
---|---|
void |
cancelWork(Id processId,
Id workId)
Cancels a work in this process removing it from the workflow.
|
boolean |
canManageWorkflow()
Tests if this user can manage a workflow.
|
boolean |
canManageWorkflowForProcess(Id processId)
Tests if this user can manage a workflow for a process.
|
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
void |
resumeWork(Id processId,
Id workId)
Resumes a work in this process.
|
void |
suspendWork(Id processId,
Id workId)
Suspends a work in this process leaving it at its current step.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOfficeId()
Office
Id
associated with this
session. Office Id
associated with this sessionmandatory
- This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageWorkflow()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer workflow operations to
unauthorized users. false
if workflow management methods are not
authorized, true
otherwisemandatory
- This method must be implemented. boolean canManageWorkflowForProcess(Id processId)
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer workflow operations to
unauthorized users.processId
- a process Id
false
if workflow management methods are not
authorized, true
otherwiseNullArgumentException
- processId
is
null
mandatory
- This method must be implemented. void suspendWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException
processId
- a process Id
workId
- a work Id
NotFoundException
- processId
or
workId
is not foundNullArgumentException
- processId
or
workId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void resumeWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException
processId
- a process Id
workId
- a work Id
NotFoundException
- processId
or
workId
is not foundNullArgumentException
- processId
or
workId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void cancelWork(Id processId, Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException
processId
- a process Id
workId
- a work Id
NotFoundException
- processId
or
workId
is not foundNullArgumentException
- processId
or
workId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.