use of io.automatiko.engine.workflow.process.instance.node.CompositeContextNodeInstance in project automatiko-engine by automatiko-io.
the class VariableScopeInstance method setContextInstanceContainer.
public void setContextInstanceContainer(ContextInstanceContainer contextInstanceContainer) {
super.setContextInstanceContainer(contextInstanceContainer);
if (getVariableScope() != null) {
for (Variable variable : getVariableScope().getVariables()) {
if (variable.getValue() != null) {
setVariable(variable.getName(), variable.getValue());
}
}
}
if (contextInstanceContainer instanceof CompositeContextNodeInstance) {
this.variableIdPrefix = ((Node) ((CompositeContextNodeInstance) contextInstanceContainer).getNode()).getUniqueId();
this.variableInstanceIdPrefix = ((CompositeContextNodeInstance) contextInstanceContainer).getUniqueId();
}
}
Aggregations