Missing results with multiple time rules
by wendy
Hi,
I'm having an issue trying to run multiple time window patterns at the
same time. If I run them separately they produce the correct results but
when I load them both rules into working memory I only get results for the
second one. If I remove the 'over window:time(7200000ms)' aspect from both
rules I do get results for both as expected.
The rules right now are very similar (I'm trying to test out how we write
drl files) I'm not sure if that has something to do with it or not. In one
rule I'm trying to find 3 or more objects that match my constraints over the
time window and in the other between 3 and 5 objects.
I'm using drools 5.2.0 from last Tuesday droolsjbpm-drools-20c84a4.
Any help you can provide would be appreciated,
Wendy
--
View this message in context: http://drools.46999.n3.nabble.com/Missing-results-with-multiple-time-rule...
Sent from the Drools: User forum mailing list archive at Nabble.com.
15 years, 3 months
Basic rules question
by Abhay B. Chaware
Hi
I am a newbie to rule based applications and trying to get the concept of rules. I have couple of questions about rules to start with, not specifically about Drools though.
Q1 - Should rules be data/model specific or can/should they be generic or both
==========================================================
e.g.
If selected product "TYPE" is "laptop", then category "RAM" should have all "DDR" type items compatible ( selecting items matching certain property )
OR
If selected product is "IBM T42", then category "RAM" should have "512MB DDR" , "1024MB DDR", "2048MB DDR" compatible. ( assigning individual items in rules )
OR
Combination of both
Q2 - How should be the data modeled in above case
==========================================================
e.g.
in product master, each item ( e.g. T40, T42 ) should have a "TYPE" ( e.g. desktop or laptop ) , all items in category "RAM" should have a "TYPE" ( e.g. DDR ) and then control the assignment of RAM options to the PRODUCT through Rule using "DDR" type ?
OR
in product master, each item ( e.g. T40, T42 ) should have a "TYPE" ( e.g. desktop or laptop ) , all items in category "RAM" should have a "compatibleProduct" column ( e.g. desktop or laptop ) and control the assignment of RAM to PRODUCT through "dynamic" rules by selecting all the RAMs by passing the "TYPE" of the product to the database handler.
Am I making my point clear ?
Thanks
Abhay
15 years, 3 months
build.xml cannot get drools-5.2.0.M2-eclipse-all.zip
by Marcel Caceres
When install jbpm 5.1, fails when gets drools-5.2.0.M2-eclipse-all.zip, and
i can`t find de source of this release.
How can i solve to complete the command line: ant install.demo
-- see the installation log
[echo] Checking JBoss AS download ...
download.jboss:
install.jboss:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jboss-5.1
.0.GA.zip into C:\Archivos de programa\Java\jbpm-installer
download.drools.guvnor.check:
[echo] Checking Drools Guvnor download ...
download.drools.guvnor:
install.guvnor.into.jboss:
check.jboss.version:
install.guvnor.into.jboss.5:
[mkdir] Created dir: C:\Archivos de
programa\Java\jbpm-installer\target\droo
ls-guvnor
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\drools-5.
2.0.M2-guvnor.war into C:\Archivos de
programa\Java\jbpm-installer\target\drools
-guvnor
[zip] Building zip: C:\Archivos de
programa\Java\jbpm-installer\target\dro
ols-guvnor.war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[delete] Deleting directory C:\Archivos de
programa\Java\jbpm-installer\targe
t
check.jboss.version:
install.guvnor.into.jboss.other:
download.designer.check:
[echo] Checking Designer download ...
download.designer:
install.designer.into.jboss:
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
download.h2.check:
[echo] Checking h2 download ...
download.h2:
check.birt:
download.birt.check:
download.birt:
download.jBPM.gwt-console.check:
[echo] Checking jBPM gwt-console download ...
download.jBPM.gwt-console:
install.jBPM-gwt-console.into.jboss:
[mkdir] Created dir: C:\Archivos de programa\Java\jbpm-installer\target
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-gwt-console.zip into C:\Archivos de programa\Java\jbpm-installer\target
[mkdir] Created dir: C:\Archivos de
programa\Java\jbpm-installer\target\jbpm
-gwt-console-server-war
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\target\jbpm-g
wt-console-server-5.1.0.M1.war into C:\Archivos de
programa\Java\jbpm-installer\
target\jbpm-gwt-console-server-war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\target
\jbpm-gwt-console-server-war\WEB-INF\classes
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\target
\jbpm-gwt-console-server-war\WEB-INF\classes\META-INF
[copy] Copying 2 files to C:\Archivos de
programa\Java\jbpm-installer\targe
t\jbpm-gwt-console-server-war\WEB-INF\classes
[zip] Building zip: C:\Archivos de
programa\Java\jbpm-installer\target\jbp
m-gwt-console-server-5.1.0.M1.war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[delete] Deleting directory C:\Archivos de
programa\Java\jbpm-installer\targe
t
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\lib
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\conf
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\conf
check.birt:
install.reporting.into.jboss:
download.eclipse.check:
[echo] Checking Eclipse download ...
download.eclipse:
download.eclipse.gef.check:
[echo] Checking Eclipse GEF download ...
download.eclipse.gef:
install.eclipse:
unzipEclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\eclipse-j
ava-helios-win32.zip into C:\Archivos de programa\Java\jbpm-installer
untarEclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\GEF-SDK-3
.6.1.zip into C:\Archivos de programa\Java\jbpm-installer
download.jBPM.eclipse.check:
[echo] Checking jBPM Eclipse download ...
download.jBPM.eclipse:
install.jBPM-eclipse.into.eclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-eclipse-all.zip into C:\Archivos de
programa\Java\jbpm-installer\eclipse
download.jBPM.bin.check:
[echo] Checking jBPM binaries download ...
download.jBPM.bin:
install.jBPM.runtime:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-bin.zip into C:\Archivos de programa\Java\jbpm-installer\runtime
download.drools.eclipse.check:
[echo] Checking Drools Eclipse download ...
download.drools.eclipse:
install.drools-eclipse.into.eclipse:
BUILD FAILED
C:\Archivos de programa\Java\jbpm-installer\build.xml:398: src 'C:\Archivos
de p
rograma\Java\jbpm-installer\lib\drools-5.2.0.M2-eclipse-all.zip' doesn't
exist.
Total time: 3 minutes 58 seconds
C:\Archivos de programa\Java\jbpm-installer>ant install.demo
Buildfile: C:\Archivos de programa\Java\jbpm-installer\build.xml
download.jboss.check:
[echo] Checking JBoss AS download ...
download.jboss:
install.jboss:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jboss-5.1
.0.GA.zip into C:\Archivos de programa\Java\jbpm-installer
download.drools.guvnor.check:
[echo] Checking Drools Guvnor download ...
download.drools.guvnor:
install.guvnor.into.jboss:
check.jboss.version:
install.guvnor.into.jboss.5:
[mkdir] Created dir: C:\Archivos de
programa\Java\jbpm-installer\target\droo
ls-guvnor
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\drools-5.
2.0.M2-guvnor.war into C:\Archivos de
programa\Java\jbpm-installer\target\drools
-guvnor
[zip] Building zip: C:\Archivos de
programa\Java\jbpm-installer\target\dro
ols-guvnor.war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[delete] Deleting directory C:\Archivos de
programa\Java\jbpm-installer\targe
t
check.jboss.version:
install.guvnor.into.jboss.other:
download.designer.check:
[echo] Checking Designer download ...
download.designer:
install.designer.into.jboss:
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
download.h2.check:
[echo] Checking h2 download ...
download.h2:
check.birt:
download.birt.check:
download.birt:
download.jBPM.gwt-console.check:
[echo] Checking jBPM gwt-console download ...
download.jBPM.gwt-console:
install.jBPM-gwt-console.into.jboss:
[mkdir] Created dir: C:\Archivos de programa\Java\jbpm-installer\target
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-gwt-console.zip into C:\Archivos de programa\Java\jbpm-installer\target
[mkdir] Created dir: C:\Archivos de
programa\Java\jbpm-installer\target\jbpm
-gwt-console-server-war
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\target\jbpm-g
wt-console-server-5.1.0.M1.war into C:\Archivos de
programa\Java\jbpm-installer\
target\jbpm-gwt-console-server-war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\target
\jbpm-gwt-console-server-war\WEB-INF\classes
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\target
\jbpm-gwt-console-server-war\WEB-INF\classes\META-INF
[copy] Copying 2 files to C:\Archivos de
programa\Java\jbpm-installer\targe
t\jbpm-gwt-console-server-war\WEB-INF\classes
[zip] Building zip: C:\Archivos de
programa\Java\jbpm-installer\target\jbp
m-gwt-console-server-5.1.0.M1.war
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[delete] Deleting directory C:\Archivos de
programa\Java\jbpm-installer\targe
t
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\deploy
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\lib
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\conf
[copy] Copying 1 file to C:\Archivos de
programa\Java\jbpm-installer\jboss-
5.1.0.GA\server\default\conf
check.birt:
install.reporting.into.jboss:
download.eclipse.check:
[echo] Checking Eclipse download ...
download.eclipse:
download.eclipse.gef.check:
[echo] Checking Eclipse GEF download ...
download.eclipse.gef:
install.eclipse:
unzipEclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\eclipse-j
ava-helios-win32.zip into C:\Archivos de programa\Java\jbpm-installer
untarEclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\GEF-SDK-3
.6.1.zip into C:\Archivos de programa\Java\jbpm-installer
download.jBPM.eclipse.check:
[echo] Checking jBPM Eclipse download ...
download.jBPM.eclipse:
install.jBPM-eclipse.into.eclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-eclipse-all.zip into C:\Archivos de
programa\Java\jbpm-installer\eclipse
download.jBPM.bin.check:
[echo] Checking jBPM binaries download ...
download.jBPM.bin:
install.jBPM.runtime:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\jbpm-5.1.
0.M1-bin.zip into C:\Archivos de programa\Java\jbpm-installer\runtime
download.drools.eclipse.check:
[echo] Checking Drools Eclipse download ...
download.drools.eclipse:
install.drools-eclipse.into.eclipse:
[unzip] Expanding: C:\Archivos de
programa\Java\jbpm-installer\lib\drools-5.
2.0.M2-eclipse-all.zip into C:\Archivos de
programa\Java\jbpm-installer\eclipse\
drools-update-site
BUILD FAILED
C:\Archivos de programa\Java\jbpm-installer\build.xml:399: C:\Archivos de
progra
ma\Java\jbpm-installer\eclipse\drools-update-site\features does not exist.
Total time: 3 minutes 54 seconds
--
View this message in context: http://drools.46999.n3.nabble.com/build-xml-cannot-get-drools-5-2-0-M2-ec...
Sent from the Drools: User forum mailing list archive at Nabble.com.
15 years, 3 months
How to further shorten the DSL code?
by boy18nj
This is currently I have-
[condition][]There is fire in "{room}"=Fire({room} : room )
[condition][]"{sprinkler}" is in same "{room}" and sprinkler is
"{off}"={sprinkler}: Sprinkler( room == {room}, on == {off} )
[consequence][]Turn on the "{sprinkler}" for "{room}"=modify( {sprinkler}
){setOn(true)}
[condition][]There is a "{room}"={room} : Room( )
[condition][]This is no fire in "{room}"=not Fire( room == {room} )
[condition][]"{sprinkler}" is in same "{room}" and is "{off}"={sprinkler} :
Sprinkler( room == {room}, on == true )
[consequence][]Turn off the "{sprinkler}" for "{room}"=modify( {sprinkler}
){setOn(false)}
Is it possible to further reuse or define the elements and reuse them in
further conditions?
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-further-shorten-the-DSL-code-tp2...
Sent from the Drools: User forum mailing list archive at Nabble.com.
15 years, 3 months