Hello,
I have an object with a timestamp field which I declared this way in my rule
file:
/declare VpAction
@role( event )
@timestamp ( myGregorianCalendar.getTimeInMillis())
end /
where myGregorianCalendar is from type java.util.GregorianCalendar.
Using the rule file in my application
Thanks for the reply. This is the full code:
/declare ObjectOneTwo
value1 : boolean
value2 : boolean
end
rule "first rule"
when
$objectOneTwo : ObjectOneTwo (value1 == false)
then
$objectOneTwo.setValue1(true);
update($objectOneTwo);
end
rule "second rule"
when
Hello,
I have a rule file with multiple boolean variables. Currently, I declare a
new wrapper object for every single variable
/declare Object1
value : boolean
end
declare Object2
value : boolean
end
/
The approach works fine, but when I try wrapping the two variables in one
object a not de
Thanks for the reply, salaboy
I moved my rule files to the "src" folder of a Java project and the
exception is not shown. The debugging is successful. But when I try moving
the original rules project to a java project and move the rules back to it,
I still get the exception.
What are the prerequi
Hello salaboy,
Sorry for the late reply.
I am using the "Drools 5.2.0 runtime". And the "Drools eclipse plugin
5.2.0.Final". I still could not solve the problem.
Thanks in advance,
Svetlomir.
--
View this message in context:
http://drools.46999.n3.nabble.com/Exception-cannot-determine-ruleI
Hello,
I'm using Eclipse 3.6.2 (Helios) and the Eclipse Plugin JBoss Tools
3.2.1.Final Stable Release.
When I try to set a breakpoint within the rule concequence, I get the above
mentioned exception. The breakpoint appers, but it is disregarded when
debugging.
Here you can see the whole descript
Noone ?
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-StatefulKnowledgeSessions-at-a-time-tp1108161p1401984.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing lis
Hello,
(I'm sorry if this question already has been asked.) My company uses Drools
for answering questions. For every asked question, a new
StateFulknowledgeSession is created and after the question has been answerd
by Drools, the StateFulknowledgeSession is being disposed. Now we have the
situa
Yes, something like guvnor for editing DSL-Rules but more GUI-based...
Thanks,
skasab2s
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Building-a-high-level-editor-for-DRL-Files-tp979051p979435.html
Sent from the Drools - User mailing list archive at
similar to this feature) already implemented? We looked to
the guided editor for .BRL-files but it is very restrictive (only one rule
can be defined, no globals, etc). Can DSL-writing help us solve our problem?
Many thanks, regards and sorry for the many questions,
skasab2s.
--
View this message in
uleHasFired(value == true))
then
//do some other job
)
..
Or do you know some other useful tricks to avoid the redundancy I have
written about?
Thanks a lot for every idea and/or advice!
Regards,
skasab2s
--
View this message in context:
http://drools-java-rules-engine.4
Hello,
our company has a lot of .DRL- files, which we want to edit with the drools
guided-rules editor (i.e. convert them to .BRL-files), does anyone know how
it's done? Is there a howto anywhere ?
Thanks a lot for any advice!
skasab2s
--
View this message in context:
http://drools
ithout
affecting the end result.
Once again thanks for your advices anyway.
Many regards,
skasab2s.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905902.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
t; ")) )
The problem is the following: when BOTH conditions are fulfilled, the rule
fires twice, so I get redundant results in my final result, and this is not
wanted.
Is there a way to solve the problem? Any ideas ?
Thanks a lot and many regards!
skasab2s
--
View this message in context:
you know how to implement this? Any
ideas or hints?
Many thanks and regards!
skasab2s.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Firing-a-rule-if-at-least-its-two-conditions-are-satified-tp867432p867432.html
Sent from the Drools - User mailing list
Hello,
we want to use in our company a ruleflow with a loop. The loop should be
executed every 5 minutes and should be exited on some conditions based on
the facts (for example Fact1 ( value > 50)). This is our resulting ruleflow
(see attached image).
http://n3.nabble.com/file/n833857/ValidationB
Thanks a lot for the precisous advices!
Drools flow timer-nodes do the job for now (so I can create delays between
the tasks of the doctor)!
Regards,
skasab2s
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time-driven-rule-execution
, drools fusion or drools flow,
in order to implement the given situation? Can you short describe a
solution?
Thanks a lot and many regards,
skasab2s
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time-driven-rule-execution-tp814472p814472.
noone?
skasab2s wrote:
>
> Hi guys,
>
> I have a simple question: do you know how to check dynamically:
>
> -if there are rules to be fired left in the agenda OR
>
> -how many rules to be fired are left in the agenda?
>
> How is the corresponding method calle
Hi guys,
I have a simple question: do you know how to check dynamically:
-if there are rules to be fired left in the agenda OR
-how many rules to be fired are left in the agenda?
Thanks and many greets.
skasab2s
--
View this message in context:
http://www.nabble.com/Number-of-rules-left-to
Thanks guys,
it worked exactly this way, that you said:
VpVentilation( $tidalVolume: tidalVolume, $breathingRate: breathingRate <=
(105 * $tidalVolume))
Perfect!
Best regards,
skasab2s
skasab2s wrote:
>
> Hello guys,
>
> I have this problem:
>
> I have an object
o check this one correctly in a rule condition?
Thanks a lot for any ideas!
skasab2s
--
View this message in context:
http://www.nabble.com/Division-Operator-in-a-Rule-Condition-tp25716712p25716712.html
Sent from the drools - user mailing list archi
Hi guys,
I have the following problem, which I'm trying to solve with Drools-Fusion:
Every 15 seconds(or more) happens an event, that contains an unique number.
For example every 15 seconds(or more) comes a Temperature of a patient with
a new different value as an event. The problem is, that it
Hello guys,
I have the problem that I can't run the project 'drools-example-fusion'.
Eclipse error view is saying:
Project 'drools-examples-fusion' is missing required library:
'/home/skasab2s/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar'
Thanks Wolfgang!
It worked great! The Declare-Command did it perfectly! Nice job! :)
Svetlomir.
--
View this message in context:
http://www.nabble.com/Updating-a-Boolean-object-in-the-WM-tp24513225p24515020.html
Sent from the drools - user mailing list archive at Nabble.com.
_
Hi guys,
I've been desperately trying to update a Boolean object, which is in the
working memory.
I have an initial rule that first inserts it:
rule "Insert initial weanable value" salience 100
when
then
Boolean $weanable = false;
Hi guys,
does anyone know if it is possible to register a ruleflow-file within my
.DRL-File? Or should I always do this using Java-Code?
Thanks a lot!
Svetlomir.
--
View this message in context:
http://www.nabble.com/Registering-ruleflow-within-a-.DRL-File-tp24388669p24388669.html
Sent from
Hi guys,
as far as I understood, in the rule conditions I can check what objects are
in the working memory and so on..
But can I check for example a global variable value which I have declared in
the same .DRL-File?
for example:
global Boolean testWeanable
when
testWeanable==true
then
--
View this message in context:
http://www.nabble.com/check-if-the-Agenda-is-empty-from-the-ja-tp24128379p24128379.html
Sent from the drools - user mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://
ing can be successful, remarks
and so on.
I heard that globals are good for returning result. Are there other
approaches? Can't one rule create the result object and put it in the
working memory so that I can fetch it from there using java code?
Thanks a lot and regards!
skasab2s
--
View
30 matches
Mail list logo