Interface ICallContext<T extends IWorkflowObject>
- Type Parameters:
T
- type of the target object, seegetTarget()
public interface ICallContext<T extends IWorkflowObject>
Handles the context data used for workflow functions, conditions and
validators.
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptionReturns the native action id.Returns all objects that were marked as modified.Returns the object, on which the workflow is executed.Returns the target status id.Returns the tracker service.Deprecated.<S extends IPObject>
SprepareObjectForModification
(S object) Returns aIPObject
that can be modified in a workflow operation.
-
Method Details
-
getTrackerService
Returns the tracker service.- Returns:
- the
ITrackerService
object representing the tracker service
-
getTarget
Returns the object, on which the workflow is executed.- Returns:
- the
IWorkflowObject
representing the target of the workflow - Since:
- 3.8.1
-
getWorkItem
Deprecated.usegetTarget()
Returns the work item.- Returns:
- the
IWorkItem
object representing the work item
-
getActionId
Returns the native action id.- Returns:
- the
String
object representing the native action id - See Also:
-
getTargetStatusId
Returns the target status id.- Returns:
- the target status id.
- Since:
- 3.8.2
-
getModifiedObjects
Returns all objects that were marked as modified. The result will contain the objects included by callingprepareObjectForModification(IPObject)
and the work item associated with this context.- Returns:
- a
Collection
object containing theIPObject
s that were marked as modified.
-
prepareObjectForModification
Returns aIPObject
that can be modified in a workflow operation.This method is used to keep track of objects modified during the workflow operation and to ensure, that all workflow functions do modify the same instance of object.
The result of
getTarget()
is already modification-ready and doesn't have to be passed through this method.- Parameters:
object
- aIPObject
object to get a instance prepared for modification for- Returns:
- the
IPObject
object that is prepared to be modified
-
scriptContext
- Returns:
- the
IScriptContext
instance providing access to the selected Services and their methods and fields - Since:
- 3.24.10
-
getTarget()