Fabian, 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.
With Drools 4.0.x, you have the option of having your rules be located in the BRMS. 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.. --Aziz ----- Original Message ---- From: Fabian Weisensee <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, November 12, 2007 7:35:02 AM Subject: [rules-users] Drools and jBPM integration 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 _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
