Package jadex.bpmn.runtime.exttask
Class ExternalTaskWrapper.ExternalTaskContext
java.lang.Object
jadex.bpmn.runtime.exttask.ExternalTaskWrapper.ExternalTaskContext
- All Implemented Interfaces:
ITaskContext
- Enclosing class:
ExternalTaskWrapper
Transferrable context.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new context.ExternalTaskContext
(ProcessThread thread) Create a new context. -
Method Summary
Modifier and TypeMethodDescriptionGet the activity.Get the model.Get the modelelement.Get the params.getParameterValue
(String name) Get a parameter value.getPropertyValue
(String name) Get a property value.boolean
hasParameterValue
(String name) Test if context has a parameter.void
setActivity
(MActivity mactivity) Set the mactivity.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
setParameters
(Map<String, Object> params) Set the params.void
setParameterValue
(String name, Object value) Set a parameter value.void
setParameterValue
(String name, Object key, Object value) Set a parameter value.
-
Field Details
-
params
The parameter values flattened. -
mactivity
The acticity.
-
-
Constructor Details
-
ExternalTaskContext
public ExternalTaskContext()Create a new context. -
ExternalTaskContext
Create a new context.
-
-
Method Details
-
getBpmnModel
Get the model.- Specified by:
getBpmnModel
in interfaceITaskContext
- Returns:
- The bpmn model.
-
getActivity
Get the activity.- Specified by:
getActivity
in interfaceITaskContext
- Returns:
- The activity.
-
getModelElement
Get the modelelement.- Specified by:
getModelElement
in interfaceITaskContext
- Returns:
- The modelelement.
-
getParameterValue
Get a parameter value.- Specified by:
getParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- The object.
-
getPropertyValue
Get a property value.- Specified by:
getPropertyValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- The object.
-
hasParameterValue
Test if context has a parameter.- Specified by:
hasParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- True, if has parameter.
-
setParameterValue
Set a parameter value.- Specified by:
setParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.key
- The key.value
- The value.
-
setParameterValue
Set a parameter value.- Specified by:
setParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.value
- The value.
-
setOrCreateParameterValue
Set or create a parameter value directly in this thread.- Specified by:
setOrCreateParameterValue
in interfaceITaskContext
- Parameters:
name
- The parameter name.value
- The parameter value.
-
setOrCreateParameterValue
Set or create a parameter value directly in this thread.- Specified by:
setOrCreateParameterValue
in interfaceITaskContext
- Parameters:
name
- The parameter name.key
- An optional helper (index, key etc.)value
- The parameter value.
-
getParameters
Get the params.- Returns:
- The params.
-
setParameters
Set the params.- Parameters:
params
- The params to set.
-
setActivity
Set the mactivity.- Parameters:
mactivity
- The mactivity to set.
-