OSID Logo
OSID Specifications
workflow rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.workflow.rules.ProcessEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply ProcessEnablers to Processs. A Process with multiple ProcessEnablers means any positive rule evaluation across the constrainers result in an accessible Process.

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.
MethodcanAssignProcessEnablers
Description

Tests if this user can alter process enabler/process mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignProcessEnablerToProcess
Description

Adds an existing ProcessEnabler to a Process.

Parametersosid.id.IdprocessEnablerIdthe Id of the ProcessEnabler
osid.id.IdprocessIdthe Id of the Process
ErrorsALREADY_EXISTS processEnablerId is already applied to processId
NOT_FOUND processEnablerId or processId not found
NULL_ARGUMENT processEnablerId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignProcessEnablerFromProcess
Description

Removes a ProcessEnabler from a Process.

Parametersosid.id.IdprocessEnablerIdthe Id of the ProcessEnabler
osid.id.IdprocessIdthe Id of the Process
ErrorsNOT_FOUND processEnablerId or processId not found or processEnablerId not applied to processId
NULL_ARGUMENT processEnablerId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceProcessEnablers
Description

Tests if this user can order ProcessEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if ProcessEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveProcessEnablerAhead
Description

Reorders process enablers for a process by moving the specified process enabler in front of a reference process enabler.

Parametersosid.id.IdprocessEnablerIdthe Id of a ProcessEnabler
osid.id.IdprocessIdthe Id of a Process
osid.id.IdreferenceIdthe reference process enabler Id
ErrorsNOT_FOUND processEnablerId, processId, or referenceId not found or, processEnablerId or referenceId not related to processId
NULL_ARGUMENT processEnablerId, processId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveProcessEnablerBehind
Description

Reorders process enablers for a process by moving the specified process enabler behind a reference process enabler.

Parametersosid.id.IdprocessEnablerIdthe Id of a ProcessEnabler
osid.id.IdprocessIdthe Id of a Process
osid.id.IdreferenceIdthe reference process enabler Id
ErrorsNOT_FOUND processEnablerId, processId, or referenceId not found or, processEnablerId or referenceId not related to processId
NULL_ARGUMENT processEnablerId, processId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderProcessEnablers
Description

Reorders a set of process enablers for a process.

Parametersosid.id.Id[]processEnablerIdsthe Ids for a set of ProcessEnablers
osid.id.IdprocessIdthe Id of a Process
ErrorsNOT_FOUND processId not found or, an processEnablerId not related to processId
NULL_ARGUMENT processEnabelrIds or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.