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

CLI支持 #3

Open
GTrunSec opened this issue Sep 19, 2022 · 5 comments
Open

CLI支持 #3

GTrunSec opened this issue Sep 19, 2022 · 5 comments

Comments

@GTrunSec
Copy link

是否能够有一个命令的支持,将json转换为bpmn格式的数据。
cli --input --output <output.bpmn>

@lzgabel
Copy link
Owner

lzgabel commented Sep 20, 2022

Hi @GTrunSec. 讲道理来说是可以的,但是由于不同的业务,可能需要附带的业务参数不同,所以这部分还是需要考虑从哪一个层面来封装的,或许你有更好的建议,欢迎 🤝

@GTrunSec GTrunSec reopened this Sep 20, 2022
@GTrunSec
Copy link
Author

首先我们根据不同的业务场景,制定的不同的json-schema [template],明确的知道当前的业务场景有哪些参数。json-schema有2个作用可以做data validation,可以让用户参考当前场景的数据类型参数有哪些。

对接到CLI 端,用户直接可以通过template name去生成不同业务场景的BPMN

CLI --template <name> --input <json> --output

@GTrunSec
Copy link
Author

@GTrunSec
Copy link
Author

其次内置一个validatior 可以针对不同的数据场景,精确的抛出当前的 input.json 合法的数据类型和描述。https://www.javatpoint.com/json-validator-java

template(场景名字) -> template-json-schema -> inputs.json -> valid -> output.bpmn

@GTrunSec
Copy link
Author

其次如果你觉得这个想法可以,我可以提供 json-template/schema 的协助

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

2 participants