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

This session creates, updates, and deletes ProcessConstrainerEnablers . 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 ProcessConstrainerEnabler , a ProcessConstrainerEnablerForm is requested using getProcessConstrainerEnablerFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned ProcessConstrainerEnablerForm 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 ProcessConstrainerEnablerForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each ProcessConstrainerEnablerForm corresponds to an attempted transaction.

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

The delete operations delete ProcessConstrainerEnablers . To unmap a ProcessConstrainerEnabler from the current Office , the ProcessConstrainerEnablerOfficeAssignmentSession should be used. These delete operations attempt to remove the ProcessConstrainerEnabler 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.
MethodcanCreateProcessConstrainerEnablers
Description

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

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

Parametersosid.type.Type[]processConstrainerEnablerRecordTypesarray of process constrainer enabler record types
Returnbooleantrue if ProcessConstrainerEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTprocessConstrainerEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetProcessConstrainerEnablerFormForCreate
Description

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

Parametersosid.type.Type[]processConstrainerEnablerRecordTypesarray of process constrainer enabler record types
Returnosid.workflow.rules.ProcessConstrainerEnablerFormthe process constrainer enabler form
ErrorsNULL_ARGUMENTprocessConstrainerEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateProcessConstrainerEnabler
Description

Creates a new ProcessConstrainerEnabler .

Parametersosid.workflow.rules.ProcessConstrainerEnablerFormprocessConstrainerEnablerFormthe form for this ProcessConstrainerEnabler
Returnosid.workflow.rules.ProcessConstrainerEnablerthe new ProcessConstrainerEnabler
ErrorsILLEGAL_STATEprocessConstrainerEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTprocessConstrainerEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessConstrainerEnablerForm did not originate from getProcessConstrainerEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateProcessConstrainerEnablers
Description

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

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

Parametersosid.id.IdprocessConstrainerEnablerIdthe Id of the ProcessConstrainerEnabler
Returnosid.workflow.rules.ProcessConstrainerEnablerFormthe process constrainer enabler form
ErrorsNOT_FOUNDprocessConstrainerEnablerId is not found
NULL_ARGUMENTprocessConstrainerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateProcessConstrainerEnabler
Description

Updates an existing process constrainer enabler.

Parametersosid.workflow.rules.ProcessConstrainerEnablerFormprocessConstrainerEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEprocessConstrainerEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTprocessConstrainerEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessConstrainerEnablerForm did not originate from getProcessConstrainerEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteProcessConstrainerEnablers
Description

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

Deletes a ProcessConstrainerEnabler .

Parametersosid.id.IdprocessConstrainerEnablerIdthe Id of the ProcessConstrainerEnabler to remove
ErrorsNOT_FOUNDprocessConstrainerEnablerId not found
NULL_ARGUMENTprocessConstrainerEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageProcessConstrainerEnablerAliases
Description

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

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

Parametersosid.id.IdprocessConstrainerEnablerIdthe Id of a ProcessConstrainerEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDprocessConstrainerEnablerId not found
NULL_ARGUMENTprocessConstrainerEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.