OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Release Candidate Preview
Interfaceosid.workflow.WorkflowEvent
Implementsosid.OsidObject
Description

A WorkflowEvent is a change in a workflow.

MethodgetTimestamp
Description

Gets the timestamp of this event.

Returnosid.calendaring.DateTimethe timestamp
CompliancemandatoryThis method must be implemented.
MethodgetProcessId
Description

Gets the Id of the process.

Returnosid.id.Idthe process Id
CompliancemandatoryThis method must be implemented.
MethodgetProcess
Description

Gets the process.

Returnosid.workflow.Processthe process
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetWorkerId
Description

Gets the Id of the resource that caused this event.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetWorker
Description

Gets the resource that caused this event.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetWorkingAgentId
Description

Gets the Id of the agent that caused this event.

Returnosid.id.Idthe agent Id
CompliancemandatoryThis method must be implemented.
MethodgetWorkingAgent
Description

Gets the agent that caused this event.

Returnosid.authentication.Agentthe agent
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetWorkId
Description

Gets the Id of the work.

Returnosid.id.Idthe work Id
CompliancemandatoryThis method must be implemented.
MethodgetWork
Description

Gets the work.

Returnosid.workflow.Workthe work
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethoddidCancel
Description

Tests if this work event indicates the work has been canceled the workflow and is not associated with a step at the time of this event.

Returnboolean true if the work canceled, false if the work is associated with a step in this event
CompliancemandatoryThis method must be implemented.
MethodgetStepId
Description

Gets the Id of the step at which the work is in at the time of this event.

Returnosid.id.Idthe step Id
ErrorsILLEGAL_STATE didComplete() or didCancel() is true
CompliancemandatoryThis method must be implemented.
MethodgetStep
Description

Gets the step at which the work is in at the time of this event.

Returnosid.workflow.Stepthe step
ErrorsILLEGAL_STATE didComplete() or didCancel() is true
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetWorkflowEventRecord
Description

Gets the workflow event record corresponding to the given WorkflowEvent record Type. This method is used to retrieve an object implementing the requested record. The workflowEventRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(workflowEventRecordType) is true .

Parametersosid.type.TypeworkFlowRecordTypethe type of workflow event record to retrieve
Returnosid.workflow.records.WorkflowEventRecordthe workflow event record
ErrorsNULL_ARGUMENT workRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(workflowEventRecordType) is false
CompliancemandatoryThis method must be implemented.