public class ExecutionContextImpl extends Object implements ExecutionContext
| Constructor and Description |
|---|
ExecutionContextImpl()
Creates a new instance.
|
ExecutionContextImpl(String processInstanceId)
Creates a new instance and associated it with a certain process instance.
|
| Modifier and Type | Method and Description |
|---|---|
Serializable |
get(String key)
Returns an serializable object stored within this process context using
key. |
String |
getProcessInstanceId()
Returns the identifier of underlying process instance.
|
Set<String> |
keySet()
Returns an unmodifiable set containing the stored keys.
|
void |
put(String key,
Serializable object)
Stores a serializable object using
key. |
Serializable |
remove(String key)
Removes the object stored using
key. |
void |
setProcessInstanceId(String processInstanceId)
Sets the identifier of underlying process instance.
|
String |
toString() |
public ExecutionContextImpl()
public ExecutionContextImpl(String processInstanceId)
public void setProcessInstanceId(String processInstanceId)
ExecutionContextsetProcessInstanceId in interface ExecutionContextprocessInstanceId - The identifier of the process instance.public String getProcessInstanceId()
ExecutionContextgetProcessInstanceId in interface ExecutionContextpublic Serializable get(String key)
ExecutionContextkey.get in interface ExecutionContextkey - The key that has been used to store the serializable object (may be null).null in case the key does not relate to a stored object or the stored object itself
was null.public Serializable remove(String key)
ExecutionContextkey.remove in interface ExecutionContextkey - The key that has been used to store the serializable object (may be null).null there was no object stored using key.public void put(String key, Serializable object)
ExecutionContextkey.put in interface ExecutionContextkey - The key under that the object should be stored.object - The object to be stored.public Set<String> keySet()
ExecutionContextkeySet in interface ExecutionContextnull).Copyright © 2017. All rights reserved.