I am getting exception when using Array in combination with "in (...)".
Below is the exception
[Error: unable to resolve method: java.util.HashMap.countyName()
[arglength=0]]
and below is the template I have created
template header
stateName
countyName[]
totalPremium
package org.drools.bpmn2
te
Another file, yes.
Your original enquiry suggested you'd use a separate DSL or decision table
so I assumed another file was acceptable. Sorry.
sent on the move
On 11 Apr 2012 20:52, "Adam Warski" wrote:
>
> manstis wrote
> >
> > What about a rule template?
> >
> > You can also create rules fro
manstis wrote
>
> What about a rule template?
>
> You can also create rules from a CSV based decision table - or if your
> more
> adventurous write your own Listener (see the dtable docs).
>
Hmm but that assumes that I have the data in some external storage. I'd like
to make the rules file the
Hi Mario Thanks for the response
I'm using 5.4 beta2... I'll check with 5.4 CR1 and let you know very
soon The exact steps to replicate are complicated... as I'm loading
hundreds of different facts and don't know what exactly is causing the
issue I'll be grateful if you can let me know
What about a rule template?
You can also create rules from a CSV based decision table - or if your more
adventurous write your own Listener (see the dtable docs).
On 11 April 2012 19:57, Adam Warski wrote:
> Hello,
>
> I have some near-tabular data which I would like to write down as rules.
> T
Hello,
I have some near-tabular data which I would like to write down as rules.
There about 100 rows. Using a custom DSL, the shortest form I now have for
each entry is:
rule "..."
when some condition with data from row
then always the same action
end
so 4 lines.
Is it possible to somehow write
Hi Sumatheja,
thanks for reporting this, but I'd need to have some more informations in
order to reproduce your problem.
Which version of Drools are you using? It cannot be the CR1 we just released
because the line numbers in your stack trace don't correspond. Can you give
a try with the CR1 and
Hi All,
I'm getting some wierd exception while trying to insert a fact. I'm
trying to compare a string field in a rule, like metricclass == "PROCESSOR"
java.lang.RuntimeException: Exception jitting: metricclass == "PROCESSOR"
at
org.drools.rule.constraint.MvelConstraint.jitEvaluator(Mv
This is a different problem now, see droolsjbpm-introduction-docs on
"strict mode". It says that you can configure
drools.dialect.mvel.strict = false
to avoid such problems.
-W
On 11 April 2012 18:27, groovenarula wrote:
> laune,
>
> Unfortunately, the earlier test worked when I set the di
I can provide all the info - select a Fact type, select a field, provide and
URL, and provide height and width. Click OK then File | Save changes.
However, it doesn't look like my form is actually getting saved. When I go
back to the tab its not there, and it doesn't appear in the guided editor
whe
laune,
Unfortunately, the earlier test worked when I set the dialect to "java". It
does not work when it's set to "mvel".
When the rule is written as follows :
rule "Hello World"
dialect "mvel"
when
$cur: Message()
$others : ArrayList ( size > 0 ) fro
On 11 April 2012 17:47, groovenarula wrote:
>
>
> But 'wow - we've spent several hours trying to resolve this on our own. And
> we did not want to post before we confirmed that we've taking care of all
> the obvious..
>
Laudable, but if it works in 5.x, it ought to work in 5.x+1. With this, you
w
Thanks W,
It worked after I moved opening brace to the same line as the 'for'.
But 'wow - we've spent several hours trying to resolve this on our own. And
we did not want to post before we confirmed that we've taking care of all
the obvious..
But seriously - someone is advocating that MVEL use
A rather debatable feature has been added: the automatic insertion of
semicolons in MVEL code. The problem surfaces in several constellations
where the naive algorithm thinks that a semicolon should be inserted, e.g.,
after the closing parenthesis of any structured statement (such as "for",
"while"
Hi,
I have a situation where I need to iterate over an ArrayList in the RHS of a
rule. The ArrayList is created in the LHS of the rule as follows :
rule "Hello World"
dialect "mvel"
when
$cur: Message()
$others : ArrayList ( size > 0 ) from collect(Mess
Hi, All
How to archive the rule based on the package name ,asset UUID, asset name.
Thanks in Advance,
Srinivas
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-delete-a-rule-tp3902734p3902734.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
Hi Wolfgang Laun,
$objOrderedComponents is bound to Order object which contails
the list of services ordered.
$objOrderedComponents:Order()
$objOrderedComponents.getOrderedComponentList() provides the
list of OrderedComponent.
I will try with the approch you
Hi jeswin,
There are nearly 2000 orderedcomponents and 1000
packagecomponents.
Regards
Sanal.p
--
View this message in context:
http://drools.46999.n3.nabble.com/Performace-Issues-drools-tp3902270p3902432.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi,
this is better, but I'm missing the fact to which
$objOrderedComponents
is bound.
However, you will have to use a somewhat different approach, one which
is based on the availability of OrderedComponent's and
PackageComponent's as individula facts. This is the way to avoid these
repeating
As Wolfgang pointed out, the fist and third pattern can be matched by the
same event, leading to your self-joined activations. I would add:
eventReq2 : EventRecord( id != $eventReq.id, . )
As for the reason why the "cross" join does not lead to an activation: could
you please post the "declar
On 11/04/2012 08:05, skatta1986 wrote:
> Hi,
>
> Please any one let me know if there is any followed by operator in Drools. I
> want to correlate an event with another event which follows the first event.
>
> Esper supports this by using followed by (->) operator.
> Example in esper:
> "select r1.
Some corrections in my previous mail
1)A ordered service is considered to be part of a package
if the packageChargeRecordId property of the ordered service is assingned
the package Id.
2)Using Drools i need to find out each of the ordered services(
$orderedComponent) for the patient is p
You have 2 EventRecord events with (apart from id) identical
attributes. If they have the same timestamp, they are concurrent and
both satisfy the relations expressed by your condition.
In this situation, using the timestamps Drools adds during insertion
is risky - you aren't analyzing "true" time
Hi,
Iam trying to use Drools for implementing some of the business logic
in hospital billing senario.My senario is as given.Iam implementing the
concept of a packge. A package is a set of services or items are put
together based on some contions. Only the packge is to be charged not the
i
Actually I have tried this operator "after", but doesn't work properly as the
events are inserted into working memory one by one within fraction of
seconds.
Consider EventRecords EventRecord(name=katta, eventType=REQUEST, id=1),
EventRecord(name=katta, eventType=EVENT_UN_AUTHORIZED, id=1) and
Eve
Hey,
I found the problem.
I've added the lists containing the problem facts with facts.add(list)
instead of facts.addAll(list)
now it works perfectly
bye,
Magublafix
--
View this message in context:
http://drools.46999.n3.nabble.com/Objects-from-Working-Memory-not-available-in-drl-tp3896957p39018
Op 10-04-12 03:28, Patrik Dufresne schreef:
I may not be an expert, but I may give you some tips.
Thank you Patrick for the kind words and the insight of someone with in
the trenches experience :)
Read below
Patrik Dufresne
If you look closer to the Nurse-Rostering example, you will
Op 10-04-12 19:00, Reinis schreef:
> Thank you for all the tips. In the mean time I was able to locate the source
> of serious performance "killer". These 3 rules:
>
> http://nopaste.info/3f89c43eee_nl.html
The use of "contains()" can break incremental score calculation, which
causes the score
There are several temporal operators, as described in the "Drools
Fusion" manual.
Most likely, the corresponding one is the "after" operator.
-W
On 11/04/2012, skatta1986 wrote:
> Hi,
>
> Please any one let me know if there is any followed by operator in Drools. I
> want to correlate an event w
Hi,
Please any one let me know if there is any followed by operator in Drools. I
want to correlate an event with another event which follows the first event.
Esper supports this by using followed by (->) operator.
Example in esper:
"select r1.name as name,r1.userIPAddress as ipaddress,count(*)
Op 10-04-12 10:44, TEddahabi schreef:
> I have choosen the SolutionInitializer way, and am trying to make it work.
> However I still have two questions that will need some help from you :
>
> 1 - A variable of a planning entity class can be itself a planning entity ?
Yes, but you need to use 5.4
31 matches
Mail list logo