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

This session creates and removes step processors. The data for create and update is provided via the StepProcessorForm.

MethodgetOfficeId
Description

Gets the Office Id associated with this session.

Returnosid.id.Id the Office Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOffice
Description

Gets the Office associated with this session.

Returnosid.workflow.Office the office
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateStepProcessor
Description

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

Returnboolean false if StepProcessor creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateStepProcessorWithRecordTypes
Description

Tests if this user can create a single StepProcessor using the desired record types. While WorkflowRulesManager.getStepProcessorRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific StepProcessor. Providing an empty array tests if a StepProcessor can be created with no records.

Parametersosid.type.Type[]stepProcessorRecordTypes array of step processor record types
Returnboolean true if StepProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT stepProcessorRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetStepProcessorFormForCreate
Description

Gets the step processor form for creating new step processors. A new form should be requested for each create transaction.

Parametersosid.type.Type[]stepProcessorRecordTypes array of step processor record types
Returnosid.workflow.rules.StepProcessorForm the step processor form
ErrorsNULL_ARGUMENT stepProcessorRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateStepProcessor
Description

Creates a new StepProcessor.

Parametersosid.workflow.rules.StepProcessorFormstepProcessorForm the form for this StepProcessor
Returnosid.workflow.rules.StepProcessor the new StepProcessor
ErrorsILLEGAL_STATE stepProcessorForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT stepProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED stepProcessorForm did not originate from getStepProcessorFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateStepProcessors
Description

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

Returnboolean false if StepProcessor modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetStepProcessorFormForUpdate
Description

Gets the step processor form for updating an existing step processor. A new step processor form should be requested for each update transaction.

Parametersosid.id.IdstepProcessorId the Id of the StepProcessor
Returnosid.workflow.rules.StepProcessorForm the step processor form
ErrorsNOT_FOUND stepProcessorId is not found
NULL_ARGUMENT stepProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateStepProcessor
Description

Updates an existing step processor.

Parametersosid.workflow.rules.StepProcessorFormstepProcessorForm the form containing the elements to be updated
ErrorsILLEGAL_STATE stepProcessorForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT stepProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED stepProcessorForm did not originate from getStepProcessorFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteStepProcessors
Description

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

Returnboolean false if StepProcessor deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteStepProcessor
Description

Deletes a StepProcessor.

Parametersosid.id.IdstepProcessorId the Id of the StepProcessor to remove
ErrorsNOT_FOUND stepProcessorId not found
NULL_ARGUMENT stepProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageStepProcessorAliases
Description

Tests if this user can manage Id aliases for step processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if StepProcessor aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasStepProcessor
Description

Adds a Id to a StepProcessor for the purpose of creating compatibility. The primary Id of the StepProcessor is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another step processor. it is reassigned to the given step processor Id.

Parametersosid.id.IdstepProcessorId the Id of a StepProcessor
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND stepProcessorId not found
NULL_ARGUMENT stepProcessorId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.