OSID Logo
OSID Specifications
workflow event package
Version 3.0.0
Interfaceosid.workflow.event.WorkflowEventAdminSession
Implementsosid.OsidSession
Used Byosid.workflow.event.WorkflowEventManager
osid.workflow.event.WorkflowEventProxyManager
Description

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

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

The delete operations delete WorkflowEvents . To unmap a WorkflowEvent from the current Office , the WorkflowEventOfficeAssignmentSession should be used. These delete operations attempt to remove the WorkflowEvent 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.
MethodcanCreateWorkflowEvents
Description

Tests if this user can create WorkflowEvents . A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a WorkflowEvent will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnbooleanfalse if WorkflowEvent creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateWorkflowEventWithRecordTypes
Description

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

Parametersosid.type.Type[]workflowEventRecordTypesarray of workflow event record types
Returnbooleantrue if WorkflowEvent creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTworkflowEventRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetWorkflowEventFormForCreate
Description

Gets the workflow event form for creating new workflow events. A new form should be requested for each create transaction.

Parametersosid.type.Type[]workflowEventRecordTypesarray of workflow event record types
Returnosid.workflow.event.WorkflowEventFormthe workflow event form
ErrorsNULL_ARGUMENTworkflowEventRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateWorkflowEvent
Description

Creates a new WorkflowEvent .

Parametersosid.workflow.event.WorkflowEventFormworkflowEventFormthe form for this WorkflowEvent
Returnosid.workflow.event.WorkflowEventthe new WorkflowEvent
ErrorsILLEGAL_STATEworkflowEventForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTworkflowEventForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDworkflowEventForm did not originate from getWorkflowEventFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateWorkflowEvents
Description

Tests if this user can update WorkflowEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a WorkflowEvent 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.

Returnbooleanfalse if WorkflowEvent modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetWorkflowEventFormForUpdate
Description

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

Parametersosid.id.IdworkflowEventIdthe Id of the WorkflowEvent
Returnosid.workflow.event.WorkflowEventFormthe workflow event form
ErrorsNOT_FOUNDworkflowEventId is not found
NULL_ARGUMENTworkflowEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateWorkflowEvent
Description

Updates an existing workflow event.

Parametersosid.workflow.event.WorkflowEventFormworkflowEventFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEworkflowEventForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTworkflowEventForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDworkflowEventForm did not originate from getWorkflowEventFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteWorkflowEvents
Description

Tests if this user can delete WorkflowEvents . A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a WorkflowEvent will result in a PERMISSION_DENIED. Th is is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnbooleanfalse if WorkflowEvent deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteWorkflowEvent
Description

Deletes a WorkflowEvent .

Parametersosid.id.IdworkflowEventIdthe Id of the WorkflowEvent to remove
ErrorsNOT_FOUNDworkflowEventId not found
NULL_ARGUMENTworkflowEventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageWorkflowEventAliases
Description

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

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

Parametersosid.id.IdworkflowEventIdthe Id of a WorkflowEvent
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDworkflowEventId not found
NULL_ARGUMENTworkflowEventId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.