Re: [rules-users] Parallel processing of large batches of facts

2010-10-13 Thread Tim Jones
Interesting suggestions. Couple of questions: Is drools not internally able to multithread a single execution of fireallrules? Does CEP offer performance benefits, or is it just a different way of structuring the problem? Cheers, Tim 2010/10/12 Michael Anstis michael.ans...@gmail.com Can

Re: [rules-users] Check if fact is subset of items in the rule

2010-10-13 Thread Michael Anstis
Thanks, please provide a specific example rule too. Don't forget to keep your posts to the mailing list for the good of the community. On 12 October 2010 22:18, Kumar Pandey kumar.pan...@gmail.com wrote: Michale Thanks for the response. Here's the link for the thread .

Re: [rules-users] Parallel processing of large batches of facts

2010-10-13 Thread Michael Anstis
Hi Tim, I don't believe Drools internals provides multi-threading under usual operation. If you start to use Timers and Calendars in your rules I have a strong suspicion that it will; however this is an edge case. CEP has the benefit of automatically garbage collecting facts that can no longer

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread KiranP
Does nobody have the sol-n for this one?? that not what i expect from this community.. - Keep Working KiranP -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Spring-Config-for-Knowledge-Agent-tp1634280p1693296.html Sent from the Drools -

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread Swindells, Thomas
I'd refer you to one of the other emails: Rules Fest is in full swing, http://rulesfest.org/html/home.html. Great attendance with around 100 people and great food :) Myself[Mark], Edson and Davide are here. Davide did a great lunch time talk. Kris will be arriving on Wednesday to help with the

Re: [rules-users] Parallel processing of large batches of facts

2010-10-13 Thread Swindells, Thomas
How would you expect Drools to multithread? From what I understand drools operates in two steps: 1. When facts are inserted drools constructs and update Rete graph, generating an ordered list of 'activations' of rules (and the corresponding data) which can be fired. There is a

Re: [rules-users] Parallel processing of large batches of facts

2010-10-13 Thread Tim Jones
I wasn't sure what was possible as I didn't know the inner workings of the algorithm. Thanks, you've cleared up my understanding quite a bit. Do you happen to know if Fusion is any different? Or is it still a case of having to partition the data/streams to get parallelism? Cheers, Tim

Re: [rules-users] Parallel processing of large batches of facts

2010-10-13 Thread Michael Anstis
Fusion uses exactly the same principles as the core engine; however the event (facts of type event) life-cycle is managed by the engine. You'd still need to partition to get parallelism otherwise the possibility of dependencies between rules\facts\events in each process still arise. 2010/10/13

[rules-users] Interfaces without inputs and with multiple operations

2010-10-13 Thread sam . squire
Hello there, I am using BPMN and trying to call a ServiceTask without any input messages. Unfortunately the BPMN specification seems to require exactly one inMessageRef. Is there a way to get it to call a method without arguments, like doStuff() ? Is there any way to get around this without

[rules-users] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
Hi All, I have a set of rules. After firing the rules if an exception occurs in a rule the following rules are not getting evaluated. So i tried writing a try catch block inside the consequence part of the rule, but then i get an error saying 'unable to build the consequence.[Error:was

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread Leandro Romero
I dont know if this will fix your problem, but you forgot a ; after $c.getModel(). ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
Hi leandro, Thanks for replying. I didn't forget the ; in the actual code. The code i have pasted is the sample one similar to my original code. sorry for the typo. 2010/10/13 Leandro Romero leandro.s.rom...@gmail.com I dont know if this will fix your problem, but you forgot a ;

Re: [rules-users] Is it possible to use CEP features in Guvnor?

2010-10-13 Thread John Peterson
I've done some additional experimentation and verified that you can't run Test Scenarios (at least, can't run them successfully). I did discover that I could create a Technical Rule that has the declare to establish our object as an event. I'm sure this isn't intended, but it works For

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
Hi Michael, I have written this rule in the guvnor editor, i did import java.lang.Exception. 2010/10/13 Michael Anstis michael.ans...@gmail.com Did you import the Exception class? 2010/10/13 sumatheja sumath...@gmail.com Hi All, I have a set of rules. After firing

Re: [rules-users] Check if fact is subset of items in the rule

2010-10-13 Thread Kumar Pandey
Michael Here are some examples Rule1 has str1, Str2, Str3 Rule2 has str2, Str3, Str5, Str6, Str7 Rule3 has str1, Str3, Str6 etc. With fact1 that has str1, Str3 , since this is subset of values in Rule1 and Rule3, they should not fire but Rule2 should fire With fact2 that has str2, Str6,

Re: [rules-users] Check if fact is subset of items in the rule

2010-10-13 Thread Michael Anstis
Not as clear as I'd hoped; can you provide an actual rule DRL? 2010/10/13 Kumar Pandey kumar.pan...@gmail.com Michael Here are some examples Rule1 has str1, Str2, Str3 Rule2 has str2, Str3, Str5, Str6, Str7 Rule3 has str1, Str3, Str6 etc. With fact1 that has str1, Str3 , since

Re: [rules-users] Resuming a simple process involving human task

2010-10-13 Thread krkaleraj
Hi Touma, Did you manage to get this working? I am getting the same issue. My usecase is, a Process with a ruleflow group and a workitem. BTW, my workitem is simple pojo (wanted to keep it simple for testing purpose which prints a msg). When I try reload the session and try signalling the

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread Wolfgang Laun
I'd say you are using dialect mvel There is no try/catch statement in MVEL. You have the options: (1) Use Java, not MVEL. (2) Surround the fireAllRules() with try/catch and put it in a loop that's terminated if there is no exception. -W 2010/10/13 sumatheja sumath...@gmail.com Hi All,

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
Could you please create an isolated test case for this? I'm at the rule fest right now, but i would like to take a look at this later. Best, El oct 13, 2010 6:57 a.m., Swindells, Thomas tswinde...@nds.com escribió: I'd refer you to one of the other emails: Rules Fest is in full swing,

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
Hi Wolfgang, Whats the advantage of option 2 over 1? Can you give sample code for option 2?? 2010/10/13 Wolfgang Laun wolfgang.l...@gmail.com In drl, you could use dialect java at outermost level, but one never does, because that's the default. I'd use option (2). -W 2010/10/13

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread krkaleraj
Hi Esteban, I dont think we need separate usecase here. At least in my case i have tried with the test case provided in the source code 5.1.1. Please try in this package Version: 5.1.1 Module Name: drools-container Test class:

[rules-users] DRL Functions

2010-10-13 Thread Swindells, Thomas
I've just been writing what should be a really simple function in my DRL. What I wanted to do is to take an object in, construct another object from it and then insert both into working memory. Eg. function void insertBoth(Object1 object1) { insert(new Object2(object1)); insert(object

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
I'm asking you for a test because there is already a test in drools that uses kagent+kbase spring configuration. The test is org.drools.container.spring.SpringDroolsTest and uses org/drools/container/spring/kagents-beans.xml configuration file. Could you check the tests present in that class?

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread esteban.alive...@gmail.com
case 1 could be: *package something* * * *dialect java * * * *rule Some rule* * when* * Something()* * then* * try{* * callSomeDangerousLogicHere();* * catch (Exception ex){* * //manage your exception here* * }* *end* * * The second approach is to write

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread krkaleraj
Thanks for the response. In fact, I have seen these files earlier. Moreover I am just trying to run the test provided which is not working. The file you mentioned has kagent but missing persistence configuration. I doubt this issue comes while you are trying to configure JPA. Please configure

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
I'm running 5.2.0.SNAPSHOT here. What I did is to add a new test in JPASingleSessionCommandServiceFactoryTest: @Test public void testAgents() throws Exception { KnowledgeAgentImpl kagent1 = ( KnowledgeAgentImpl ) ctx.getBean( kagent1 ); } I also have added the agent's

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread Wolfgang Laun
Advantage: You don't have to code a handler in each and every consequence. A very simple strategy to keep on firing, in spite of exceptions: import org.drools.runtime.rule.ConsequenceException; while( true ){ try { kSession.fireAllRules(); break; } catch( ConsequenceException

Re: [rules-users] DRL Functions

2010-10-13 Thread Wolfgang Laun
Implementing this would require a detailed parsing of function bodies and more, to get the runtime object into the scope of the static methods compiled from DRL functions. As it is, a minor improvement is possible with: import org.drools.spi.KnowledgeHelper; function void ins( KnowledgeHelper

[rules-users] re-fire all rules

2010-10-13 Thread Yaniv Itzhaki
Hi there, Is there a way to reset the working memory so that all the rules will run again when fireAllRules() is called? (I am running the startProcess method number of times with the same working memory) I know that normally rules will only be run again when there was a change and the fact was

Re: [rules-users] Check if fact is subset of items in the rule

2010-10-13 Thread Michael Anstis
OK, unless I'm missing something else you should be able to do something like this:- rule setup superset - Rule 1 when then Element ss = new Element(Super set - Rule 1, 1, 2, 3); insert(ss); end rule rule 1 when $f : Fact() Element(name=Super set - Rule

[rules-users] How to Capture the rule which does not get executed

2010-10-13 Thread Navdeep Kumar
Hi All, I am new to Drools. I am working on a project where nature of rules are dynamic. I want to capture that rule which does not get executed. i need to store that rule because i have to display that rule in the UI. Here is my rule file rule FrontAxle:Capacity|FrontSuspension:Capacity when

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread krkaleraj
Hello Esteban, NOTHING CHANGES. Same issue continuous. Please check the exception stack trace in the post beginning by Kiran. We can not use 5.2 at the snapshot stage. Please let us know the work around. excerpt of my bean.xml is below... drools:kagent id=kagent1 kbase=kbProcessWorkItems

[rules-users] Question about drools server

2010-10-13 Thread Xinhua Zhu
Hi I am a new guy on drools server. I am trying to exposed drools rules in web services. I downloaded Drools Guvnor Standalone from website, it includes Jboss, then I put drools server war file in deploy folder, and start the Jboss. When I input http://localhost:8080/drools-5.1.1-server/; in

Re: [rules-users] How enable authentication on specific KnowledgeBase (Drools Guvnor) for to control who access from Java remote client

2010-10-13 Thread Mauricio Cáceres
Hi Guys Is possible to enable authentication for java remote client??? I saw is possible if use basicAuthentication='enabled' at change-set.xml but my question is how configure security only for one knowledgebase and only allowed to connect if the client have grants for execute the package.

Re: [rules-users] How enable authentication on specific KnowledgeBase (Drools Guvnor) for to control who access from Java remote client

2010-10-13 Thread Jervis Liu
On 2010/10/14 11:42, Mauricio Cáceres wrote: Hi Guys Is possible to enable authentication for java remote client??? I saw is possible if use basicAuthentication='enabled' at change-set.xml but my question is how configure security only for one knowledgebase and only allowed to connect if

Re: [rules-users] Question about drools server

2010-10-13 Thread Ji Oh Yoo
(sorry I am not providing an answer here...) I have the same problem here, and I think the camel-client.xml file needs more settings or other changes. My original thread about the problem is : http://drools-java-rules-engine.46999.n3.nabble.com/calling-drools-server-td1687129.html#a1687129 --

[rules-users] Variable Notation in rule Condition

2010-10-13 Thread sumatheja
Hi All, I have this doubt regarding the notation used inside the rule's condition. I have a fact HOST having the variables* HostName* and * CPUSockets*. I have the following rule rule Test when HOST(HostName!=null, CPUSockets3) then # do something Is throws an error saying cannot extract

Re: [rules-users] Variable Notation in rule Condition

2010-10-13 Thread Salaboy
In your beans Do you use caps for attributes ? - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio Salaboy Salatino - On 13/10/2010, at 22:20, sumatheja sumath...@gmail.com wrote: Hi All, I have this doubt

Re: [rules-users] Variable Notation in rule Condition

2010-10-13 Thread sumatheja
Should not be using according to convention but yes i used it that way. In the below case CPUSockets is not giving any error. 2010/10/14 Salaboy sala...@gmail.com In your beans Do you use caps for attributes ? - CTO @ http://www.plugtree.comhttp://www.plugtree.com - MyJourney @