Interface WorkflowEvent
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A WorkflowEvent is a change in a workflow.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests 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.Gets the process.Gets theIdof the process.getStep()Gets the step at which the work is in at the time of this event.Gets theIdof the step at which the work is in at the time of this event.Gets the timestamp of this event.getWork()Gets the work.Gets the resource that caused this event.Gets theIdof the resource that caused this event.getWorkflowEventRecord(Type workFlowRecordType) Gets the workflow event record corresponding to the givenWorkflowEventrecordType.Gets theIdof the work.Gets the agent that caused this event.Gets theIdof the agent that caused this event.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getTimestamp
DateTime getTimestamp()Gets the timestamp of this event.- Returns:
- the timestamp
- Compliance:
mandatory- This method must be implemented.
-
getProcessId
Id getProcessId()Gets theIdof the process.- Returns:
- the process
Id - Compliance:
mandatory- This method must be implemented.
-
getProcess
Gets the process.- Returns:
- the process
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getWorkerId
Id getWorkerId()Gets theIdof the resource that caused this event.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getWorker
Gets the resource that caused this event.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getWorkingAgentId
Id getWorkingAgentId()Gets theIdof the agent that caused this event.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getWorkingAgent
Gets the agent that caused this event.- Returns:
- the agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getWorkId
Id getWorkId()Gets theIdof the work.- Returns:
- the work
Id - Compliance:
mandatory- This method must be implemented.
-
getWork
Gets the work.- Returns:
- the work
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
didCancel
boolean didCancel()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.- Returns:
trueif the work canceled,falseif the work is associated with a step in this event- Compliance:
mandatory- This method must be implemented.
-
getStepId
Id getStepId()Gets theIdof the step at which the work is in at the time of this event.- Returns:
- the step
Id - Throws:
IllegalStateException-didCancel()istrue- Compliance:
mandatory- This method must be implemented.
-
getStep
Gets the step at which the work is in at the time of this event.- Returns:
- the step
- Throws:
IllegalStateException-didCancel()istrueOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventRecord
Gets the workflow event record corresponding to the givenWorkflowEventrecordType. This method is used to retrieve an object implementing the requested record. TheworkflowEventRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(workflowEventRecordType)istrue.- Parameters:
workFlowRecordType- the type of workflow event record to retrieve- Returns:
- the workflow event record
- Throws:
NullArgumentException-workRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(workflowEventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-