Search in sources :

Example 6 with CompositeContextNodeInstance

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();
    }
}
Also used : Variable(io.automatiko.engine.workflow.base.core.context.variable.Variable) CompositeContextNodeInstance(io.automatiko.engine.workflow.process.instance.node.CompositeContextNodeInstance)

Aggregations

CompositeContextNodeInstance (io.automatiko.engine.workflow.process.instance.node.CompositeContextNodeInstance)6 ProcessInstance (io.automatiko.engine.api.runtime.process.ProcessInstance)3 WorkflowProcessInstance (io.automatiko.engine.api.runtime.process.WorkflowProcessInstance)3 VariableScopeInstance (io.automatiko.engine.workflow.base.instance.context.variable.VariableScopeInstance)3 DynamicNodeInstance (io.automatiko.engine.workflow.process.instance.node.DynamicNodeInstance)3 EventNodeInstance (io.automatiko.engine.workflow.process.instance.node.EventNodeInstance)3 EventSubProcessNodeInstance (io.automatiko.engine.workflow.process.instance.node.EventSubProcessNodeInstance)3 ForEachNodeInstance (io.automatiko.engine.workflow.process.instance.node.ForEachNodeInstance)3 HumanTaskNodeInstance (io.automatiko.engine.workflow.process.instance.node.HumanTaskNodeInstance)3 LambdaSubProcessNodeInstance (io.automatiko.engine.workflow.process.instance.node.LambdaSubProcessNodeInstance)3 MilestoneNodeInstance (io.automatiko.engine.workflow.process.instance.node.MilestoneNodeInstance)3 RuleSetNodeInstance (io.automatiko.engine.workflow.process.instance.node.RuleSetNodeInstance)3 StateNodeInstance (io.automatiko.engine.workflow.process.instance.node.StateNodeInstance)3 SubProcessNodeInstance (io.automatiko.engine.workflow.process.instance.node.SubProcessNodeInstance)3 TimerNodeInstance (io.automatiko.engine.workflow.process.instance.node.TimerNodeInstance)3 WorkItemNodeInstance (io.automatiko.engine.workflow.process.instance.node.WorkItemNodeInstance)3 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 NodeInstance (io.automatiko.engine.api.runtime.process.NodeInstance)2 Context (io.automatiko.engine.workflow.base.core.Context)2