Drools SubFlow/SubProcess 使用得很多吗? Drools 文档缺失
我正在尝试使用规则流和规则来构建工作流程原型。我开始测试 subProcess 是因为能够调用或重用子例程显然很有用。经过多次摆弄后,我无法让外映射按预期工作(并且我可以通过缺乏详细文档来进行管理)。
所以我开始寻找更多的例子。令人困惑的是,我只设法找到一个使用 subProcess 的示例(在 jbossrules checkout 中),而且该示例根本不费心进行任何输入输出映射。所有其他与映射相关的示例都是通过 WorkItems 完成的。
子流程是否比工作项有用得多?并不是说我完全理解它们的差异......
考虑到缺乏在线资源,我认为我最好买一本书(如果有人可以推荐一个好的网站或一本好书,我将非常感激)。谢谢。
I'm trying to prototype a workflow using a rule flow and rules. I started testing subProcess because it's obviously useful to be able to call or reuse a subroutine. After much fiddling, I can't get out-mapping to work as expected (as well as I can manage from the lack of detailed documentations).
So I started searching for more examples. Bafflingly, I only managed to locate one example (in the jbossrules checkout) that uses subProcess - and that one doesn't even bother doing any in-out mapping at all. Every other mapping related examples are done via WorkItems.
Are subProcesses much less useful than WorkItems? Not that I fully understand their differences...
I think I better get a book, considering the lack of online resources (would really appreciate if someone can recommend a good site or a good book). Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们非常感谢您对文档所做的任何改进。但显然,有关子流程映射的文档并没有那么糟糕,因为您设法正确指定它(错误出现在子流程中的操作节点中);)
有一个子流程使用 out 映射的示例以及junit测试:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessSubProcessTest.java
We would really appreciate any improvements you could make to the documentation. But apparently, the documentation regarding sub process mapping isn't that bad, as you managed to specify it correctly (the error was in the action node in the sub process) ;)
There is an example of a sub process using out mappings in the junit tests as well:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessSubProcessTest.java