OSID Logo
OSID Specifications
workflow rules package
Version 3.0.0
Interfaceosid.workflow.rules.ProcessConstrainerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.workflow.rules.WorkflowRulesManager
osid.workflow.rules.WorkflowRulesProxyManager
Description

This session provides methods to apply ProcessConstrainers to Processes . Multiple ProcessConstrainers applied to an Process may be sequenced such that the first positive evaluation results in the ProcessConstrainer used.

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

Tests if this user can alter process constrainer/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.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignProcessConstrainerToProcess
Description

Adds an existing ProcessConstrainer to a Process .

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer
osid.id.IdprocessIdthe Id of the Process
ErrorsALREADY_EXISTSprocessConstrainerId already applied to processId
NOT_FOUNDprocessConstrainerId or processId not found
NULL_ARGUMENTprocessConstrainerId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignProcessConstrainerFromProcess
Description

Removes an existing ProcessConstrainer from a Process .

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer
osid.id.IdprocessIdthe Id of the Process
ErrorsNOT_FOUNDprocessConstrainerId or processId not found or processConstrainerId already applied to processId
NULL_ARGUMENTprocessConstrainerId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceProcessConstrainers
Description

Tests if this user can order ProcessConstrainers . 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.

Returnbooleanfalse if ProcessConstrainer ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveProcessConstrainerAhead
Description

Reorders process constrainers for a process by moving the specified process constrainer in front of a reference process constrainer.

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer
osid.id.IdprocessIdthe Id of the Process
osid.id.IdreferenceIdthe reference process constrainer Id
ErrorsNOT_FOUNDprocessConstrainerId, processId , or referenceId not found or, processConstrainerId or referenceId not related to processId
NULL_ARGUMENTprocessConstrainerId, processId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveProcessConstrainerBehind
Description

Reorders process constrainers for a process by moving the specified process constrainer behind a reference process constrainer.

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer
osid.id.IdprocessIdthe Id of the Process
osid.id.IdreferenceIdthe reference process constrainer Id
ErrorsNOT_FOUNDprocessConstrainerId, processId , or referenceId not found or, processConstrainerId or referenceId not related to processId
NULL_ARGUMENTprocessConstrainerId, processId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderProcessConstrainers
Description

Reorders a set of process constrainers for a process.

Parametersosid.id.Id[]processConstrainerIdsthe Ids for a set of ProcessConstrainers
osid.id.IdprocessIdthe Id of the Process
ErrorsNOT_FOUNDprocessId not found or, a processConstrainerId not related to processId
NULL_ARGUMENTprocessConstrainerIds or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.