All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.bpmn.helper.SubProcessVariableSnapshotter Maven / Gradle / Ivy

There is a newer version: 3.0.Beta
Show newest version
package org.activiti.engine.impl.bpmn.helper;

import org.activiti.engine.impl.persistence.entity.ExecutionEntity;

/**

 */
public class SubProcessVariableSnapshotter {

    public void setVariablesSnapshots(ExecutionEntity sourceExecution, ExecutionEntity snapshotHolder) {
        snapshotHolder.setVariablesLocal(sourceExecution.getVariablesLocal());

        ExecutionEntity parentExecution = sourceExecution.getParent();
        if (parentExecution != null && parentExecution.isMultiInstanceRoot()) {
            snapshotHolder.setVariablesLocal(parentExecution.getVariablesLocal());
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy