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

This session creates and removes process enablers. The data for create and update is provided via the ProcessEnablerForm.

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

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

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

Parametersosid.type.Type[]processEnablerRecordTypesarray of process enabler record types
Returnboolean true if ProcessEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT processEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetProcessEnablerFormForCreate
Description

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

Parametersosid.type.Type[]processEnablerRecordTypesarray of process enabler record types
Returnosid.workflow.rules.ProcessEnablerFormthe process enabler form
ErrorsNULL_ARGUMENT processEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateProcessEnabler
Description

Creates a new ProcessEnabler.

Parametersosid.workflow.rules.ProcessEnablerFormprocessEnablerFormthe form for this ProcessEnabler
Returnosid.workflow.rules.ProcessEnablerthe new ProcessEnabler
ErrorsILLEGAL_STATE processEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT processEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED processEnablerForm did not originate from getProcessEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateProcessEnablers
Description

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

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

Parametersosid.id.IdprocessEnablerIdthe Id of the ProcessEnabler
Returnosid.workflow.rules.ProcessEnablerFormthe process enabler form
ErrorsNOT_FOUND processEnablerId is not found
NULL_ARGUMENT processEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateProcessEnabler
Description

Updates an existing process enabler.

Parametersosid.workflow.rules.ProcessEnablerFormprocessEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE processEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT processEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED processEnablerForm did not originate from getProcessEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteProcessEnablers
Description

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

Deletes a ProcessEnabler.

Parametersosid.id.IdprocessEnablerIdthe Id of the ProcessEnabler to remove
ErrorsNOT_FOUND processEnablerId not found
NULL_ARGUMENT processEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageProcessEnablerAliases
Description

Tests if this user can manage Id aliases for process 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 ProcessEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasProcessEnabler
Description

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

Parametersosid.id.IdprocessEnablerIdthe Id of a ProcessEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND processEnablerId not found
NULL_ARGUMENT processEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.