OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Interfaceosid.workflow.WorkflowInitiationSession
Implementsosid.OsidSession
Used Byosid.workflow.WorkflowManager
osid.workflow.WorkflowProxyManager
Description

This session provides methods for initiating a workflow.

MethodgetOfficeId
Description

Gets the Office Id associated with this session.

Returnosid.id.Idthe Office Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetOffice
Description

Gets the Office associated with this session.

Returnosid.workflow.Officethe office
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanInitiateWorkflow
Description

Tests if this user can initiate 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 a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer workflow operations to unauthorized users.

Returnbooleanfalse if workflow initiation methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanInitiateWorkflowForProcess
Description

Tests if this user can initiate a workflow in a process. 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 a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer workflow operations to unauthorized users.

Parametersosid.id.IdprocessIda process Id
Returnbooleanfalse if workflow initiation methods are not authorized, true otherwise
ErrorsNULL_ARGUMENTprocessId is null
CompliancemandatoryThis method must be implemented.
MethodgetAvailableWork
Description

Gets the list of available work for this workflow. Available work is Work that is compatible with this Process but not currently part of this Process .

Parametersosid.id.IdprocessIda process Id
Returnosid.workflow.WorkListthe returned Work list
ErrorsNOT_FOUNDprocessId is not found
NULL_ARGUMENTprocessId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodstartWorkflow
Description

Starts a work in the workflow at the initial step of the process.

Parametersosid.id.IdprocessIda process Id
osid.id.IdworkIda work Id
ErrorsNOT_FOUNDprocessId or workId is not found
NULL_ARGUMENTprocessId or workId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.