use of org.camunda.bpm.engine.impl.migration.instance.MigratingVariableInstance in project camunda-bpm-platform by camunda.
the class VariableInstanceHandler method handle.
@Override
public void handle(MigratingInstanceParseContext parseContext, MigratingProcessElementInstance owningInstance, List<VariableInstanceEntity> variables) {
ExecutionEntity representativeExecution = owningInstance.resolveRepresentativeExecution();
for (VariableInstanceEntity variable : variables) {
parseContext.consume(variable);
boolean isConcurrentLocalInParentScope = (variable.getExecution() == representativeExecution.getParent() && variable.isConcurrentLocal()) || representativeExecution.isConcurrent();
owningInstance.addMigratingDependentInstance(new MigratingVariableInstance(variable, isConcurrentLocalInParentScope));
}
}
use of org.camunda.bpm.engine.impl.migration.instance.MigratingVariableInstance in project camunda-bpm-platform by camunda.
the class VariableConflictActivityInstanceValidator method getMigratingVariableInstancesByName.
protected Map<String, List<MigratingVariableInstance>> getMigratingVariableInstancesByName(MigratingActivityInstance activityInstance) {
Map<String, List<MigratingVariableInstance>> result = new HashMap<String, List<MigratingVariableInstance>>();
for (MigratingInstance migratingInstance : activityInstance.getMigratingDependentInstances()) {
if (migratingInstance instanceof MigratingVariableInstance) {
MigratingVariableInstance migratingVariableInstance = (MigratingVariableInstance) migratingInstance;
CollectionUtil.addToMapOfLists(result, migratingVariableInstance.getVariableName(), migratingVariableInstance);
}
}
return result;
}
Aggregations