[rules-users] NullPointerException when using Drools rule template

2010-11-08 Thread Roger Smith
All - I tried out Drools rule template with a with a proptotype app. Drools is throwing NullPointerException as below. I would much appreciate if someone on this list can help. java.lang.NullPointerException at org.drools.template.parser.DefaultTemplateColumn.createCellCondition(DefaultTempla

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-08 Thread Samuli Saarinen
On 8.11.2010 16:43, Edson Tirelli wrote: > Please open a JIRA. If it is not creating a new fact type, i.e., > only attaching metadata to existing types, it should either "merge" > metadata or raise errors. > > Also, documentation was not updated in that place. Can you mention > that please,

Re: [rules-users] [Drools Flow] checking Properties of supplied variables in constraints

2010-11-08 Thread Kris Verlaenen
You can download the XSD here: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/main/resources/META-INF/drools-processes-5.0.xsd And each node type and their attributes are explained in the docs: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/t

Re: [rules-users] Performance monitoring and hotspot detection in rules?

2010-11-08 Thread H.C.
Thanks Mark, will try that. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Performance-monitoring-and-hotspot-detection-in-rules-tp1850756p1864068.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] Guvnor and oryx designer problems

2010-11-08 Thread melc
I'm really sorry for the previous log please ignore it, it is associated with some other error The log related to the error displayed ("Sorry, a technical error occured. Please contact a system administrator") when using guvnor SNAPSHOT 5.2.0 is the following, (Thanks) 2010-11-08 17:48:

[rules-users] Guvnor and oryx designer problems

2010-11-08 Thread melc
Hello everyone, I have added a sample.bpmn workflow (this is the default eclipse sample with an extra Script Task printing goodbye to the console before ending) from eclipse to guvnor, then i tried to edit the sample.bpmn from guvnor using the oryx designer 1.0.0.026-SNAPSHOT from http://anonsvn.

[rules-users] Drools-flow: Event within foreach throws ClassCastException

2010-11-08 Thread Liße , Jan
Hello, i'm using the latest version 5.1.1 of drools-flow for a POC project. I have a process definition where I have an intermediate event node within a foreach CompositeNode. When I trigger the event using processInstance.signalEvent() I get a ClassCastException: java.lang.ClassCastException:

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-08 Thread Edson Tirelli
Please open a JIRA. If it is not creating a new fact type, i.e., only attaching metadata to existing types, it should either "merge" metadata or raise errors. Also, documentation was not updated in that place. Can you mention that please, as we need to fix as well. Explicit expiration polici

Re: [rules-users] [Drools Flow] checking Properties of supplied variables in constraints

2010-11-08 Thread Gregor Ryba
Hi Kris, You were right - now it's working. i had just copied the rule-constraint from annother sample i was basing my app on. didn't know that a code constraint was existing. is there a more low level documentation available that describes Drools on XML level (what types/keywords are allowed)

Re: [rules-users] Same rules applies twice

2010-11-08 Thread Nicolas Héron
Hello, I made a small test class result package com.sample; public class Result { private long resultId; public long getResultId() { return resultId; } public void setResultId(long resultId) { this.resultId = resultId; } public Result(long resultId) { super(); this.resultId = resultId; } } clas

Re: [rules-users] Same rules applies twice

2010-11-08 Thread Wolfgang Laun
If there are two Result() facts which aren't identical and you want to match only one in your rule you'll have to (a) provide a distinguishing restriction (b) use some information saying that the rule has already fired for a certain resultId. For the latter, you could use the Test fact. Not being

Re: [rules-users] Same rules applies twice

2010-11-08 Thread jc7442
My technical id is a long. But if I just do an equals id does not chage the issue. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Same-rules-applies-twice-tp1861724p1861859.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] Same rules applies twice

2010-11-08 Thread jc7442
In fact here I need the two results ... this is the result for the same computation ... but at different step. So they are attached to the same test. Here I want to create or reload and existing tests. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Same-r

Re: [rules-users] Same rules applies twice

2010-11-08 Thread Wolfgang Laun
Inserting two equal objects results in two facts, and each will trigger a matching rule. If your class Result contains a proper implementation of equals() and hashCode(), you may use KnowledgeBaseConfiguration conf = conf.setOption( AssertBehaviorOption.IDENTITY ); KnowledgeBase kbas

Re: [rules-users] Same rules applies twice

2010-11-08 Thread Vincent Legendre
Title: CARTE DE VISITE And what is your "technical id" ? This one must be unique by resultId, so why don't you use this resultId to identify your Test objects ? Le 08/11/2010 10:44, J-C Walmetz a écrit : Hi I use

[rules-users] Same rules applies twice

2010-11-08 Thread J-C Walmetz
Hi I use Drools 5.01 I have the following rules: rule "Reload test" salience 1 when $result: Result( $resultId:resultId) not (exists Test(resultId.technicalId==$resultId.technicalId)) then Test test = createTest($resultId); insert(test); end When I

Re: [rules-users] Some Problem with drools-persistence-jpa Library

2010-11-08 Thread tangrui...@gmail.com
Thank you, Kris, this works well. But I think when using pi.signalEvent under persistence environment, a more reasonable exception other than NPE would better be used! This is really confused if I don't know the truth. 2010/11/8, Kris Verlaenen : > Hi, > > If you use persistence, you should use ks