File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
SpiffWorkflow/bpmn/specs/mixins Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1818# 02110-1301 USA
1919from copy import deepcopy
2020
21+ from SpiffWorkflow .util .deep_merge import DeepMerge
2122from SpiffWorkflow .util .task import TaskState , TaskIterator
2223from SpiffWorkflow .specs .Join import Join
2324
@@ -50,7 +51,7 @@ def _run_hook(self, my_task):
5051 for task in sorted (other_tasks , key = lambda t : t .last_state_change ):
5152 # By inheriting directly from parent tasks, we can avoid copying previouly merged data
5253
53- my_task . set_data ( ** deepcopy ( task .parent .data ) )
54+ DeepMerge . merge ( my_task . data , task .parent .data )
5455 # This condition only applies when a workflow is reset inside a parallel branch.
5556 # If reset to a branch that was originally cancelled, all the descendants of the previously completed branch will still
5657 # appear in the tree, potentially corrupting the structure and data.
You can’t perform that action at this time.
0 commit comments