Hi,
Is it possible to filter rules based on package name?
I note others asked this ... way back ... and reported it didn't work then.
http://drools.46999.n3.nabble.com/Agenda-filter-based-on-package-name-tc52171.html
Thanks in advance,
Kevin
--
View this message in context:
Looking at the 5.3.0 javadoc:
org.drools.runtime.rule.AgendaFilter has
boolean accept(Activation activation)
org.drools.runtime.rule.Activation has
Rule getRule()
and org.drools.definition.rule.Rule has
String getPackageName()
-W
On 24/02/2012, Kevin Kelleher
Hi
I got the same error. Did you make any progress on that?
/Regards
Christian
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-3-0-on-Felix-OSGi-tp3769538p3772373.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi Wolfgang,
thanks a lot for the explanation, but i am very sad now.
I have to use STREAM mode, because i am implementing a spatio-temporal
expert system, so, i need of temporal reasoning. I need to compare events
on time too.
From my understaning, i am limitated by:
- i cannot update
Ok, I did now following:
I openend the file com.springsource.com.sun.tools.xjc-2.1.7.jar and edited
the file META-INF/MANIFEST.MF
In lines 267 and 268 I removed following string:
/,org.relaxng.datatype;version=2.1.7,org.relaxn
g.datatype.helpers;version=2.1.7;uses:=org.relaxng.datatype/
I
Hello every body !
I'm a new drools Fusion user, And I'm now facing a real problem which
is that my events attriutes values doesn't go to starttimestam and
endtimestamp, I explain :
when declaring a new event
declare Evenement
@role(event)
@startimestamp(attr1)
@endtimestamp(attr2)
If it is possible to create a drl file or decision table dynamically in drool
or java?
Like the drool received data then create drl or decision table based on the
data?
Data: Condition 1 AND Condition 2 OR Condition 3 .
Can the above data be stored in the rule file which also contains the
A couple comments:
* The temporal reasoning features/operators are available in both CLOUD and
STREAM mode. The biggest differences are that in CLOUD mode there is no
automatic garbage collection of old events and you can't use sliding
windows, but everything else works.
* You can insert
Hello !
My problem is that the 2 methods getStartTimestamp() and getEndTimestamp()
give me the same value
I don't know why (the duration of any event is 0 !!)
Thank you very much :)
--
View this message in context:
Hi,
as discussed the other day with Ge0ffrey on IRC, I've been trying to
get some vehicle routing done using the new TSP / chaining functionality in
drools planner.
I've written an example, but am having problems with the chaining of jobs
together. After pulling my hair out, I've put
Some more details on my problem:
Here is an example of a vehicle routing solution, 2 crews and 4 Jobs A, B, C
and D.
The print out below is the solver and solutions found at each step (it
prints out each chain of jobs)
As you can see the initial solution is valid.
The next and last solutions are
Yes.
If the data defines the rules then there are numerous options:-
- Construct a DRL String yourself and pass this to a KnowledgeBuilder
- Use the fluent API to build rules programmatically
- Construct an XLS decision table using your favourite XLS (Java) API
and look at
IIRC (from the Drools Fusion user-guide) this represents a point in time
event.
I won't pretend to be a Fusion expert though, so please do wait for others
to comment too
On 24 February 2012 15:04, Hassan azbak...@gmail.com wrote:
Hello !
My problem is that the 2 methods
Thank you very much !!
yess you are right, becouse my declaration of the event didn't montionne the
duration attribute so my event is a point in time event.
if we add @duration(attr3) and the attr3 takes a value 0 so the 2methodes
won't give the same value.
Thank you again :)
--
View this
If you look at the implementation of EventFactHandle.getEndTimestamp
(not ...eSt...) you'll see why: it returns startTimestamp + duration.
You should *not* use methods that aren't in the stable part of the Drools API.
Also, the documentation does not tell you that you can map event
attributes
Thanks for your reply.
Sorry, I am not quite clear about your first option.
What's the meaning of 'Construct a DRL String'?
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773060.html
Sent from the Drools: User
Hi Michael,
Do you have a link to the Fluent API documentation? I wanted to answer to
this question and couldn't find the link anywhere.
Thanks,
Leo.
2012/2/24 Michael Anstis michael.ans...@gmail.com
Yes.
If the data defines the rules then there are numerous options:-
- Construct a DRL
Hi ,
First of all thank you very much for responding me,
Yes you're rights getEndTimestamp() == getStartTimestamp()+duration.
I thought that the when we give the attribute to timestamp, tha value of the
attribute will be token from the session clock.
BUT the real senario is that the
Is it from JBPM or ?
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773142.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users
Quite simply, use a StringBuilder and create the DRL you need from the data
you receive.
@Leonardo, erm, erm... no. TBH I thought I'd be able to Google for it.. but
no luck. Edson? Is there anything - or am I promoting something I shouldn't
;)
On 24 February 2012 16:43, shawn
How to upload/deploy a bpmn from file system into Guvnor?
--
View this message in context:
http://drools.46999.n3.nabble.com/uploading-bpmn-file-from-file-system-in-guvnor-tp3773186p3773186.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Thank you~
Does it mean I have to write a file in java and saved it as .drl?
fluent API is in jbpm, right?
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773187.html
Sent from the Drools: User forum mailing
Knowledge Bases (section) - Create New - New BPMN2 process.
Assuming you've completed the prerequisites to have jBPM Designer setup to
work with Guvnor this should be it.
On 24 February 2012 17:35, MALABALU malathi.b...@aciworldwide.com wrote:
How to upload/deploy a bpmn from file system
1) No you don't have to save it; just use one of the overloaded methods on
KnowledgeBuilder that takes a StringReader, or String or something else
similar.
2) I understand there to be one for Drools Expert too, which I'd expect to
be in one of the drools-xxx JARs however am having trouble finding
Thanks a lot~
Looking forward to hearing from you.
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773255.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Continuing with Michaels' explanation: once the process editor is open you
have to search for a button in the toolbar of the editor that will allow
you to import a process providing a a file or simply the content.
Best Regards,
Esteban Aliverti
-
The reason it is not in the manual yet is because it was not promoted
to the public API yet. Nevertheless, you can use it, but be aware that
there might still be changes on it from version to version until it is
promoted to the public API. I am hoping Mark will give me the go ahead to
make it
There is one (1) sentence and a dozen (12) lines of example in the
section about What is New and Noteworhty in Drools 5.2.0 in the
Introduction manual. Given that this nano-documentation doesn't tell
you what to do with the resulting PackageDescr and that this fluent
API is part of the unstable
Trying to figure out if it can be done in a rule almost some sort of pre
rule before other rules are triggered.
The current rule I have is
rule RemoveInvalidEndTimestamps
salience 100
when
$factN : Fact()
$factsToRemove : ArrayList(size=5)
from collect(
Would you please define unambiguously what constitutes an invalid time?
From your code it would appear that one time has to occur fivefold or
more often to
be invalid.
In case any duplicates should be removed a simple high-priority rule
is sufficient:
rule killDuplicate
salience 1000
when
30 matches
Mail list logo