public static class ExternalTaskWrapper.ExternalTaskContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MActivity |
mactivity
The acticity.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
params
The parameter values flattened.
|
Constructor and Description |
---|
ExternalTaskContext()
Create a new context.
|
ExternalTaskContext(ProcessThread thread)
Create a new context.
|
Modifier and Type | Method and 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.
|
protected java.util.Map<java.lang.String,java.lang.Object> params
protected MActivity mactivity
public ExternalTaskContext()
public ExternalTaskContext(ProcessThread thread)
public MBpmnModel getBpmnModel()
public MActivity getActivity()
public MActivity getModelElement()
public java.lang.Object getParameterValue(java.lang.String name)
name
- The name.public java.lang.Object getPropertyValue(java.lang.String name)
name
- The name.public boolean hasParameterValue(java.lang.String name)
name
- The name.public void setParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
name
- The name.key
- The key.value
- The value.public void setParameterValue(java.lang.String name, java.lang.Object value)
name
- The name.value
- The value.public void setOrCreateParameterValue(java.lang.String name, java.lang.Object value)
name
- The parameter name.value
- The parameter value.public void setOrCreateParameterValue(java.lang.String name, java.lang.Object key, java.lang.Object value)
name
- The parameter name.key
- An optional helper (index, key etc.)value
- The parameter value.public java.util.Map<java.lang.String,java.lang.Object> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The params to set.public void setActivity(MActivity mactivity)
mactivity
- The mactivity to set.