OSID Logo
OSID Specifications
workflow rules package
Version 3.1.0
Interfaceosid.workflow.rules.ProcessEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.workflow.rules.WorkflowRulesManager
osid.workflow.rules.WorkflowRulesProxyManager
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.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.
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
Compliancemandatory This 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[]processEnablerRecordTypes array of process enabler record types
Returnboolean true if ProcessEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT processEnablerRecordTypes is null
Compliancemandatory This 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[]processEnablerRecordTypes array of process enabler record types
Returnosid.workflow.rules.ProcessEnablerForm the process enabler form
ErrorsNULL_ARGUMENT processEnablerRecordTypes 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.
MethodcreateProcessEnabler
Description

Creates a new ProcessEnabler.

Parametersosid.workflow.rules.ProcessEnablerFormprocessEnablerForm the form for this ProcessEnabler
Returnosid.workflow.rules.ProcessEnabler the new ProcessEnabler
ErrorsILLEGAL_STATE processEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT processEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED processEnablerForm did not originate from getProcessEnablerFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdprocessEnablerId the Id of the ProcessEnabler
Returnosid.workflow.rules.ProcessEnablerForm the process enabler form
ErrorsNOT_FOUND processEnablerId is not found
NULL_ARGUMENT processEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateProcessEnabler
Description

Updates an existing process enabler.

Parametersosid.workflow.rules.ProcessEnablerFormprocessEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE processEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT processEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED processEnablerForm did not originate from getProcessEnablerFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteProcessEnabler
Description

Deletes a ProcessEnabler.

Parametersosid.id.IdprocessEnablerId the Id of the ProcessEnabler to remove
ErrorsNOT_FOUND processEnablerId not found
NULL_ARGUMENT processEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdprocessEnablerId the Id of a ProcessEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND processEnablerId not found
NULL_ARGUMENT processEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.