Re: [rules-users] "==" not work for big int value

2010-11-18 Thread Mark Proctor
On 19/11/2010 01:34, Zeke wrote: Can anyone help me? Thanks! On 16 November 2010 09:57, Zeke > wrote: Hi, I'm using Drools 4.0.7. I find "==" operator does not work for big int value (like 2147483647). The condition is like "sec.fir.i == 21474

Re: [rules-users] "==" not work for big int value

2010-11-18 Thread Zeke
Can anyone help me? Thanks! On 16 November 2010 09:57, Zeke wrote: > Hi, > I'm using Drools 4.0.7. I find "==" operator does not work for big int > value (like 2147483647). The condition is like "sec.fir.i == 2147483647". I > attach my test code. With my simple testing, it seems that it does

[rules-users] Drools&jBPM Boot Camps 2011 USA - Sponsorship Needed

2010-11-18 Thread Mark Proctor
http://blog.athico.com/2010/11/drools-boot-camps-2011-usa-sponsorship.html I previously mentioned our next planned USA 2011 bootcamp: http://blog.athico.com/2010/09/drools-boot-camps-2011-usa-and-emea.html We are seeking sponsorship to help make this happen. These have been great events with gr

Re: [rules-users] How to store(get) rules in database

2010-11-18 Thread nkumar
that is not user friendly for non technical persons. And i am also new to drools. i read all those topics discussed here before, dint understand clearly but my requirement is exactly the same as discussed in those topics. -- View this message in context: http://drools-java-rules-engine.46999.n3

[rules-users] Integrate Fusion into Guvnor

2010-11-18 Thread Xinhua Zhu
Hi When Fusion can be integrated into Guvnor? BR Xinhua ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] How to store(get) rules in database

2010-11-18 Thread Steven Herod
Have you looked at guvnors? It may fulfil your implied business requirement. On 19/11/2010 4:54 AM, "Navdeep Kumar" wrote: > Hi, > > I want to store and then load rules from the database. I have seen that this > topic is already been discussed here but i did not understand that > completely that h

Re: [rules-users] Programatically adding rules toKnowledgeBase/StatefulKnowledgeSession

2010-11-18 Thread Nathan Bell
Here is a method cut & pasted from working code in a validation class used by some of my unit tests. I think it does what you are asking. private ValidationResult addDrlToKnowledgeBase(String drlAsString ) { ValidationResult ret

Re: [rules-users] Drools AgendaEventListener

2010-11-18 Thread Edson Tirelli
The obvious answer is those callbacks happen when rules are activated/cancelled/etc. If you are not seeing those callbacks, then your rules are not being activated. I copy&pasted your code bellow into the default drools sample project that is created when you create a new drools project in t

Re: [rules-users] Drools AgendaEventListener

2010-11-18 Thread Michael Anstis
Here's a working example of using AgendaEventListener... http://article.gmane.org/gmane.comp.java.drools.user/22375 Your example has the line attaching the AgendaEventListener to the session commented out. This wouldn't help ;-) Cheers, Mike 2010/11/18 Agarwal, Beena > Can anyone explain wh

[rules-users] Drools AgendaEventListener

2010-11-18 Thread Agarwal, Beena
Can anyone explain when the ActivationCreatedEvent, BeforeActivationFiredEvent,AfterActivationFiredEvent are actually triggered? I added a AgendaEventListener on a StatefulKnowledgeSession and never see the events being fired when I'm in the debugger. I'm basically trying to collect some session

Re: [rules-users] Building a rule base from the content of a directory

2010-11-18 Thread kyori
I have the same question. Could anybody help me? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Building-a-rule-base-from-the-content-of-a-directory-tp1835740p1925597.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] BuildError: Unable to resolve ObjectType

2010-11-18 Thread kyori
Hi, I've got exactly the same problem than u. Plz tell me if u have resolved it. Regards, -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/BuildError-Unable-to-resolve-ObjectType-tp702633p1925573.html Sent from the Drools - User mailing list archive at Nabb

[rules-users] How to store(get) rules in database

2010-11-18 Thread Navdeep Kumar
Hi, I want to store and then load rules from the database. I have seen that this topic is already been discussed here but i did not understand that completely that how can i do that. Can you please tell me the basic requirements, what tables do i need to make,how can i parse that data into a rule

Re: [rules-users] Drools Human Task Service Persistence

2010-11-18 Thread drooRam
wait a minute, is it like no one ever tried persisting human task in oracle before? so far the support is only for H2 in memory db? i wonder how this made into production system then? honestly, its not criticism, just wanted to know how others are doing without persistence of task, of course D

Re: [rules-users] Programatically adding rules to KnowledgeBase/StatefulKnowledgeSession

2010-11-18 Thread Michael Anstis
Hi, Have a look at KnowledgeBuilder's use of ResourceFactory. There's a newReaderResource() static method which could be passed a StringReader rather than writing to an intermediate file. AFAIK kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()) is effectively the "addRule" you desire.

[rules-users] Programatically adding rules to KnowledgeBase/StatefulKnowledgeSession

2010-11-18 Thread Pierre de Leusse
Hello all, I'm trying to add rules through my java code to a KnowledgeBase and I cannot find any easy way to do so. So far, the only solution I could think of, is to write the rule as DRL in a file that is "observed" by a KnowledgeAgent (same with a RuleAgent I suppose). Is it possible to creat

Re: [rules-users] Precompile Rules & Flows

2010-11-18 Thread Yaniv Itzhaki
Thanks, I will try that... 2010/11/18 Anderson Rocha > You can also use the CHANGE_SET. > > > http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch02.html#d0e890 > > A change_set example, where "rules" and "ruleflows" are folders that must > contain just .drl and .drf fi

[rules-users] My Gmail was hacked this morning; apologies

2010-11-18 Thread ljnelson
My GMail account was hacked this morning; sorry for the spam. Best, Laird -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/My-Gmail-was-hacked-this-morning-apologies-tp1924006p1924006.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] Precompile Rules & Flows

2010-11-18 Thread Anderson Rocha
You can also use the CHANGE_SET. http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch02.html#d0e890 A change_set example, where "rules" and "ruleflows" are folders that must contain just .drl and .drf files respectively: Also take a look at

Re: [rules-users] Precompile Rules & Flows

2010-11-18 Thread Wolfgang Laun
// Yesterday: serialize a KP collection OutputStream os = new FileOutputStream( pkgPath ); ObjectOutputStream oos = new ObjectOutputStream( os ); oos.writeObject( kBuilder.getKnowledgePackages() ); oos.close(); // Today: load serialized packages KnowledgeBase kBase = KnowledgeBaseFactory.newKnowle

[rules-users] Precompile Rules & Flows

2010-11-18 Thread Yaniv Itzhaki
Hi, I wanted to know if it is possible to precompile rules/flows and load them on demand? Currently i am using the following code: *KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); for (String file : files) {

[rules-users] Problems modifying objects in flow

2010-11-18 Thread raic
Hi, I'm using Drools commands API (http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-integration/html_single/index.html#d0e614) for interacting via REST to my Drools server for executing flows. I want to execute a simple flow with some human tasks. In this flow, I'm passing a clien