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
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,
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
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.
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:
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.
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:
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
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)
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
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
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.
__
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
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
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
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
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
17 matches
Mail list logo