[rules-users] Drools and jBPM integration

Fabian Weisensee fabian at weisensee.net
Mon Nov 12 07:35:02 EST 2007


Hi there

I have some questions concerning Drools and jBPM integration.
I know there is this wiki page: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmAndDrools
but first it's not really detailed and second does it seem to be outdated.

1) I changed the FireRulesActionHandler from the wiki to reflect the 
API-changes, that at least it's compileable. In the jBPM process 
definition the rule file is simply passed as parameter like this: 
"/Shipper.drl". To which directory does this relative path apply? So 
where do I have to deploy this rule file? I tried several locations in 
the application server, but even with an absolute path every time 
FireRulesActionHandler tries to read the rule it crashes:

ERROR [GraphElement] action threw exception: null
java.lang.NullPointerException
	at java.io.Reader.<init>(Unknown Source)
	at java.io.InputStreamReader.<init>(Unknown Source)
	at 
rechnung.kontrolle.FireRulesActionHandler.readRule(FireRulesActionHandler.java:83)
	at 
rechnung.kontrolle.FireRulesActionHandler.execute(FireRulesActionHandler.java:50)

2) As I understood the example in the wiki you have to create a node 
which executes the rule and then a decision-node which routes the 
process flow according to the rule results.
Is it possible to do this with just one node?
But perhaps I should ask this at the jBPM forums.

Every help would be appreciated. Thanks in advance.

Fabian Weisensee



More information about the rules-users mailing list