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

This session creates and removes step processor enablers. The data for create and update is provided via the StepProcessorEnablerForm.

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

Tests if this user can create step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a StepProcessorEnabler 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 StepProcessorEnabler creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateStepProcessorEnablerWithRecordTypes
Description

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

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

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

Parametersosid.type.Type[]stepProcessorEnablerRecordTypes array of step processor enabler types
Returnosid.workflow.rules.StepProcessorEnablerForm the step processor enabler form
ErrorsNULL_ARGUMENT stepProcessorEnablerRecordTypes 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.
MethodcreateStepProcessorEnabler
Description

Creates a new StepProcessorEnabler.

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

Tests if this user can update step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a StepProcessorEnabler 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 StepProcessorEnabler modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetStepProcessorEnablerFormForUpdate
Description

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

Parametersosid.id.IdstepProcessorEnablerId the Id of the StepProcessorEnabler
Returnosid.workflow.rules.StepProcessorEnablerForm the step processor enabler form
ErrorsNOT_FOUND stepProcessorEnablerId is not found
NULL_ARGUMENT stepProcessorEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateStepProcessorEnabler
Description

Updates an existing step processor enabler.

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

Tests if this user can delete step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a StepProcessorEnabler 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 StepProcessorEnabler deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteStepProcessorEnabler
Description

Deletes a StepProcessorEnabler.

Parametersosid.id.IdstepProcessorEnablerId the Id of the StepProcessorEnabler to remove
ErrorsNOT_FOUND stepProcessorEnablerId not found
NULL_ARGUMENT stepProcessorEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageStepProcessorEnablerAliases
Description

Tests if this user can manage Id aliases for step processor enablers. 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 StepProcessorEnabler aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasStepProcessorEnabler
Description

Adds a Id to a StepProcessorEnabler for the purpose of creating compatibility. The primary Id of the StepProcessorEnabler 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 enabler. it is reassigned to the given step processor enabler Id.

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