[rules-users] How to import standard java classe(eg: wrapper classes) inside a drools guvnor.

2010-10-06 Thread sumatheja
Hi I am new to drools. Forgive me if the question iam asking is too dumb :P. I want to write java code inside the rules in the drools-guvnor using the standard classes, like parsing a string using wrapper classes. How can i import these java classes? -- Thanks and Regards, Sumatheja

[rules-users] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
an exception: +Ee.toString()); } end* However if i remove the try catch block it buils fine. Can anyone let me know if i'm missing something here. Thanks in advance :) -- cheers Sumatheja ___ rules-users mailing list rules-users@lists.jboss.org https

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

2010-10-13 Thread sumatheja
a ; after $c.getModel(). ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules

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] Exception Handling in the rule consequence

2010-10-13 Thread sumatheja
sumatheja sumath...@gmail.com Hi Wolfgang, I am actually writing all the rules in a .drl and importing them into a guvnor. I didn't mention the dialect explicitly anywhere in the code. Is the default dialect MVEL. Is there a way to make one time declaration of dialect in my case

[rules-users] Variable Notation in rule Condition

2010-10-13 Thread sumatheja
field *HostName*. It works fine when i use *hostName*. Can anyone explain me the concept behind this. Thanks in advance :) -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo

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

2010-10-13 Thread sumatheja
://salaboy.wordpress.comhttp://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.arhttp://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 regarding the notation used inside the rule's condition. I

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

2010-10-15 Thread sumatheja
the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju

[rules-users] Performance effect due to eval?

2010-10-18 Thread sumatheja
Hi All, Is it true that the performance of RETE algorithm gets affected if we use eval function in the rules conditions? Can anyone explain if this is true. -- cheers ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Performance effect due to eval?

2010-10-18 Thread sumatheja
- is still better than naive or brute force searches. -W On 18 October 2010 08:47, sumatheja sumath...@gmail.com wrote: Hi All,        Is it true that the performance of RETE algorithm gets affected if we use eval function in the rules conditions? Can anyone explain if this is true. -- cheers

[rules-users] Unable to use StatefulKnowledgeSession inside a webservice

2010-11-10 Thread sumatheja
Hi All, I'm trying to expose a class as a web service using jax ws. The class has methods using StatefulKnowledgeSession . Everything goes on well if i omit those fields. Any idea on this?? -- cheers Sumatheja Dasararaju ___ rules-users mailing

[rules-users] Unable to parse changeset of guvnor-5 in jboss-4

2010-11-29 Thread sumatheja
/xyz.pkg' type='PKG' / /add /change-set Any help will be much appreciated. Thanks. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Usings joins in decision tables

2012-04-03 Thread sumatheja
Hi All, I'm new to using decision tables. I'm trying to create a join in the condition column like when Header($a:id) SubHeader($b:id==$a) How to achieve this in decision tables. Any help will be appreciated. -- cheers ___

Re: [rules-users] Usings joins in decision tables

2012-04-05 Thread sumatheja
is the word null (no quotatioin marks) and not an empty value. You could use any other check in the Header column that is always true (e.g. id 0 in which case 0 would become the row value, etc). With kind regards, Mike On 3 April 2012 14:39, sumatheja sumath...@gmail.com wrote: Hi All

[rules-users] Runtime jitting exception while inserting facts

2012-04-11 Thread sumatheja
) at org.drools.rule.constraint.MvelConstraint.jitEvaluator(MvelConstraint.java:166) ... 15 more Can someone tell me the possible causes. This happens with very few facts making it even more confusing. Thanks in advance -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-11 Thread sumatheja
know, what exactly the exception means and any possible scenario when it can occur On Wed, Apr 11, 2012 at 7:42 PM, Mario Fusco mario.fu...@gmail.com wrote: Hi Sumatheja, thanks for reporting this, but I'd need to have some more informations in order to reproduce your problem. Which version

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
Can you let me know if I missed anything while migrating to CR1?? Thanks in advance. On Thu, Apr 12, 2012 at 8:29 AM, sumatheja sumath...@gmail.com wrote: Hi Mario... This exactly, seems to be the problem. I'm getting the exception exactly at 21st record. I'll try it on CR1

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
Thanks Toni. Eagerly awaiting for your response :) 2012/4/12 Toni Rikkola toni.rikk...@gmail.com I'll check if there is a bug in Guvnor. It could cause the SocketException. Toni On Apr 12, 2012, at 12:06 PM, sumatheja wrote: Hi Mario, I moved to 5.4 CR1. I replaced

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
directly from Guvnor? You could test the jitting error with that. Toni On Apr 12, 2012, at 12:30 PM, sumatheja wrote: Thanks Toni. Eagerly awaiting for your response :) 2012/4/12 Toni Rikkola toni.rikk...@gmail.com I'll check if there is a bug in Guvnor. It could cause the SocketException

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
) { for (KnowledgeBuilderError error: errors) { System.err.println(error); } throw new IllegalArgumentException(Could not parse knowledge.); } Can someone guide me through this. On Thu, Apr 12, 2012 at 12:11 PM, sumatheja sumath...@gmail.com

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread sumatheja
functionality, jus wanted to know anout it 2012/4/12 Michael Anstis michael.ans...@gmail.com Did you build the binary package in Guvnor? There was a big change to the serialization of packages in Drools Expert. On 12 April 2012 14:08, sumatheja sumath...@gmail.com wrote: Hi I tried deploying

[rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-16 Thread sumatheja
( C:\\Users\\Sumatheja\\workingmemory.info); FileOutputStream fos = new FileOutputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshall(baos, workingMemory

Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-16 Thread sumatheja
of org.drools.marshalling.impl.PersisterHelper.java available to me. -W On 16/04/2012, sumatheja sumath...@gmail.com wrote: Hi All, I ran across an issue while unmarshalling StatefulKnowledgeSession. First I'm marshalling the session using the following code which works fine Marshaller

Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-16 Thread sumatheja
I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out guvnor as possible cause). can someone guide if this is some bug? or should I change the jbpm jar version? On Mon, Apr 16, 2012 at 11:37 AM, sumatheja sumath...@gmail.com wrote

Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-16 Thread sumatheja
assets. Edson, I think I am right? We need to call this loud and clear in the release notes. sent on the move On 16 Apr 2012 12:33, sumatheja sumath...@gmail.com wrote: I'm getting the same issue when I try to unmarshall a sample application which has the jbpm process (which moves out

Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-16 Thread sumatheja
it is. Please note that this is temporary as we are talking about development (i.e., non-final) versions. Edson 2012/4/16 sumatheja sumath...@gmail.com Hi Michael... Thanks for the response I'm getting this exception even without a guvnor i.e. when I use a local project which has jbpm

[rules-users] Issue deploying 2.1 oryxdesigner on guvnor 5.4 CR1 and jboss 7.1.1 final

2012-04-16 Thread sumatheja
) succeeded. 17:00:18,682 INFO [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8380-5) Demo login for user (admin) succeeded. 17:00:18,765 INFO [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http--127.0.0.1-8380-10) Successfully deleted file :C:\Users\Sumatheja

Re: [rules-users] java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init while unmarshalling statefulknowledgesession

2012-04-17 Thread sumatheja
Thanks everyone for the help :)Its working fine with jbpm 5.3 development snapshot and drools 5.4 cr1... cheers!! On Mon, Apr 16, 2012 at 3:08 PM, sumatheja sumath...@gmail.com wrote: Thanks Edson... I expected this could be a ersion issue... can you send me the link for the latest

[rules-users] jbpm and rule flow

2012-04-20 Thread sumatheja
can remember in older versions of drools I never used to import these jars seperately. Is it recommended to continue writing rule-flows with the latest versions?? I'll be grateful if someone can provide me a link where I can get my confusions cleared. Thanks in advance -- cheers Sumatheja

Re: [rules-users] Existing StateFulKnowledgeSession not taking the changes in the Guvnor

2012-05-01 Thread sumatheja
, sumatheja sumath...@gmail.com wrote: Hi All, I have a problem refreshing the sateful knowledge session whenever there is a change in the rules assets int he guvnor. Below is my code used for configuration StatefulKnowledgeSession ksession = null

[rules-users] Even to check if all the rules have been fired

2012-05-03 Thread sumatheja
Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Even to check if all the rules have been fired

2012-05-03 Thread sumatheja
your intent with fireUntilHalt(), but why do it in a roundabout way? -W On 3 May 2012 15:11, sumatheja sumath...@gmail.com wrote: Hi All, I'm using a stateful knowledge session in my project, where * ksession.fireUntilHalt()* will trigger the rules as and when the facts

Re: [rules-users] Even to check if all the rules have been fired

2012-05-03 Thread sumatheja
determine when to call halt, in all possible circumstances. Then, and only then, it would be the same thing. But using halt is more compulsive: you must not miss calling halt(). -W On 3 May 2012 16:50, sumatheja sumath...@gmail.com wrote: Hi wolfgang, Thanks for the response

[rules-users] Getting Current Date in LHS of a rule

2012-05-09 Thread sumatheja
Message(*testDate new Date()*) then System.out.println(Test); end Do I have to insert a seperate fact which will contain the current date? Thanks in advance. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Getting Current Date in LHS of a rule

2012-05-09 Thread sumatheja
0:00:00, you should establish a global variable of type Date and initialize it after creating your session and before inserting any facts. -W On 09/05/2012, sumatheja sumath...@gmail.com wrote: Hi All, Can anyone tell me if there is a variable or standard way to get the *current

[rules-users] unable to write a function in guvnor with generic List as a parameter

2012-05-10 Thread sumatheja
I missing anything? Thanks in advance. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] unable to write a function in guvnor with generic List as a parameter

2012-05-10 Thread sumatheja
Thanks for the response. so I guess I need to typecast and use it. :) On Thu, May 10, 2012 at 4:44 PM, FlyingEagle elisabeth.wi...@wincor-nixdorf.com wrote: Hi Sumatheja, bad news... Guvnor doesn't support generics. I had the same problem and now I am working without type safe definitions

Re: [rules-users] unable to write a function in guvnor with generic List as a parameter

2012-05-10 Thread sumatheja
be expected to either. Waiting for somebody to correct me... and having a heap of work to do on Guvnor. ;) On 10 May 2012 16:56, sumatheja sumath...@gmail.com wrote: Thanks for the response. so I guess I need to typecast and use it. :) On Thu, May 10, 2012 at 4:44 PM, FlyingEagle

Re: [rules-users] unable to write a function in guvnor with generic List as a parameter

2012-05-10 Thread sumatheja
. Thanks. sent on the move On 10 May 2012 17:45, sumatheja sumath...@gmail.com wrote: Hi Michael, When I try to add a global variable like *global java.util.ListInteger tresholdList;* the package build properly without issues. On Thu, May 10, 2012 at 5:30 PM, Michael

[rules-users] Problem importing bpmn process into oryx designer

2012-05-11 Thread sumatheja
Hi, I've created a simple bpmn flow which has a start noden rule-flow task and end. When I try to import it from oryx designer and validate it it gives an error saying cannot find process image. Can anyone help me know what I'm missing. -- cheers Sumatheja Dasararaju sample.bpmn Description

Re: [rules-users] Problem importing bpmn process into oryx designer

2012-05-11 Thread sumatheja
the process image by clicking on the PNG button on the footer bar. Once you have generated your process image and re-validate this warning should no longer be there. Hope this helps. Tihomir On 5/11/12 10:45 AM, sumatheja wrote: Hi, I've created a simple bpmn flow which has a start noden rule

Re: [rules-users] Problem importing bpmn process into oryx designer

2012-05-11 Thread sumatheja
/11/12 11:30 AM, sumatheja wrote: Thanks for the response. I've another doubt, can you let me know how to check the logic thats implemeted in an OR gate in the flow.In my case I'm using the name field in a Manufacturer fact to redirect the flow. I'm unable to find it in the properties

[rules-users] Issue while comparing BigDecimal and Long(only while using references)

2012-05-15 Thread sumatheja
properly. Is this an issue or am I missing anything? Any suggestions for better approach are welcome.Thanks in advance. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] how to loop back in bpmn process

2012-05-16 Thread sumatheja
. But the problem is XOR expects always atleast one branch to be true which is not necessarily true here and, if I use AND both should be true which again is not valid here. Can someone suggest a way to achieve this behaviour. Thanks in advance. -- cheers Sumatheja Dasararaju attachment

[rules-users] KnowledgeAgent exception while migrating from 5.4 CR1 to 5.4 final

2012-05-22 Thread sumatheja
appreciated.Thanks in Advance. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] KnowledgeAgent exception while migrating from 5.4 CR1 to 5.4 final

2012-05-22 Thread sumatheja
. Drools Expert had a big change to the serialization\de-serialization mechanism and, AFAIK, it is not backwardly compatible. This is worth trying before anything else. On 22 May 2012 17:21, sumatheja sumath...@gmail.com wrote: Hi, I've a drools application running on drools 5.4 cr1

Re: [rules-users] how to use only updated value in drools

2012-05-29 Thread sumatheja
/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] how to use only updated value in drools

2012-05-29 Thread sumatheja
://lists.jboss.org/mailman/listinfo/rules-users -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] unable to build expression for 'constraint' null': java.lang.NullPointerException with bpmn processes

2012-06-11 Thread sumatheja
, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Mon, Jun 11, 2012 at 9:17 PM, sumatheja sumath...@gmail.com wrote: Hi All, I've a set of bmpn2 processes. When I try to compile them locally, its compiles fine. But when I

Re: [rules-users] unable to build expression for 'constraint' null': java.lang.NullPointerException with bpmn processes

2012-06-11 Thread sumatheja
Thanks for the response.. I found that there was no condition for a branchout in the split condition and when I fixed it everything was fine. I have no idea how it is successfully compiling locally with this error. On Tue, Jun 12, 2012 at 8:34 AM, sumatheja sumath...@gmail.com wrote: Thanks

[rules-users] issue with date comparison

2012-06-21 Thread sumatheja
of current date in *dd-MMM-* rule fire fine. Can someone please suggest me a way to achieve this. Thanks in advance. -- cheers Sumatheja Dasararaju ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users