public class ProcessContextImpl extends Object implements HierarchicalProcessContext, ProcessContext
VAR_NAME_PROCESS_TYPE| Constructor and Description |
|---|
ProcessContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearLocally()
Clear locally.
|
Instruction |
getInstruction()
Gets get instruction.
|
<T extends Instruction> |
getInstruction(Class<T> clazz)
Gets get instruction.
|
ProcessContext |
getParent() |
Object |
getVariable(String name)
Gets get variable.
|
Object |
getVariableLocally(String name)
Gets get variable locally.
|
Map<String,Object> |
getVariables()
Gets get variables.
|
Map<String,Object> |
getVariablesLocally()
Gets get variables locally.
|
boolean |
hasVariable(String name)
Has variable boolean.
|
boolean |
hasVariableLocal(String name)
Has variable local boolean.
|
Object |
removeVariable(String name)
Remove variable.
|
Object |
removeVariableLocally(String name)
Remove variable locally.
|
void |
setInstruction(Instruction instruction)
Sets set instruction.
|
void |
setParent(ProcessContext parent) |
void |
setVariable(String name,
Object value)
Sets set variable.
|
void |
setVariableLocally(String name,
Object value)
Sets set variable locally.
|
void |
setVariables(Map<String,Object> variables)
Sets set variables.
|
void |
setVariablesLocally(Map<String,Object> variables)
Sets set variables locally.
|
String |
toString() |
public Object getVariable(String name)
ProcessContextgetVariable in interface ProcessContextname - the namepublic void setVariable(String name, Object value)
ProcessContextsetVariable in interface ProcessContextname - the namevalue - the valuepublic Map<String,Object> getVariables()
ProcessContextgetVariables in interface ProcessContextpublic void setVariables(Map<String,Object> variables)
ProcessContextsetVariables in interface ProcessContextvariables - the variablespublic Object getVariableLocally(String name)
HierarchicalProcessContextgetVariableLocally in interface HierarchicalProcessContextname - the namepublic void setVariableLocally(String name, Object value)
HierarchicalProcessContextsetVariableLocally in interface HierarchicalProcessContextname - the namevalue - the valuepublic Map<String,Object> getVariablesLocally()
HierarchicalProcessContextgetVariablesLocally in interface HierarchicalProcessContextpublic void setVariablesLocally(Map<String,Object> variables)
HierarchicalProcessContextsetVariablesLocally in interface HierarchicalProcessContextvariables - the variablespublic boolean hasVariable(String name)
ProcessContexthasVariable in interface ProcessContextname - the namepublic Instruction getInstruction()
ProcessContextgetInstruction in interface ProcessContextpublic void setInstruction(Instruction instruction)
ProcessContextsetInstruction in interface ProcessContextinstruction - the instructionpublic <T extends Instruction> T getInstruction(Class<T> clazz)
ProcessContextgetInstruction in interface ProcessContextT - the type parameterclazz - the clazzpublic boolean hasVariableLocal(String name)
HierarchicalProcessContexthasVariableLocal in interface HierarchicalProcessContextname - the namepublic Object removeVariable(String name)
ProcessContextremoveVariable in interface ProcessContextname - the namepublic Object removeVariableLocally(String name)
HierarchicalProcessContextremoveVariableLocally in interface HierarchicalProcessContextname - the namepublic void clearLocally()
HierarchicalProcessContextclearLocally in interface HierarchicalProcessContextpublic ProcessContext getParent()
public void setParent(ProcessContext parent)
Copyright © 2023 Seata. All rights reserved.