Package jadex.bpmn.runtime.exttask
Class ExternalTaskWrapper.ExternalTaskContext
- java.lang.Object
-
- jadex.bpmn.runtime.exttask.ExternalTaskWrapper.ExternalTaskContext
-
- All Implemented Interfaces:
ITaskContext
- Enclosing class:
- ExternalTaskWrapper
public static class ExternalTaskWrapper.ExternalTaskContext extends java.lang.Object implements ITaskContext
Transferrable context.
-
-
Constructor Summary
Constructors Constructor Description ExternalTaskContext()
Create a new context.ExternalTaskContext(ProcessThread thread)
Create a new context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MActivity
getActivity()
Get the activity.MBpmnModel
getBpmnModel()
Get the model.MActivity
getModelElement()
Get the modelelement.java.util.Map<java.lang.String,java.lang.Object>
getParameters()
Get the params.java.lang.Object
getParameterValue(java.lang.String name)
Get a parameter value.java.lang.Object
getPropertyValue(java.lang.String name)
Get a property value.boolean
hasParameterValue(java.lang.String name)
Test if context has a parameter.void
setActivity(MActivity mactivity)
Set the mactivity.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
setParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Set the params.void
setParameterValue(java.lang.String name, java.lang.Object value)
Set a parameter value.void
setParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
Set a parameter value.
-
-
-
Field Detail
-
params
protected java.util.Map<java.lang.String,java.lang.Object> params
The parameter values flattened.
-
mactivity
protected MActivity mactivity
The acticity.
-
-
Constructor Detail
-
ExternalTaskContext
public ExternalTaskContext()
Create a new context.
-
ExternalTaskContext
public ExternalTaskContext(ProcessThread thread)
Create a new context.
-
-
Method Detail
-
getBpmnModel
public MBpmnModel getBpmnModel()
Get the model.- Specified by:
getBpmnModel
in interfaceITaskContext
- Returns:
- The bpmn model.
-
getActivity
public MActivity getActivity()
Get the activity.- Specified by:
getActivity
in interfaceITaskContext
- Returns:
- The activity.
-
getModelElement
public MActivity getModelElement()
Get the modelelement.- Specified by:
getModelElement
in interfaceITaskContext
- Returns:
- The modelelement.
-
getParameterValue
public java.lang.Object getParameterValue(java.lang.String name)
Get a parameter value.- Specified by:
getParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- The object.
-
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
Get a property value.- Specified by:
getPropertyValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- The object.
-
hasParameterValue
public boolean hasParameterValue(java.lang.String name)
Test if context has a parameter.- Specified by:
hasParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.- Returns:
- True, if has parameter.
-
setParameterValue
public void setParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
Set a parameter value.- Specified by:
setParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.key
- The key.value
- The value.
-
setParameterValue
public void setParameterValue(java.lang.String name, java.lang.Object value)
Set a parameter value.- Specified by:
setParameterValue
in interfaceITaskContext
- Parameters:
name
- The name.value
- The value.
-
setOrCreateParameterValue
public void setOrCreateParameterValue(java.lang.String name, java.lang.Object value)
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
public void setOrCreateParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
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
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Get the params.- Returns:
- The params.
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> params)
Set the params.- Parameters:
params
- The params to set.
-
setActivity
public void setActivity(MActivity mactivity)
Set the mactivity.- Parameters:
mactivity
- The mactivity to set.
-
-