Package jadex.bpmn.runtime.exttask
Class ExternalTaskWrapper.ExternalTaskContext
- java.lang.Object
-
- jadex.bpmn.runtime.exttask.ExternalTaskWrapper.ExternalTaskContext
-
- All Implemented Interfaces:
jadex.bpmn.model.task.ITaskContext
- Enclosing class:
- ExternalTaskWrapper
public static class ExternalTaskWrapper.ExternalTaskContext extends java.lang.Object implements jadex.bpmn.model.task.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 jadex.bpmn.model.MActivity
getActivity()
Get the activity.jadex.bpmn.model.MBpmnModel
getBpmnModel()
Get the model.jadex.bpmn.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(jadex.bpmn.model.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.
-
-
-
Constructor Detail
-
ExternalTaskContext
public ExternalTaskContext()
Create a new context.
-
ExternalTaskContext
public ExternalTaskContext(ProcessThread thread)
Create a new context.
-
-
Method Detail
-
getBpmnModel
public jadex.bpmn.model.MBpmnModel getBpmnModel()
Get the model.- Specified by:
getBpmnModel
in interfacejadex.bpmn.model.task.ITaskContext
- Returns:
- The bpmn model.
-
getActivity
public jadex.bpmn.model.MActivity getActivity()
Get the activity.- Specified by:
getActivity
in interfacejadex.bpmn.model.task.ITaskContext
- Returns:
- The activity.
-
getModelElement
public jadex.bpmn.model.MActivity getModelElement()
Get the modelelement.- Specified by:
getModelElement
in interfacejadex.bpmn.model.task.ITaskContext
- Returns:
- The modelelement.
-
getParameterValue
public java.lang.Object getParameterValue(java.lang.String name)
Get a parameter value.- Specified by:
getParameterValue
in interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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 interfacejadex.bpmn.model.task.ITaskContext
- 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(jadex.bpmn.model.MActivity mactivity)
Set the mactivity.- Parameters:
mactivity
- The mactivity to set.
-
-