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

This session creates, updates, and deletes StepEnablers . The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a StepEnabler , a StepEnablerForm is requested using getStepEnablerFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned StepEnablerForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the StepEnablerForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each StepEnablerForm corresponds to an attempted transaction.

For updates, StepEnablerForms are requested to the StepEnabler Id that is to be updated using getStepEnablerFormForUpdate() . Similarly, the StepEnablerForm has metadata about the data that can be updated and it can perform validation before submitting the update. The StepEnablerForm can only be used once for a successful update and cannot be reused.

The delete operations delete StepEnablers . To unmap a StepEnabler from the current Office , the StepEnablerOfficeAssignmentSession should be used. These delete operations attempt to remove the StepEnabler itself thus removing it from all known Office catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id .

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

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

Returnbooleanfalse if StepEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateStepEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]stepEnablerRecordTypesarray of step enabler record types
Returnbooleantrue if StepEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTstepEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetStepEnablerFormForCreate
Description

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

Parametersosid.type.Type[]stepEnablerRecordTypesarray of step enabler record types
Returnosid.workflow.rules.StepEnablerFormthe step enabler form
ErrorsNULL_ARGUMENTstepEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateStepEnabler
Description

Creates a new StepEnabler .

Parametersosid.workflow.rules.StepEnablerFormstepEnablerFormthe form for this StepEnabler
Returnosid.workflow.rules.StepEnablerthe new StepEnabler
ErrorsILLEGAL_STATEstepEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTstepEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDstepEnablerForm did not originate from getStepEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateStepEnablers
Description

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

Returnbooleanfalse if StepEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetStepEnablerFormForUpdate
Description

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

Parametersosid.id.IdstepEnablerIdthe Id of the StepEnabler
Returnosid.workflow.rules.StepEnablerFormthe step enabler form
ErrorsNOT_FOUNDstepEnablerId is not found
NULL_ARGUMENTstepEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateStepEnabler
Description

Updates an existing step enabler.

Parametersosid.workflow.rules.StepEnablerFormstepEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEstepEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTstepEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDstepEnablerForm did not originate from getStepEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteStepEnablers
Description

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

Returnbooleanfalse if StepEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteStepEnabler
Description

Deletes a StepEnabler .

Parametersosid.id.IdstepEnablerIdthe Id of the StepEnabler to remove
ErrorsNOT_FOUNDstepEnablerId not found
NULL_ARGUMENTstepEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageStepEnablerAliases
Description

Tests if this user can manage Id aliases for StepEnablers 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.

Returnbooleanfalse if StepEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasStepEnabler
Description

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

Parametersosid.id.IdstepEnablerIdthe Id of a StepEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDstepEnablerId not found
NULL_ARGUMENTstepEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.