<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aziz Boxwala wrote:
<blockquote cite="mid:984616.99237.qm@web84107.mail.mud.yahoo.com"
 type="cite">
  <style type="text/css"><!-- DIV {margin:0px;} --></style>
  <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>
  </div>
  </div>
</blockquote>
We just take a Reader, so the file can be anywhere. In our examples we
tend to put stuff in the classpath as it makes for very easy loading.<br>
<blockquote cite="mid:984616.99237.qm@web84107.mail.mud.yahoo.com"
 type="cite">
  <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;"><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 <a class="moz-txt-link-rfc2396E" href="mailto:fabian@weisensee.net">&lt;fabian@weisensee.net&gt;</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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 moz-do-not-send="true"
 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>
&nbsp;&nbsp;&nbsp; at <a moz-do-not-send="true" target="_blank"
 href="http://java.io.Re">java.io</a>.Reader.&lt;init&gt;(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp; at <a moz-do-not-send="true" target="_blank"
 href="http://java.io.In">java.io</a>.InputStreamReader.&lt;init&gt;(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp; at <br>
rechnung.kontrolle.FireRulesActionHandler.readRule(FireRulesActionHandler.java:83)<br>
&nbsp;&nbsp;&nbsp; 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 moz-do-not-send="true" ymailto="mailto:rules-users@lists.jboss.org"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
  <a moz-do-not-send="true"
 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>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>