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

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

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

The delete operations delete ProcessProcessors . To unmap a ProcessProcessor from the current Office , the ProcessProcessorOfficeAssignmentSession should be used. These delete operations attempt to remove the ProcessProcessor 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.
MethodcanCreateProcessProcessors
Description

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

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

Parametersosid.type.Type[]processProcessorRecordTypesarray of process processor record types
Returnbooleantrue if ProcessProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTprocessProcessorRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetProcessProcessorFormForCreate
Description

Gets the process processor form for creating new process processors. A new form should be requested for each create transaction.

Parametersosid.type.Type[]processProcessorRecordTypesarray of process processor record types
Returnosid.workflow.rules.ProcessProcessorFormthe process processor form
ErrorsNULL_ARGUMENTprocessProcessorRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateProcessProcessor
Description

Creates a new ProcessProcessor .

Parametersosid.workflow.rules.ProcessProcessorFormprocessProcessorFormthe form for this ProcessProcessor
Returnosid.workflow.rules.ProcessProcessorthe new ProcessProcessor
ErrorsILLEGAL_STATEprocessProcessorForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTprocessProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessProcessorForm did not originate from getProcessProcessorFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateProcessProcessors
Description

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

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

Parametersosid.id.IdprocessProcessorIdthe Id of the ProcessProcessor
Returnosid.workflow.rules.ProcessProcessorFormthe process processor form
ErrorsNOT_FOUNDprocessProcessorId is not found
NULL_ARGUMENTprocessProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateProcessProcessor
Description

Updates an existing process processor.

Parametersosid.workflow.rules.ProcessProcessorFormprocessProcessorFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEprocessProcessorForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTprocessProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessProcessorForm did not originate from getProcessProcessorFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteProcessProcessors
Description

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

Deletes a ProcessProcessor .

Parametersosid.id.IdprocessProcessorIdthe Id of the ProcessProcessor to remove
ErrorsNOT_FOUNDprocessProcessorId not found
NULL_ARGUMENTprocessProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageProcessProcessorAliases
Description

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

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

Parametersosid.id.IdprocessProcessorIdthe Id of a ProcessProcessor
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDprocessProcessorId not found
NULL_ARGUMENTprocessProcessorId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.