Re: [rules-users] Drools 5.3 is not working in a OSGi tycho building

2011-12-28 Thread Mauricio Salatino
Hmm I'm not sure.. I'm creating my own bundles here. But it seems that the bundle can be auto-genarated by a maven plugin that is picking the project version to generate the bundle.. I'm just guessing.. 2011/12/27 Cristiano Gavião cvgav...@gmail.com: Hi again, Could someone from the Drools

Re: [rules-users] Decision table multiple sheets...

2011-12-28 Thread Sumeet Karawal
Hi, Thanks all for the responses. I was able to parse the sheets(I had sheets with only decision tables) with the help of below code : Pasting my code : KnowledgeBase kbase = readBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

Re: [rules-users] Drools 5.3 is not working in a OSGi tycho building

2011-12-28 Thread Cristiano Gavião
Hi Mauricio, Yep, drools-core's Manifest.MF is being auto-generated by the maven-bundle-plugin. it is ok: plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId extensionstrue/extensions executions execution idmanifest/id phaseprocess-classes/phase goals

Re: [rules-users] Drools 5.3 is not working in a OSGi tycho building

2011-12-28 Thread Mauricio Salatino
Yes you should :) 2011/12/28 Cristiano Gavião cvgav...@gmail.com: Hi Mauricio, Yep, drools-core's Manifest.MF is being auto-generated by the maven-bundle-plugin. it is ok:   plugin     groupIdorg.apache.felix/groupId     artifactIdmaven-bundle-plugin/artifactId    

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread G S
Same Problem!!! Not Jbpmn2 not working Here is the step what I did, 1) download designer-2.0-jboss7.war and copied to C:\jboss-as-web-7.0.0.Final\standalone\deployments\ 2) copied guvnor-5.4.0.Beta1-jboss-as-7.0 in same folder c:\\deployments\ and replaced name with drools-guvnor.war 3) run

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread Tihomir Surdilovic
On 12/28/11 9:37 AM, G S wrote: Same Problem!!! You should probably just add an empty designer-2.0-jboss7.war.dodeploy file in the $jbossas/standalone/deployments directory. Hope this helps. Not Jbpmn2 not working Here is the step what I did, 1) download designer-2.0-jboss7.war and copied

[rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread Ronald Albury
MVEL appeared to be null pointer protected when it evaluated our rules ... at least until it got to a Boolean attribute. In every other instance when an value is null Drools skips over the rule ... however, I get the null pointer exception listed above when Drools goes to execute this rule and

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread G S
you mean just rename? because I am seeing designer-2.0-jboss7.war.failed file in this directory.. On Wed, Dec 28, 2011 at 8:49 AM, Tihomir Surdilovic tsurd...@redhat.com wrote: On 12/28/11 9:37 AM, G S wrote: Same Problem!!! You should probably just add an empty

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread G S
Yeah, its working, I just renamed... Let me create some process and see if it works properly. On Wed, Dec 28, 2011 at 9:00 AM, G S gshrestha1...@gmail.com wrote: you mean just rename? because I am seeing designer-2.0-jboss7.war.failed file in this directory.. On Wed, Dec 28, 2011 at 8:49

Re: [rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread ronalbury
I commented out the rule causing the null pointer error. When it got to another null Boolean value (this time without negation) I got another (different) null pointer exception: org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:104) -- View this message in

[rules-users] Possible bug with isA operator

2011-12-28 Thread Mike Melton
I am having trouble getting the isA operator to work with POJO facts. The problem manifests in the IsAEvaluator.evaluate(...) method, line 163 (5.3.0.Final). This line checks whether the objectValue class is annotated with @Traitable. For a @Traitable fact fully declared in DRL, this line

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Davide Sottara
Thanks, Mike I'll take a look immediately -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Possible-bug-with-isA-operator-tp3616614p3616618.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread G S
I lost the process chart.. I saved successfully and hit save changes, the file disappear.. On Wed, Dec 28, 2011 at 9:03 AM, G S gshrestha1...@gmail.com wrote: Yeah, its working, I just renamed... Let me create some process and see if it works properly. On Wed, Dec 28, 2011 at 9:00 AM, G

Re: [rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread ronalbury
It appears that a work around is to test if the boolean value is equal to true or false. The following seems to work: $ea : EasyApp(getOwn_eaIsProposedInsuredIndAsBoolean() == false) -- View this message in context:

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread Tihomir Surdilovic
On 12/28/11 10:35 AM, G S wrote: I lost the process chart.. I saved successfully and hit save changes, the file disappear.. How about showing some logs if you have an issue instead of !!! and ... ? :) Please read first docs on how designer can be configured:

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread G S
Sorry for my lack of writing etiquette. I will definitely follow in future. I created new jbpmn and log is attached. Now, for jbpm.xml file, where i can find in Windows OS? I saw you are indicating $designer.war/profiles/jbpm.xml Best G On Wed, Dec 28, 2011 at 9:56 AM, Tihomir Surdilovic

Re: [rules-users] how to add jbpm-5.2.0 in Guvnor 5.4 Beta 1 (Jboss AS 7)

2011-12-28 Thread Tihomir Surdilovic
On 12/28/11 11:18 AM, G S wrote: Sorry for my lack of writing etiquette. I will definitely follow in future. I created new jbpmn and log is attached. Now, for jbpm.xml file, where i can find in Windows OS? I saw you are indicating $designer.war/profiles/jbpm.xml Best G Thanks, in your logs:

[rules-users] Empty rule and event retention

2011-12-28 Thread MarcoMojana
Hello everybody, I'm using drools 5.3.0-final to process events in stream mode with a pseudo clock. I have created an do-nothing rule as follows: rule Do nothing when $m : Message( ) from entry-point fromDb then end Then I add a big number of

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Davide Sottara
Thanks Mike, I have found and solved the problem, I'll commit the fix together with some other improvements in the next few days. Can you open a JIRA for this? The problem here is that, in order to be traited, objects need a few additional internal structures, hence the reason for the @Traitable

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Mike Melton
Davide, Thanks very much for the prompt reply and detailed explanation. I do have some control over my POJO facts (and most of them do already implement equals/hashCode correctly), so I will experiment with your presented alternative/workaround. I am excited about traits because they allow me to

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Mike Melton
The drawback here is that your legacy bean must implement equals() ad hashCode() appropriately, considering that an object might be compared not just with itself or objects of the same class, but also with instances of proxy subclasses. Ah! I missed that important point. I had actually tried

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Davide Sottara
Btw, if you agree I will include your submitted test cases in the trunk code -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Possible-bug-with-isA-operator-tp3616614p3617234.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Drools 5 Memory Issues

2011-12-28 Thread drools.user
Thanks for your reply. We are one month away from pushing our code into Production. So, I don't think we will be able to move to 5.4 beta 1. Even though code change involved might be minimal, it has to go through full testing cycle which is very time consuming. Also, I don't think Management will

Re: [rules-users] Drools 5 Memory Issues

2011-12-28 Thread Mark Proctor
On 28/12/2011 20:31, drools.user wrote: Thanks for your reply. We are one month away from pushing our code into Production. So, I don't think we will be able to move to 5.4 beta 1. Even though code change involved might be minimal, it has to go through full testing cycle which is very time

Re: [rules-users] Drools 5 Memory Issues

2011-12-28 Thread Mark Proctor
On 28/12/2011 21:54, Mark Proctor wrote: On 28/12/2011 20:31, drools.user wrote: Thanks for your reply. We are one month away from pushing our code into Production. So, I don't think we will be able to move to 5.4 beta 1. Even though code change involved might be minimal, it has to go

Re: [rules-users] Possible bug with isA operator

2011-12-28 Thread Mike Melton
Btw, if you agree I will include your submitted test cases in the trunk code Please do. Thanks. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Using DateFormat and getting today's date in drools5.0

2011-12-28 Thread kwyto
I'm having a similar problem, but so far I have found that drools.dateformat is a System Property. You can set it in your code by using System.setProperty(drools.dateformat, dd/MM/). although the default is dd-MMM- (12-DEC-2008). Also, I'm using tomcat so to set it using command line use

Re: [rules-users] Fw: Problems saving BPMN2 diagrams in Guvnor

2011-12-28 Thread Manohar Kokkula
Hi Tihomir,I also unable to save BPMN2.0 process, getting blank canvas after clicking save button.I changed designer too, still i am getting same problem.Please guide me to get ride of this error.Thanks and regards,Manohar Kokkula mail:manohar.kokk...@tcs.com- Forwarded by Manohar