Re: [rules-users] Drools and OSGi

2010-04-15 Thread Robert
Hi Aerv, soon I will also have to launch Drools within an OSGI environment, but I am not there yet. But within another context (jBPM) I had some troubles looking similar you are having. It had something to do with the classloading. jBPM did not provide any OSGI-support, whereas Droos does,

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread tolitius
opened a JIRA: https://jira.jboss.org/jira/browse/JBRULES-2485 vote up to get it rolling! P.S. On the other note, just went through creating a JBoss account to create this JIRA I think my mortgage application had fewer required fields.. "Company Annual Revenue" is required.. to submit a JIRA

Re: [rules-users] Double Handling

2010-04-15 Thread Ade Timi
I still haven't gotten any break through with my problem. The issue is my LHS of the rule. I am using eclipse. For some reason when I refer to this particular java class and its variables they can't be seen by the rule but its setters and getters can be seen on the RHS of the rule. I get an error s

Re: [rules-users] Drools and OSGi

2010-04-15 Thread Wouter Van Isterdael
Thank you both very much. I will try both suggestions, and will get back to you as soon as I've got it figured out :-) Kind regards, Aerv 2010/4/15 Robert > Hi Aerv, > > soon I will also have to launch Drools within an OSGI environment, but I > am not there yet. But within another context (jBP

Re: [rules-users] Double Handling

2010-04-15 Thread Wolfgang Laun
It seems that Drools is confused by the usage of the class name "Decision" (which is used in the core: java/org/drools/jpdl/core/node/Decision.java I can reproduce a similar effect, simply by renaming a class in a working example to "Decision". -W On Thu, Apr 15, 2010 at 12:49 PM, Ade Timi wrot

Re: [rules-users] Double Handling

2010-04-15 Thread Ade Timi
I tried changing the name to anything but the same problem persists. -Ade _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: 15 April 2010 12:14 To: Rules Users List Cc: Edson Tirelli Subject: Re: [rules-users]

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread Mauricio Salatino
Good to see the Jira issue created, now you can track our work! can you attach to the jira issue a simple maven project, with a unit test and a ruleflow file that let us replicate the error? P.S. weird JBoss form, it really freaks me out :) On Thu, Apr 15, 2010 at 3:31 AM, tolitius wrote: > >

Re: [rules-users] Double Handling

2010-04-15 Thread Wolfgang Laun
Sorry, my mistake. :-\ -W ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] javassist problem

2010-04-15 Thread Piotr Jedrychowski
Hello. I have a question about *javassist.jar* library. Is there any reason that Drools 5.0 and Drools 5.1 are using javassist.jar library version *3.4*? 3.4 version is quite old (the newest version on javassist website is 3.11). Can I change this library to other version than 3.4 (I would li

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread Mauricio Salatino
fix for the NPE is commited.. I will need to review some variable persistence issues with out mappings. I will keep you posted! On Thu, Apr 15, 2010 at 7:58 AM, Mauricio Salatino wrote: > Good to see the Jira issue created, now you can track our work! > can you attach to the jira issue a simple m

[rules-users] Drools Flow: Problem with constraint in (Wait) State node

2010-04-15 Thread Alan . Gairey
I have a simple rule flow of the form: Start -> Work Item -> Wait State -> Action -> End. The handler for the work item launches a separate thread, and then completes. This thread inserts a number of facts into the (stateful) session's working memory; each fact ('SimpleFact') has a boolean prop

Re: [rules-users] Drools and OSGi

2010-04-15 Thread Wouter Van Isterdael
I have done the following: - Created a new Project in Eclipse, "Plug-in from existing jar archives" : added the .jar files of the lib directory in org.drools.eclipse-5.1.0.SNAPSHOT.zip.

Re: [rules-users] Drools Flow: Problem with constraint in (Wait) State node

2010-04-15 Thread Mauricio Salatino
Hi Alan, Share with us the simple project, I can take a look on it and get back with some suggestions. 2010/4/15 > > I have a simple rule flow of the form: Start -> Work Item -> Wait State -> > Action -> End. > > The handler for the work item launches a separate thread, and then > completes. Th

[rules-users] Upload an existing .drl for the Guvnor dynamically

2010-04-15 Thread Vandewilly
Is there any api available that allows me to load an existing file drl for the Guvnor repository. In my case, I can not upload through the web interface, only in a dynamic way through a java class. -- Vandewilly Oliveira ___ rules-users mailing list rul

[rules-users] Fwd: Double Handling

2010-04-15 Thread Edson Tirelli
Sorry, I meant to send this to the list. Ade, let us know if that solves the problem. Edson -- Forwarded message -- From: Edson Tirelli Date: 2010/4/15 Subject: Re: [rules-users] Double Handling To: Ade Timi Ade, There you go: https://jira.jboss.org/ji

Re: [rules-users] Fusion and open-ended intervals?

2010-04-15 Thread Edson Tirelli
Barry, This is usually solved using a pattern called "event abstraction". You model your "EventXStarted" and "EventXEnded" as atomic events (i.e., no duration) and write rules that depend on the start/end of the event against these atomic events. Then, you use a correlating rule to abstrac

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread Mauricio Salatino
done, it's working.. my next assignment for free time will be variable persistence strategies for work items. :) On Thu, Apr 15, 2010 at 8:50 AM, Mauricio Salatino wrote: > fix for the NPE is commited.. I will need to review some variable > persistence issues with out mappings. > I will keep you

Re: [rules-users] Fusion and open-ended intervals?

2010-04-15 Thread Barry Kaplan
If I understand you correctly Edson, you have provided a better description to solution 1) in my post above. This works to a degree but leaves a bit to be desired. For example when correlating instant events as "during" the interval events (ie, startX, endX, eventX) those correlations cannot simp

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread tolitius
great, thank you! I see that the JIRA is still open, and hasf "Fix Versions: None". I take it it is fixed in M2, right? /Anatoly -- View this message in context: http://n3.nabble.com/Resuming-Flow-NPE-when-completing-a-work-item-tp716847p721488.html Sent from the Drools - User mailing list a

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread Mauricio Salatino
yes.. it will be on M2 and the trunk if you need it right now. On Thu, Apr 15, 2010 at 11:47 AM, tolitius wrote: > > great, thank you! > > I see that the JIRA is still open, and hasf "Fix Versions: None". > > I take it it is fixed in M2, right? > > /Anatoly > -- > View this message in context:

Re: [rules-users] Fusion and open-ended intervals?

2010-04-15 Thread Edson Tirelli
Barry, Yes, your understanding matches mine. The decision to make timestamp and duration constant is due to the many side-effects that making them mutable bring, as you guessed. I really want to do the next step and allow mutable temporal properties, but that requires much more research

[rules-users] Timer node issue when using ksession created with JPAKnowledgeService

2010-04-15 Thread nanic23
Hi all, I successfully implemented a Timer node and trigger it by doing: final StatefulKnowledgeSession ksession = knowledgeBase.newStatefulKnowledgeSession(); new Thread(new Runnable() { public void run() { ksession.fireUntilHalt(); } }).s

Re: [rules-users] Resuming Flow: NPE when completing a work item

2010-04-15 Thread nanic23
Thanks a lot Mauricio!!! It is very appreciated. Nick. -- View this message in context: http://n3.nabble.com/Resuming-Flow-NPE-when-completing-a-work-item-tp716847p721634.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-

Re: [rules-users] Fusion and open-ended intervals?

2010-04-15 Thread Greg Barton
The system I work on (sadly not drools based) at Southwest airlines is structured similarly to this. (The interval events are mutable, however.) In my case the intervals describe the activity of aircraft at airports. Events describing aircraft activity (leave gate, take off, land, enter gate)

[rules-users] Guvnor Test Scenario Expectations

2010-04-15 Thread AndreaLee
I am evaluating Drools 5 and Guvnor for a project and have a question regarding Test Scenarios created in Guvnor. Is it possible to configure a Test Scenario in Guvnor to fail if a rule that is not explicitly expected is fired? I can not find a way of achieving this without creating another expec

[rules-users] Building from source

2010-04-15 Thread nanic23
Hi all, Could anyone please post a "step-by-step" guide in how to build Drools from source. I have never built it from source and I know that there is lot of people out here that does it. Something simple and clear as a 1. 2. 3. .. guide. Thank you very much!!! Nick. P.S. I'm doing

Re: [rules-users] Fusion and open-ended intervals?

2010-04-15 Thread Barry Kaplan
Actually Greg I did something very similar. Since drools locks down the event temporal values, I added to my event class some helper methods indicating whether the interval is open or closed: abstract class Event { def interval: Interval // joda interval def isOpen = interval.end.getMillis =

Re: [rules-users] Building from source

2010-04-15 Thread Esteban Aliverti
1. sudo apt-get install subversion maven2 2. svn checkout http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/ 3. mvn -DskipTests clean install Quite simple ;) If you want to run all the tests, skip -DskipTests parameter. On Thu,

Re: [rules-users] Building from source

2010-04-15 Thread nanic23
Hi Steban, Thank you so much for your post. I will try that and hopefully it will go just fine. If I have any problems/questions I'll post back here :) Thanks, Nick -- View this message in context: http://n3.nabble.com/Building-from-source-tp722456p723111.html Sent from the Drools - User mail

[rules-users] Drools on android

2010-04-15 Thread Justin King
Hi All, I'm wondering if anyone has tried to use drools in a google android application, and if so what problems did you have? I'd also be interested to know if its even possible! Thanks! -- Regards, Justin King PhD Candidate Faculty of Information and Communication Technologies Swinburne Univ

Re: [rules-users] Building from source

2010-04-15 Thread Robert
Hi, if I had known the -DskipTests flag, because if you leave this away (as in the doc) you get errors. I removed the tests by hand and then it worked. So, I am currious if you leave the skipTests-flag away if it works. Cheers, Rob. Am 16.04.2010, 02:21 Uhr, schrieb Esteban Aliverti : > 1.