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 aIPObjectthat can be modified in a workflow operation.
-
Method Details
-
getTrackerService
Returns the tracker service.- Returns:
- the
ITrackerServiceobject representing the tracker service
-
getTarget
Returns the object, on which the workflow is executed.- Returns:
- the
IWorkflowObjectrepresenting the target of the workflow - Since:
- 3.8.1
-
getWorkItem
Deprecated.usegetTarget()Returns the work item.- Returns:
- the
IWorkItemobject representing the work item
-
getActionId
Returns the native action id.- Returns:
- the
Stringobject 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
Collectionobject containing theIPObjects that were marked as modified.
-
prepareObjectForModification
Returns aIPObjectthat 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- aIPObjectobject to get a instance prepared for modification for- Returns:
- the
IPObjectobject that is prepared to be modified
-
scriptContext
- Returns:
- the
IScriptContextinstance providing access to the selected Services and their methods and fields - Since:
- 3.24.10
-
getTarget()