Squashed 'SpiffWorkflow/' changes from d27519a36..3579c477e

3579c477e use last task data instead of subworkflow data on subworkflow complete

git-subtree-dir: SpiffWorkflow
git-subtree-split: 3579c477eaf19a982a2822609fcf20b56c050eb5
This commit is contained in:
Dan 2022-10-27 14:57:23 -04:00
parent 742f549e98
commit 7184b165bb
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class SubWorkflowTask(BpmnSpecMixin):
if len(subworkflow.spec.data_outputs) == 0:
# Copy all workflow data if no outputs are specified
my_task.data = deepcopy(subworkflow.data)
my_task.data = deepcopy(subworkflow.last_task.data)
else:
end = subworkflow.get_tasks_from_spec_name('End', workflow=subworkflow)
# Otherwise only copy data with the specified names