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

Commit

Permalink
Fix bug in unique task reference name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
james-deee committed Oct 22, 2020
1 parent ddafc5a commit 9ff2f19
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 9ff2f19

Please sign in to comment.