Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: 生成 token 时对子流程进行去环操作 #211

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bamboo_engine/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,17 @@ def _acyclic(pipeline):
_delete_flow_id_from_node_io(target_node, flow_id, "incoming")


def _acyclic_flow(tree):
_acyclic(tree)
for node in tree["activities"].values():
if node["type"] == "SubProcess":
hanshuaikang marked this conversation as resolved.
Show resolved Hide resolved
_acyclic_flow(node["pipeline"])


def generate_pipeline_token(pipeline_tree):
tree = copy.deepcopy(pipeline_tree)
# 去环
_acyclic(tree)
_acyclic_flow(tree)

start_node = tree["start_event"]
token = unique_id("t")
Expand Down
Loading