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)
ExecutionContext
setProcessInstanceId
in interface ExecutionContext
processInstanceId
- The identifier of the process instance.public String getProcessInstanceId()
ExecutionContext
getProcessInstanceId
in interface ExecutionContext
public Serializable get(String key)
ExecutionContext
key
.get
in interface ExecutionContext
key
- 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)
ExecutionContext
key
.remove
in interface ExecutionContext
key
- 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)
ExecutionContext
key
.put
in interface ExecutionContext
key
- The key under that the object
should be stored.object
- The object to be stored.public Set<String> keySet()
ExecutionContext
keySet
in interface ExecutionContext
null
).Copyright © 2017. All rights reserved.