<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Fabian,<br><br>Response to #1: I believe the rule file needs to reside in the root directory of the archive/directory of the example application. I have not tried that out so not sure.<br><br>With Drools 4.0.x, you have the option of having your rules be located in the BRMS.<br><br>Response to #2: You should be able to do so using one decision-node. Associate the rule action handler with either the Before Signal or Node Enter event and specify your decision conditions on the transitions out of that node..<br><br>--Aziz<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Fabian Weisensee <fabian@weisensee.net><br>To:
rules-users@lists.jboss.org<br>Sent: Monday, November 12, 2007 7:35:02 AM<br>Subject: [rules-users] Drools and jBPM integration<br><br>
Hi there<br><br>I have some questions concerning Drools and jBPM integration.<br>I know there is this wiki page: <br><a href="http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmAndDrools" target="_blank">http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmAndDrools</a><br>but first it's not really detailed and second does it seem to be
outdated.<br><br>1) I changed the FireRulesActionHandler from the wiki to reflect the <br>API-changes, that at least it's compileable. In the jBPM process <br>definition the rule file is simply passed as parameter like this: <br>"/Shipper.drl". To which directory does this relative path apply? So <br>where do I have to deploy this rule file? I tried several locations in <br>the application server, but even with an absolute path every time <br>FireRulesActionHandler tries to read the rule it crashes:<br><br>ERROR [GraphElement] action threw exception: null<br>java.lang.NullPointerException<br> at <a target="_blank" href="http://java.io.Re">java.io</a>.Reader.<init>(Unknown Source)<br> at <a target="_blank" href="http://java.io.In">java.io</a>.InputStreamReader.<init>(Unknown Source)<br> at
<br>rechnung.kontrolle.FireRulesActionHandler.readRule(FireRulesActionHandler.java:83)<br> at <br>rechnung.kontrolle.FireRulesActionHandler.execute(FireRulesActionHandler.java:50)<br><br>2) As I understood the example in the wiki you have to create a node <br>which executes the rule and then a decision-node which routes the <br>process flow according to the rule results.<br>Is it possible to do this with just one node?<br>But perhaps I should ask this at the jBPM forums.<br><br>Every help would be appreciated. Thanks in advance.<br><br>Fabian Weisensee<br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div><br></div></div></body></html>