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

关于节点编排 节点入参得思考 #17

Open
baijuexzz opened this issue Sep 26, 2024 · 1 comment
Open

关于节点编排 节点入参得思考 #17

baijuexzz opened this issue Sep 26, 2024 · 1 comment

Comments

@baijuexzz
Copy link

目前项目打算用来做任务节点得编排
相当于有很多子节点
编排子节点 为业务节点 供上层快速使用
但是有些节点得入参依赖 别的节点得执行结果
目前看示例是基于jsonPath解析入参 反射调用节点方法
但是和 IOperator 基础接口基本没关联

写了一个小demo实现了 不破坏现有IOperator 接口得实现
首先还是依赖原有得addParamFromWrapperId
增加属性paramParseConfig
image

具体属性如下
image

在DagEngine 得parseOperatorParam 在做一层解析
1727342383008
反射调用封装参数得方法
我这边采用了mapstruct 做参数封装 反射得化也可以换成别的方法

示例如下
1727342501304

1727342526317

1727342555315

1727342536959

运行结果
image

@baijuexzz
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant