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

Commit

Permalink
Fixed Task subWorkflowId deep copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorebanala committed Apr 29, 2020
1 parent 9871639 commit c1b1a09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -784,7 +784,7 @@ public Task copy() {
copy.setIteration(iteration);
copy.setExecutionNameSpace(executionNameSpace);
copy.setIsolationGroupId(isolationGroupId);
copy.setSubWorkflowId(subWorkflowId);
copy.setSubWorkflowId(getSubWorkflowId());

return copy;
}
Expand Down
Expand Up @@ -5053,7 +5053,6 @@ public void testSubWorkflowRetry() {
.filter(t -> t.getStatus().equals(SCHEDULED))
.findAny().orElse(null);
assertNotNull(task);
assertNull("Retried task in scheduled state shouldn't have a SubworkflowId yet", task.getSubWorkflowId());
subWorkflowTaskId = task.getTaskId();

workflowExecutor.executeSystemTask(subworkflow, task.getTaskId(), 1);
Expand Down

0 comments on commit c1b1a09

Please sign in to comment.