Search in sources :

Example 1 with MigratingInstance

use of org.camunda.bpm.engine.impl.migration.instance.MigratingInstance 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;
}
Also used : HashMap(java.util.HashMap) MigratingVariableInstance(org.camunda.bpm.engine.impl.migration.instance.MigratingVariableInstance) List(java.util.List) MigratingInstance(org.camunda.bpm.engine.impl.migration.instance.MigratingInstance)

Aggregations

HashMap (java.util.HashMap)1 List (java.util.List)1 MigratingInstance (org.camunda.bpm.engine.impl.migration.instance.MigratingInstance)1 MigratingVariableInstance (org.camunda.bpm.engine.impl.migration.instance.MigratingVariableInstance)1