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

This session provides methods to apply StepConstrainers to Steps. A Step with multiple StepConstrainers means any positive rule evaluation across the constrainers result in an accessible Step.

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

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

Adds an existing StepConstrainer to a Step.

Parametersosid.id.IdstepConstrainerIdthe Id of the StepConstrainer
osid.id.IdstepIdthe Id of the Step
ErrorsALREADY_EXISTS stepConstrainerId is already applied to stepId
NOT_FOUND stepConstrainerId or stepId not found
NULL_ARGUMENT stepConstrainerId or stepId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignStepConstrainerFromStep
Description

Removes a StepConstrainer from a Step.

Parametersosid.id.IdstepConstrainerIdthe Id of the StepConstrainer
osid.id.IdstepIdthe Id of the Step
ErrorsNOT_FOUND stepConstrainerId or stepId not found or stepConstrainerId not applied to stepId
NULL_ARGUMENT stepConstrainerId or stepId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceStepConstrainers
Description

Tests if this user can order StepConstrainers. 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 StepConstrainer ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveStepConstrainerAhead
Description

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

Parametersosid.id.IdstepConstrainerIdthe Id of a StepConstrainer
osid.id.IdstepIdthe Id of a Step
osid.id.IdreferenceIdthe reference step constrainer Id
ErrorsNOT_FOUND stepConstrainerId, stepId or referenceId not found or, stepConstrainerId or referenceId not related to stepId
NULL_ARGUMENT stepConstrainerId, stepId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveStepConstrainerBehind
Description

Reorders step constrainer for a step by moving the specified step constrainer behind a reference step constrainer.

Parametersosid.id.IdstepConstrainerIdthe Id of a StepConstrainer
osid.id.IdstepIdthe Id of a Step
osid.id.IdreferenceIdthe reference step constrainer Id
ErrorsNOT_FOUND stepConstrainerId, stepId or referenceId not found or, stepConstrainerId or referenceId not related to stepId
NULL_ARGUMENT stepConstrainerId, stepId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderStepConstrainers
Description

Reorders a set of step constrainers for a step.

Parametersosid.id.Id[]stepConstrainerIdsthe Ids for a set of StepConstrainers
osid.id.IdstepIdthe Id of a StepConstrainer
ErrorsNOT_FOUND stepId not found or, a stepConstrainerId not related to stepId
NULL_ARGUMENT stepConstrainerIds or stepId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.