Anyone uses Guided Editor in Eclipse and Guvnor
by Küng Sabrina
Hello
Eclipse: Can anyone provide an example or better tutorial creating and executing a brl-File?
Guvnor: the guided editor seams buggy... any workarounds? I cannot populate an object with value (Error on page).
Regards,
Sabrina
14 years, 10 months
DROOLS Guvnor Build 5.2.x compilatio issue
by mahmood lebbai
Hi,
I had taken the latest code base of Guvnor 5.2.x , when i tried to build webapp , I'm getting following pom error.
C:\fixguv\5.2.xsource\guv\guvnor-webapp>mvn -X clean install -Dmaven.test.skip=t
rue
Apache Maven 3.0.3 (r1075438; 2011-02-28 10:31:09-0700)
Maven home: C:\software\apache-maven-3.0.3-bin\apache-maven-3.0.3
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: C:\glassfish3\jdk\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\software\apache-maven-3.0.3-bin\apache-m
aven-3.0.3\conf\settings.xml
[DEBUG] Reading user settings from C:\Documents and Settings\mlebbai\.m2\setting
s.xml
[DEBUG] Using local repository at C:\Documents and Settings\mlebbai\.m2\reposito
ry
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Doc
uments and Settings\mlebbai\.m2\repository
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountere
d while processing the POMs:
[FATAL] Non-resolvable parent POM for org.drools:guvnor:5.2.0.CR1: Failure to fi
nd org.drools:droolsjbpm-parent:pom:5.2.0.CR1 in http://repository.jboss.org/nex
us/content/groups/public/ was cached in the local repository, resolution will no
t be reattempted until the update interval of jboss-public-repository-group has
elapsed or updates are forced and 'parent.relativePath' points at wrong local PO
M @ org.drools:guvnor:5.2.0.CR1, C:\fixguv\5.2.xsource\guv\pom.xml, line 6, colu
mn 11
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:339)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] The project org.drools:guvnor-webapp:5.2.0.CR1 (C:\fixguv\5.2.xsource\
guv\guvnor-webapp\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.drools:guvnor:5.2.0.CR1: Failure t
o find org.drools:droolsjbpm-parent:pom:5.2.0.CR1 in http://repository.jboss.org
/nexus/content/groups/public/ was cached in the local repository, resolution wil
l not be reattempted until the update interval of jboss-public-repository-group
has elapsed or updates are forced and 'parent.relativePath' points at wrong loca
l POM @ org.drools:guvnor:5.2.0.CR1, C:\fixguv\5.2.xsource\guv\pom.xml, line 6,
column 11 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find or
g.drools:droolsjbpm-parent:pom:5.2.0.CR1 in http://repository.jboss.org/nexus/co
ntent/groups/public/ was cached in the local repository, resolution will not be
reattempted until the update interval of jboss-public-repository-group has elaps
ed or updates are forced
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectMod
elResolver.java:159)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExterna
lly(DefaultModelBuilder.java:819)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(Defaul
tModelBuilder.java:670)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultMode
lBuilder.java:308)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultMode
lBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:386)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:355)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:319)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure t
o find org.drools:droolsjbpm-parent:pom:5.2.0.CR1 in http://repository.jboss.org
/nexus/content/groups/public/ was cached in the local repository, resolution wil
l not be reattempted until the update interval of jboss-public-repository-group
has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:541)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
facts(DefaultArtifactResolver.java:220)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
fact(DefaultArtifactResolver.java:197)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArti
fact(DefaultRepositorySystem.java:323)
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectMod
elResolver.java:155)
... 22 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to fi
nd org.drools:droolsjbpm-parent:pom:5.2.0.CR1 in http://repository.jboss.org/nex
us/content/groups/public/ was cached in the local repository, resolution will no
t be reattempted until the update interval of jboss-public-repository-group has
elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArti
fact(DefaultUpdateCheckManager.java:190)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:430)
... 26 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
C:\fixguv\5.2.xsource\guv\guvnor-webapp>
Regards,
Mahmood
14 years, 10 months
NPE in Drools JPA Persistence with rules that use Flow
by Shannon Hastings
I am using drools 5.2.0.M2 and I still get this error:
Caused by: java.lang.NullPointerException
at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:469)
Which was reported on drools 5.1.0 JIRA and claimed to be fixed. I see the error when trying to load a session that was persisted that had objects inserted that are time depended and cause rules to fire that use terms from flow such as "after". I only see this error if create a new session, submit some facts to it, close it, and then try to reload. If i do not submit any facts to it I do not get the error. I.E. If all i do is create the KB with my rules I can reload a session from the DB no problem, but if i submit some facts and persist the session, then i cannot reload it. This seems to be an issue with the JPA loading of the session that has facts in it that use Flow (JBPM). Any help would be greatly appreciated. Below are my simple rules followed by the test code used to submit the facts:
package com.inventrio.rules.readings
import com.inventrio.healthmonitoring.model.*;
declare Reading
@role(event)
@timestamp(readingTime)
end
rule "High Blood Pressure"
when
$eventA : Reading(readingType.name == "BPMETER")
$systolic : Value( this.valueType.name == "SYSTOLIC" ) from $eventA.values
$diastolic : Value( this.valueType.name == "DIASTOLIC" ) from $eventA.values
eval( $systolic.getLongValue() > 180 && $diastolic.getLongValue() > 120 )
then
System.out.println("HIGH BLOOD PRESSURE" );
end
rule "Weight Trending Up"
when
$eventC : Reading(readingType.name == "WEIGHT" )
$eventB : Reading( readingType.name == "WEIGHT" , this after[5s, 1m] $eventC )
$eventA : Reading( readingType.name == "WEIGHT" , this after[5s, 1m] $eventB )
$weight3 : Value( this.valueType.name == "WEIGHT" ) from $eventC.values
$weight2 : Value( this.valueType.name == "WEIGHT" ) from $eventB.values
$weight1 : Value( this.valueType.name == "WEIGHT" ) from $eventA.values
eval( $weight3.getDoubleValue().doubleValue() < $weight2.getDoubleValue().doubleValue() + 1.0 && $weight2.getDoubleValue().doubleValue() < $weight1.getDoubleValue().doubleValue() + 1.0 )
then
System.out.println("WEIGHT IS GOING UP" );
end
rule "Weight Trending Down"
when
$eventC : Reading(readingType.name == "WEIGHT" )
$eventB : Reading( readingType.name == "WEIGHT" , this after[5s, 1m] $eventC )
$eventA : Reading( readingType.name == "WEIGHT" , this after[5s, 1m] $eventB )
$weight3 : Value( this.valueType.name == "WEIGHT" ) from $eventC.values
$weight2 : Value( this.valueType.name == "WEIGHT" ) from $eventB.values
$weight1 : Value( this.valueType.name == "WEIGHT" ) from $eventA.values
eval( $weight3.getDoubleValue().doubleValue() > $weight2.getDoubleValue().doubleValue() + 1.0 && $weight2.getDoubleValue().doubleValue() > $weight1.getDoubleValue().doubleValue() + 1.0 )
then
System.out.println("WEIGHT IS GOING DOWN" );
end
And next is my object i insert before closeing and then trying to reload the session.
public void testWeightRules() {
try {
Reading reading = new Reading();
reading.setReadingTime(new Date(System.currentTimeMillis()));
ReadingType type = new ReadingType();
type.setName("WEIGHT");
type.setDescription("");
reading.setReadingType(type);
Value value = new Value();
value.setDoubleValue(140.0);
ValueType valueType = new ValueType();
valueType.setName("WEIGHT");
valueType.setDataType(ValueDataType.DOUBLE);
value.setValueType(valueType);
reading.getValues().add(value);
reading.setReadingType(type);
engine.process(reading);
Thread.sleep(7000);
reading = new Reading();
reading.setReadingTime(new Date(System.currentTimeMillis()));
type = new ReadingType();
type.setName("WEIGHT");
type.setDescription("");
reading.setReadingType(type);
value = new Value();
value.setDoubleValue(142.0);
valueType = new ValueType();
valueType.setName("WEIGHT");
valueType.setDataType(ValueDataType.DOUBLE);
value.setValueType(valueType);
reading.getValues().add(value);
reading.setReadingType(type);
engine.process(reading);
Thread.sleep(7000);
reading = new Reading();
reading.setReadingTime(new Date(System.currentTimeMillis()));
type = new ReadingType();
type.setName("WEIGHT");
type.setDescription("");
reading.setReadingType(type);
value = new Value();
value.setDoubleValue(144.0);
valueType = new ValueType();
valueType.setName("WEIGHT");
valueType.setDataType(ValueDataType.DOUBLE);
value.setValueType(valueType);
reading.getValues().add(value);
reading.setReadingType(type);
engine.process(reading);
} catch (Throwable t) {
t.printStackTrace();
}
}
Shannon Hastings
Inventrio
545 Metro Place South, Suite 475
Dublin, OH 43017
Phone: (614) 389-2795 x101
Fax: (614) 522-6249
Email: shannon.hastings(a)inventrio.com
http://www.inventrio.com
14 years, 10 months
Re: [rules-users] [rules-dev] Two Day Drools and jBPM Workshop (Argentina June)
by Mauricio Salatino
Yeah! it's an unique opportunity for the people in Argentina to see most of
the team together in the same place!
On Thu, May 26, 2011 at 8:34 AM, Pablo Elo <elo(a)intalio.com> wrote:
> What a good news! I will be there for sure.
>
> On Wed, May 25, 2011 at 10:24 AM, Mark Proctor <mproctor(a)codehaus.org>wrote:
>
>> http://blog.athico.com/2011/05/2-day-drools-and-jbpm-workshop.html
>>
>> Thanks to OSDE we now have a 2 day workshop planned in Argetina for June,
>> with nearly all the core drools and jbpm developers. A MUST attend event for
>> any developer in South America.
>>
>> We are just finalising locations, agendas and speakers, we'll give more
>> firm details later, but initially the line up is as follows:
>>
>> Where: Argentina (Buenos Aries)
>> Date: 16-17 June (Thu/Fri)
>>
>> Speakers:
>> Mark Proctor - Group Lead and Drools co-founder
>> Kris Verlaenen - jBPM Lead
>> Edson Tirelli - Drools tech Lead
>> Geoffrey De Smet - Planner Lead
>> Michael Anstis - Business Tooling tech lead
>> Ray Ploski - Solutions Architect
>>
>> Guest Speakers (so far)
>> Salatino Mauricio (Plugtree)
>>
>> While us core developers will be focusing on Drools and jBPM, Ray will be
>> there to do talks on AS7, Seam and Infinispan.
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>>
>
>
> --
> Pablo Elo.
> Developer at Intalio Argentina.
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
14 years, 10 months
Avoiding log or error messages on console
by Manuel Ortiz
Hi everybody:
I'm developing a Drools based application which has to show no messages on
console, but on log files or so. I've diverted these kind of messages to a
log file, but there is one at the beginning of the application, when the
change set is read...
(null: 6, 188): cvc-elt.1: Cannot find the declaration of element
'change-set'.
... which still appears on console.
I've read that this message doesn't affect rule engine behaviour, but I
would like it not to be shown on console.
Does anybody know how can I solve this problem?
Thank you in advance.
Best regards,
Manuel Ortiz.
14 years, 10 months
Concatenating rule conditions
by Hezi Stern
I have a rule that filters an ArrayList based on dynamic filtering
conditions, for example this list can be a set of documents and the filter
can be a user property which is required later for document filling (e.g.
private name).
This is fairly strait forward, where I can perform something of the sort:
Rule "test filter"
When
$cm: ConditionMatrix(),
$document: ArrayList() from collect ( Document
(user.isPrivateName == $cm.isPrivateName) )
Then
//do something
End
Now comes my question: I have a different rule that holds a different set of
filter requirements that works on Document object.
For example
Rule "test filter 2"
When
$cm: ConditionMatrix(),
$document: ArrayList() from collect ( Document
(Payment.isLegal == $cm.isLegal) )
Then
//do something
End
Is there any way to combine them both?
Thanks
Hezi
14 years, 10 months
Two Day Drools and jBPM Workshop (Argentina June)
by Mark Proctor
http://blog.athico.com/2011/05/2-day-drools-and-jbpm-workshop.html
Thanks to OSDE we now have a 2 day workshop planned in Argetina for
June, with nearly all the core drools and jbpm developers. A MUST attend
event for any developer in South America.
We are just finalising locations, agendas and speakers, we'll give more
firm details later, but initially the line up is as follows:
Where: Argentina (Buenos Aries)
Date: 16-17 June (Thu/Fri)
Speakers:
Mark Proctor - Group Lead and Drools co-founder
Kris Verlaenen - jBPM Lead
Edson Tirelli - Drools tech Lead
Geoffrey De Smet - Planner Lead
Michael Anstis - Business Tooling tech lead
Ray Ploski - Solutions Architect
Guest Speakers (so far)
Salatino Mauricio (Plugtree)
While us core developers will be focusing on Drools and jBPM, Ray will
be there to do talks on AS7, Seam and Infinispan.
14 years, 10 months