Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making
蓝鲸流程引擎服务 (BlueKing Flow Engine Service) available.
Expand Down Expand Up @@ -76,19 +77,21 @@ def plugin_execute(self, data, parent_data):
data.set_outputs("ex_data", message)
return False

plugin_context = {
key: parent_data.inputs[key]
for key in detail_result["data"]["context_inputs"]["properties"].keys()
if key in parent_data.inputs
}
plugin_context = dict(
[
(key, parent_data.inputs[key])
for key in detail_result["data"]["context_inputs"]["properties"].keys()
if key in parent_data.inputs
]
)
ok, result_data = plugin_client.invoke(
plugin_version,
{"inputs": data.inputs, "context": plugin_context},
extra_headers={"Bkplugin-Scope-Type": "space", "Bkplugin-Scope-Value": str(space_id)},
)
if not ok:
message = _("调用第三方插件invoke接口错误, 错误内容: {message}, trace_id: {trace_id}").format(
message=result_data["message"], trace_id=result_data.get("trace_id")
message=detail_result["message"], trace_id=result_data.get("trace_id")
)
logger.error(message)
data.set_outputs("ex_data", message)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making
蓝鲸流程引擎服务 (BlueKing Flow Engine Service) available.
Expand Down Expand Up @@ -61,7 +62,6 @@ def inputs_format(self):
key="bk_assignment_list",
type="object",
schema=ObjectItemSchema(
property_schemas={},
description=_("赋值变量或常量与被赋值变量的映射列表"),
),
)
Expand Down
18 changes: 0 additions & 18 deletions bkflow/pipeline_plugins/test/__init__.py

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

Loading
Loading