Skip to content

Commit 3964db2

Browse files
authored
fix: Advanced orchestration defines global variables and assigns them through assignment nodes. If there is a form collection node before the reference node, the assignment node becomes invalid and the initial variable value is still referenced #3082 (#3108)
1 parent 57ada07 commit 3964db2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/application/flow/step_node/start_node/impl/base_start_node.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def save_context(self, details, workflow_manage):
4545
self.err_message = details.get('err_message')
4646
for key, value in workflow_variable.items():
4747
workflow_manage.context[key] = value
48+
for item in details.get('global_fields', []):
49+
workflow_manage.context[item.get('key')] = item.get('value')
4850

4951
def get_node_params_serializer_class(self) -> Type[serializers.Serializer]:
5052
pass

0 commit comments

Comments
 (0)