Skip to content
Snippets Groups Projects
Commit 579a4744 authored by Henning's avatar Henning
Browse files

added config.yaml

parent 99c34733
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ public class ConfigController {
try {
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
mapper.findAndRegisterModules();
MigrationYaml yaml = mapper.readValue(new File("src/main/resources/migration.yaml"), MigrationYaml.class);
MigrationYaml yaml = mapper.readValue(new File("src/main/resources/config.yaml"), MigrationYaml.class);
mapper = new ObjectMapper(new YAMLFactory().disable(Feature.WRITE_DOC_START_MARKER));
yaml.getPriority().setFormularPart0(arrayParams.get(0)); // Formular parts 0-6
yaml.getPriority().setFormularPart1(arrayParams.get(1));
......@@ -63,7 +63,7 @@ public class ConfigController {
yaml.getPriority().setFormularPart6(arrayParams.get(6));
yaml.getPriority().setFactor(Integer.parseInt(arrayParams.get(7))); // factor
yaml.getPriority().setUpdateCreateScore(Integer.parseInt(arrayParams.get(8))); // updateCreateScore
mapper.writeValue(new File("src/main/resources/migration.yaml"), yaml);
mapper.writeValue(new File("src/main/resources/config.yaml"), yaml);
}
catch(Exception e) {
System.out.println(e.getMessage());
......
priority:
formularPart0: "Priority"
formularPart1: "="
formularPart2: "FlowSize"
formularPart3: "+"
formularPart4: "FlowScore"
formularPart5: "+"
formularPart6: "FlowDependency"
factor: 2
updateCreateScore: 200
\ No newline at end of file
......@@ -5,166 +5,109 @@ configuration:
gateway:
add:
xor:
status: "RED"
priority: null
status: RED
or:
status: "RED"
priority: null
status: RED
parallel:
status: "YELLOW"
priority: null
status: YELLOW
delete:
xor:
status: "RED"
priority: null
status: RED
or:
status: "RED"
priority: null
status: RED
parallel:
status: "YELLOW"
priority: null
status: YELLOW
rename:
status: "GREEN"
priority: null
status: GREEN
deleteTests: true
activity:
add:
userTask:
required:
status: "RED"
priority: null
status: RED
notRequired:
status: "GREEN"
priority: null
status: GREEN
manualTask:
status: "GREEN"
priority: null
status: GREEN
businessRuleTask:
status: "GREEN"
priority: null
status: GREEN
serviceTask:
status: "GREEN"
priority: null
status: GREEN
scriptTask:
status: "GREEN"
priority: null
status: GREEN
delete:
userTask:
status: "YELLOW"
priority: null
status: YELLOW
manualTask:
status: "GREEN"
priority: null
status: GREEN
businessRuleTask:
status: "GREEN"
priority: null
status: GREEN
serviceTask:
status: "GREEN"
priority: null
status: GREEN
scriptTask:
status: "GREEN"
priority: null
status: GREEN
addProcessVariable:
required:
status: "RED"
priority: null
status: RED
notRequired:
status: "GREEN"
priority: null
status: GREEN
deleteProcessVariable:
status: "YELLOW"
priority: null
status: YELLOW
changeConstraint:
fromNotRequiredToRequired:
status: "RED"
priority: null
status: RED
higherThanMin:
status: "GREEN"
priority: null
status: GREEN
lowerThanMax:
status: "GREEN"
priority: null
status: GREEN
lowerThanMin:
status: "RED"
priority: null
status: RED
higherThanMax:
status: "RED"
priority: null
status: RED
longerThanMinlength:
status: "GREEN"
priority: null
status: GREEN
shorterThanMaxlength:
status: "GREEN"
priority: null
status: GREEN
shorterThanMinlength:
status: "RED"
priority: null
status: RED
longerThanMaxlength:
status: "RED"
priority: null
status: RED
changeOrder:
status: "GREEN"
priority: null
status: GREEN
changeType:
fromXTaskToUserTask:
required:
status: "RED"
priority: null
status: RED
notRequired:
status: "GREEN"
priority: null
status: GREEN
fromXTaskToXTask:
status: "GREEN"
priority: null
status: GREEN
fromUserTaskToXTask:
status: "YELLOW"
priority: null
status: YELLOW
event:
addProcessVariable:
required:
status: "RED"
priority: null
status: RED
notRequired:
status: "GREEN"
priority: null
status: GREEN
deleteProcessVariable:
status: "YELLOW"
priority: null
status: YELLOW
changeConstraint:
fromNotRequiredToRequired:
status: "RED"
priority: null
status: RED
higherThanMin:
status: "GREEN"
priority: null
status: GREEN
lowerThanMax:
status: "GREEN"
priority: null
status: GREEN
lowerThanMin:
status: "RED"
priority: null
status: RED
higherThanMax:
status: "RED"
priority: null
status: RED
longerThanMinlength:
status: "GREEN"
priority: null
status: GREEN
shorterThanMaxlength:
status: "GREEN"
priority: null
status: GREEN
shorterThanMinlength:
status: "RED"
priority: null
status: RED
longerThanMaxlength:
status: "RED"
priority: null
priority:
formularPart0: "Priority"
formularPart1: "="
formularPart2: "FlowSize"
formularPart3: "+"
formularPart4: "FlowScore"
formularPart5: "+"
formularPart6: "FlowDependency"
factor: 2
updateCreateScore: 200
status: RED
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