jBPM6:使用单独的jar工件中包含的规则 [英] jBPM6: using rules contained in a separate jar artifact

查看:116
本文介绍了jBPM6:使用单独的jar工件中包含的规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现同时包含流程和规则的jBPM6项目.

I'm trying to implement a jBPM6 project containing both processes and rules.

我想实现的一件事(如果可能的话)是开发一个仅包含规则定义的单独工件,然后通过maven将该jar引用到流程的项目中,从而能够从我的流程中执行规则

One thing I would like to achieve (if it is possible) is to develop a separate artifact containing only the rules definitions, and then referencing this jar into the processes' project via maven, being able to execute the rules from my processes.

我实现了此解决方案,但是当我执行使用规则的流程之一时,不会触发任何规则.为了验证没有实现问题,我将规则定义文件直接放入流程的项目中,并以此方式工作.

I implemented this solution, but when I execute one of the process that uses the rules none of the rules is fired. To verify that there were no implementation problems I put the rules definition files into the processes' project directly, and it worked in this way.

因此,就像将规则定义包含在另一个jar存档中一样,系统无法加载它们.有谁知道如何解决我的问题,如果我想实现的目标甚至可以在jBPM6中实现?非常感谢.

So, it is like the system is not able to load the rules definitions when they are contained into another jar archive. Does anyone knows how to solvemy problem, and if what I want to achieve is even possible in jBPM6? Thank you very much.

推荐答案

我尝试使用 repository1 和它的工作正常.我可以看到全局变量可在不同项目中访问.浏览repository1

I have tried with repository1 and its working fine. I can see global variables are accessible across different projects. Go through repository1

这篇关于jBPM6:使用单独的jar工件中包含的规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆