Skip to content
Snippets Groups Projects
Commit b0db6233 authored by Florian Lambers's avatar Florian Lambers
Browse files

refactored readVariables part 2

parent 88a7837a
No related branches found
No related tags found
No related merge requests found
......@@ -709,7 +709,7 @@ public class MigrationService {
HashMap<String, List<VariableReference>> hashMapInputVariables = new HashMap<>();
for(UserTaskFlowElement e : oldDSL.getUserTaskFlowElements()) {
hashMapInputVariables.put(e.getName(), e.getReadVariables());
hashMapInputVariables.put(e.getName(), e.getInputVariables());
}
List<UserTaskFlowElement> neededUserTasks = new ArrayList<>();
......@@ -720,7 +720,7 @@ public class MigrationService {
if(oldInputVariables != null) {
//Die UserTask ist auch in der neuen DSL vorhanden
//Prüfen, ob es eine neue InputVariable gibt (nur Anzahl prüfen reicht nicht)
List<VariableReference> newVariables = e.getReadVariables();
List<VariableReference> newVariables = e.getInputVariables();
List<VariableReference> newInputVariables = new BasicEList<>();
......@@ -782,7 +782,7 @@ public class MigrationService {
HashMap<String, List<VariableReference>> hashMapInputVariables = new HashMap<>();
for(UserTaskFlowElement e : oldDSL.getUserTaskFlowElements()) {
hashMapInputVariables.put(e.getName(), e.getReadVariables());
hashMapInputVariables.put(e.getName(), e.getInputVariables());
}
List<UserTaskFlowElement> neededUserTasks = new ArrayList<>();
......@@ -792,7 +792,7 @@ public class MigrationService {
//Die UserTask ist auch in der neuen DSL vorhanden
//Prüfen, ob es eine neue InputVariable gibt (nur Anzahl prüfen reicht nicht)
List<VariableReference> newVariables = e.getReadVariables();
List<VariableReference> newVariables = e.getInputVariables();
List<VariableReference> deletedInputVariables = new BasicEList<>();
//System.out.println(newVariables.toString());
......@@ -2117,7 +2117,7 @@ public class MigrationService {
if (element instanceof UserTaskFlowElement) {
UserTaskFlowElement ue = (UserTaskFlowElement) element;
for(VariableReference vr : ue.getReadVariables()) {
for(VariableReference vr : ue.getInputVariables()) {
if(vr.getValidationStatus().equals(ValidationState.REQUIRED)) {
return true;
}
......
......@@ -291,9 +291,9 @@ public class ChangeController {
if(oldDSL.getFlowElements(Arrays.asList(tv.getTask())).get(0) instanceof UserTaskFlowElement
&& newDSL.getFlowElements(Arrays.asList(tv.getTask())).get(0) instanceof UserTaskFlowElement) {
UserTaskFlowElement oldUserTask = (UserTaskFlowElement) oldDSL.getFlowElements(Arrays.asList(tv.getTask())).get(0);
oldInputVariables = oldUserTask.getReadVariables();
oldInputVariables = oldUserTask.getInputVariables();
UserTaskFlowElement newUserTask = (UserTaskFlowElement) newDSL.getFlowElements(Arrays.asList(tv.getTask())).get(0);
newInputVariables = newUserTask.getReadVariables();
newInputVariables = newUserTask.getInputVariables();
}
else {
if(oldDSL.getFlowElements(Arrays.asList(tv.getTask())).get(0) instanceof StartFlowElement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment