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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MActivity
getActivity()
Get the activity.MBpmnModel
getBpmnModel()
Get the model.MActivity
getModelElement()
Get the model element.java.lang.Object
getParameterValue(java.lang.String name)
Get the value of a parameter.java.lang.Object
getPropertyValue(java.lang.String name)
Get the value of a property.boolean
hasParameterValue(java.lang.String name)
Check if the value of a parameter is set.void
setOrCreateParameterValue(java.lang.String name, java.lang.Object value)
Set or create a parameter value directly in this thread.void
setOrCreateParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
Set or create a parameter value directly in this thread.void
setParameterValue(java.lang.String name, java.lang.Object value)
Set the value of a parameter.void
setParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
Set the value of a parameter.
-
-
-
Method Detail
-
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
boolean hasParameterValue(java.lang.String name)
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
java.lang.Object getParameterValue(java.lang.String name)
Get the value of a parameter.- Parameters:
name
- The parameter name.- Returns:
- The parameter value.
-
setParameterValue
void setParameterValue(java.lang.String name, java.lang.Object value)
Set the value of a parameter.- Parameters:
name
- The parameter name.value
- The parameter value.
-
setParameterValue
void setParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
Set the value of a parameter.- Parameters:
name
- The parameter name.key
- An optional helper (index, key etc.)value
- The parameter value.
-
setOrCreateParameterValue
void setOrCreateParameterValue(java.lang.String name, java.lang.Object value)
Set or create a parameter value directly in this thread.- Parameters:
name
- The parameter name.value
- The parameter value.
-
setOrCreateParameterValue
void setOrCreateParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
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
java.lang.Object getPropertyValue(java.lang.String name)
Get the value of a property.- Parameters:
name
- The property name.- Returns:
- The property value.
-
-