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

feature: 事先注册所有可用结构体,并通过yaml task动态选择需要使用哪些结构体,可以实现将所有结构体编程好,然后通过yaml对workflow进行动态编程 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mingmingshiliyu
Copy link

No description provided.

@mingmingshiliyu
Copy link
Author

@ShiningRush 老哥看看,有个需求通过json或者yaml可以动态编辑workflow的运行,比如实现了100个功能节点,但本次执行只需要执行其中10个,且这10个是未知的,只有写完yaml之后才知道执行哪10个,执行顺序是什么.但我看你这里只能把要执行的结构体全部注册上去而不能动态筛选,所以加了这个,如果已经有实现方式请给出demo

@ShiningRush
Copy link
Owner

抱歉,不是太明白你的场景,请教下事前调用RegisterAction注册好所有Action和现在你保存到map里面,通过Dag去注册到Action的区别在哪里

@mingmingshiliyu
Copy link
Author

抱歉,不是太明白你的场景,请教下事前调用RegisterAction注册好所有Action和现在你保存到map里面,通过Dag去注册到Action的区别在哪里

之前是把触发流程写到接口里了,但报了个错,但我忘了,等我晚上去回顾下

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

Successfully merging this pull request may close these issues.

None yet

2 participants