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

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

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

The delete operations delete ProcessConstrainers . To unmap a ProcessConstrainer from the current Office , the ProcessConstrainerOfficeAssignmentSession should be used. These delete operations attempt to remove the ProcessConstrainer 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.
MethodcanCreateProcessConstrainers
Description

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

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

Parametersosid.type.Type[]processConstrainerRecordTypesarray of process constrainer record types
Returnbooleantrue if ProcessConstrainer creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTprocessConstrainerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetProcessConstrainerFormForCreate
Description

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

Parametersosid.type.Type[]processConstrainerRecordTypesarray of process constrainer record types
Returnosid.workflow.rules.ProcessConstrainerFormthe process constrainer form
ErrorsNULL_ARGUMENTprocessConstrainerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateProcessConstrainer
Description

Creates a new ProcessConstrainer .

Parametersosid.workflow.rules.ProcessConstrainerFormprocessConstrainerFormthe form for this ProcessConstrainer
Returnosid.workflow.rules.ProcessConstrainerthe new ProcessConstrainer
ErrorsILLEGAL_STATEprocessConstrainerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTprocessConstrainerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessConstrainerForm did not originate from getProcessConstrainerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateProcessConstrainers
Description

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

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

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer
Returnosid.workflow.rules.ProcessConstrainerFormthe process form
ErrorsNOT_FOUNDprocessConstrainerId is not found
NULL_ARGUMENTprocessConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateProcessConstrainer
Description

Updates an existing process constrainer.

Parametersosid.workflow.rules.ProcessConstrainerFormprocessConstrainerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEprocessConstrainerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTprocessConstrainerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessConstrainerForm did not originate from getProcessConstrainerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteProcessConstrainers
Description

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

Deletes a ProcessConstrainer .

Parametersosid.id.IdprocessConstrainerIdthe Id of the ProcessConstrainer to remove
ErrorsNOT_FOUNDprocessConstrainerId not found
NULL_ARGUMENTprocessConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageProcessConstrainerAliases
Description

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

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

Parametersosid.id.IdprocessConstrainerIdthe Id of a ProcessConstrainer
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDprocessConstrainerId not found
NULL_ARGUMENTprocessConstrainerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.