summaryrefslogtreecommitdiffstats
path: root/workflow-designer-be/src/main
diff options
context:
space:
mode:
authorayalaben <ayala.benzvi@amdocs.com>2018-07-26 11:10:49 +0300
committerayalaben <ayala.benzvi@amdocs.com>2018-07-26 12:17:32 +0300
commit3a530ec00f047e306eb53961ad71ca67f545773c (patch)
treeccc8b91fe5ac116b76f63a1e290bf8dda2215e77 /workflow-designer-be/src/main
parentba978ad1cbaedef616e5883717da7494b634a2ff (diff)
Validator init binder fix
Change-Id: I98ac7b42512a4f7b1323e29ed5059553479b24e0 Issue-ID: SDC-1518 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'workflow-designer-be/src/main')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java2
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
index 91995bd0..34ecb898 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
@@ -59,7 +59,7 @@ public class WorkflowVersionController {
private final WorkflowVersionManager workflowVersionManager;
private Validator validator;
- @InitBinder
+ @InitBinder("WorkflowVersion")
private void initBinder(WebDataBinder binder) {
binder.addValidators(validator);
}
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
index 72e62778..b2fc6f59 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
@@ -30,8 +30,8 @@ public class Workflow {
private String id;
@NotNull(message = "Workflow name may not be null")
- @Size(min = 6, max = 30, message = "The field must be at least 6 characters, and less than 30 characters")
- @Pattern(regexp = "[A-Za-z0-9_]*", message = "The field must contain only letters, digits and underscores")
+ @Size(max = 80, message = "Workflow name must be less than 80 characters")
+ @Pattern(regexp = "[A-Za-z0-9_]*", message = "Workflow name must contain only letters, digits and underscores")
private String name;
private String description;
private Set<WorkflowVersionState> versionStates;