Skip to content

Commit

Permalink
bugfix: 修复preview_node_inputs对于子流程节点的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuaikang authored and normal-wls committed Sep 7, 2023
1 parent a11dfb8 commit d8ce1bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gcloud/tasktmpl3/domains/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def get_need_render_context_keys():
keys.add("${" + value + "}")
return keys

node_type = pipeline["activities"][node_id]["type"]
node_code = pipeline["activities"][node_id].get("component", {}).get("code")
# 对于子流程内的节点,拿不到当前node_id的type和code
node_type = pipeline["activities"].get(node_id, {}).get("type")
node_code = pipeline["activities"].get(node_id, {}).get("component", {}).get("code")
# 只优化普通节点的渲染过程
if node_type == NodeType.ServiceActivity.value and node_code != "subprocess_plugin":
need_render_context_keys = get_need_render_context_keys()
Expand Down

0 comments on commit d8ce1bc

Please sign in to comment.