Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1933 from james-deee/master
Browse files Browse the repository at this point in the history
Fix bug in unique task reference name validation
  • Loading branch information
apanicker-nflx authored Oct 23, 2020
2 parents ddafc5a + 9ff2f19 commit f924d0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public boolean isValid(WorkflowDef workflowDef, ConstraintValidatorContext conte

//check if taskReferenceNames are unique across tasks or not
HashMap<String, Integer> taskReferenceMap = new HashMap<>();
for (WorkflowTask workflowTask : workflowDef.getTasks()) {
for (WorkflowTask workflowTask : workflowDef.collectTasks()) {
if (taskReferenceMap.containsKey(workflowTask.getTaskReferenceName())) {
String message = String.format("taskReferenceName: %s should be unique across tasks for a given workflowDefinition: %s",
workflowTask.getTaskReferenceName(), workflowDef.getName());
Expand Down

0 comments on commit f924d0e

Please sign in to comment.