Package jadex.bpmn.model.task
Interface ITaskContext
- All Known Implementing Classes:
ExternalTaskWrapper.ExternalTaskContext
,ProcessThread
public interface ITaskContext
The task context contains the data available to
an application task implementation.
-
Method Summary
Modifier and TypeMethodDescriptionGet the activity.Get the model.Get the model element.getParameterValue
(String name) Get the value of a parameter.getPropertyValue
(String name) Get the value of a property.boolean
hasParameterValue
(String name) Check if the value of a parameter is set.void
setOrCreateParameterValue
(String name, Object value) Set or create a parameter value directly in this thread.void
setOrCreateParameterValue
(String name, Object key, Object value) Set or create a parameter value directly in this thread.void
setParameterValue
(String name, Object value) Set the value of a parameter.void
setParameterValue
(String name, Object key, Object value) Set the value of a parameter.
-
Method Details
-
getBpmnModel
MBpmnModel getBpmnModel()Get the model.- Returns:
- The bpmn model.
-
getModelElement
MActivity getModelElement()Get the model element.- Returns:
- The model of the task.
-
getActivity
MActivity getActivity()Get the activity.- Returns:
- The activity.
-
hasParameterValue
Check if the value of a parameter is set.- Parameters:
name
- The parameter name.- Returns:
- True, if the parameter is set to some value.
-
getParameterValue
Get the value of a parameter.- Parameters:
name
- The parameter name.- Returns:
- The parameter value.
-
setParameterValue
Set the value of a parameter.- Parameters:
name
- The parameter name.value
- The parameter value.
-
setParameterValue
Set the value of a parameter.- Parameters:
name
- The parameter name.key
- An optional helper (index, key etc.)value
- The parameter value.
-
setOrCreateParameterValue
Set or create a parameter value directly in this thread.- Parameters:
name
- The parameter name.value
- The parameter value.
-
setOrCreateParameterValue
Set or create a parameter value directly in this thread.- Parameters:
name
- The parameter name.key
- An optional helper (index, key etc.)value
- The parameter value.
-
getPropertyValue
Get the value of a property.- Parameters:
name
- The property name.- Returns:
- The property value.
-