Hi,
I am facing an issue with handling maps in LHS of drools. Appreciate your help
with the same.
I am using Drools version 5.1.
I have two maps where one is a reference map that contains certifications (key)
and scores(value) required and other is map of user's actual certifications and
sc
Hi,
I am trying to develop a guide decision table so that each row will
transform to the following rule
rule "..."
when
data : RuleData(
controlCode == 123,
term = ""
)
then
TermTicket t = new TimeTicket();
t.setTerm(data.getTerm());
t.setSomer
Hi,
I am looking for the best approach to manage decision tables within Drools,
essentially the hand-off process between developers and Business Analysts.
There are 2 ways to create and maintain Decision Tables in Drools
1. Use the XLS based decision tables. This requires developers to create th
The use of "Otherwise" is not supported in XLS at the moment.
There is an open JIRA to address this:
https://issues.jboss.org/browse/GUVNOR-1278
With kind regards,
Mike
On 15 August 2012 21:16, dme1 wrote:
> Hi,
>
> How do I use in Decision Tables created using Eclipse (Excel
> Spreadsheets)
How can I add the rules to Verifier. I could not get a examples.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Anyway-to-get-Failed-Reason-for-Failed-Rule-tp4019070p4019164.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
__
spinjala wrote
>
> We have been having real hard time understanding the examples with such
> limited/no documentation about the examples that are included in the
> product. Did someone find any other documentation on them apart from the
> 5-6 paragraphs mentioned in the reference manual? Also, we
Hi,
How do I use in Decision Tables created using Eclipse (Excel
Spreadsheets). I have created a rule where I have provided "" as
a criteria but its been taken as the value of the parameter instead of
creating a separate rule with the "not" clause. I am providing the
screenshot of the decision ta
spinjala wrote
>
> I tried setting the scoreAttained and maximum time allowed to spend in my
> termination configuration, but none seems to stop the solver finding the
> solution that violates ALL constraints and hence throws a negative hard
> score. Is this the only way to do it or any other wa
spinjala wrote
>
> Is it possible to have a rule flow file that defines a set of rules
> (constraints) but executed in the order per the defined ruleflow.? I dont
> see any example doing that so I was wondering if it is possible at all to
> have the constraints defined with a rule flow file inste
Please let me know what is the problem in this. It does not update the values
when I get the values, it gives me null in my unit test method.
rule "Drug Strength" extends "Provider State"
no-loop true
dialect "mvel"
agenda-group "AndroGel"
when
Drug
Thank you Mike for the correction, yes I meant the DRL.
And your suggestion works! Thank you!
I'll update my toy project at https://github.com/ceefour/droolsnull :)
Thanks a lot!
Hendy
On Thu, Aug 16, 2012 at 2:04 AM, manstis [via Drools] <
ml-node+s46999n4019156...@n3.nabble.com> wrote:
> Hi
Hi,
I assume you mean Drools DRL (DSL is something different and none of your
examples suggest use of this so far).
How about checking for the absence of the Double instead of it being null:-
when
$product : Product( )
not Double( ) from bookingService.getQty( $product )
I've not tried
Thank you.
"this == null" is weird indeed in Java, but I honestly don't know how to
express this expression in Drools DSL.
A more realistic rule would be:
when
$product : Product( )
Double( this == null ) from bookingService.getQty( $product )
So what I want to do is detect when a met
spinjala wrote
>
> 1) When a solution violates all constraints, does it provide a default
> solution? If so, can it be changed so that it doesn't provide one?
> Otherwise, is there a way to assure that no solution is generated when ALL
> constraints are violated.
>
Let's walk through the code.
Nope it is not working like that.
I removed it. Using fireAll
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/fireUntilHalt-is-halt-forever-tp4019146p4019153.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
__
Using a Java condition like "this == null" is a slip of the keyboard.
-W
On 15/08/2012, Hendy Irawan wrote:
> Thank you.
>
> Here's a very simple use case : https://github.com/ceefour/droolsnull
>
> Running this on Drools 5.4.0 will output:
>
> 00:29:34.122 [main] INFO c.h.droolsnull.BookingSe
I guess you call kSession.fireUntilHalt(). This call should return
after drools.halt() is called from one of the rules. Java code
following this call should do whatever needs to be done. (I don't know
what you mean by "retrieve the resources...".)
-W
On 15/08/2012, Rana wrote:
> Thanks for yo
Thank you.
Here's a very simple use case : https://github.com/ceefour/droolsnull
Running this on Drools 5.4.0 will output:
00:29:34.122 [main] INFO c.h.droolsnull.BookingService - getNullQty()
called!
00:29:34.125 [main] INFO c.h.droolsnull.BookingService - getFilledQty()
called!
00:29:34.139
Thanks for your reply.
Once all the rules of that file is good, then it should retrieve the
resources in the rule file but not the session. and then may be fire other
rule file.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/fireUntilHalt-is-halt-forever-tp4019146p
Hi,
yes if you use : drools.halt();
that will stop the session.
What exactly do you want to achieve with that?
Cheers
On Wed, Aug 15, 2012 at 5:49 PM, Rana wrote:
> Hi my rule file is halt for ever. Can anybody tell me why. I debugged and
> saw
> that it is going into this method in DefaultAgend
Hi my rule file is halt for ever. Can anybody tell me why. I debugged and saw
that it is going into this method in DefaultAgenda.class
public void fireUntilHalt(final AgendaFilter agendaFilter) {
synchronized ( this.halt ) {
if( !this.halt.get() ) this.halt.wait(); //it
And if you're looking to insert facts in XML format, I don't think that it's
supported natively. (Someone please correct me if I'm wrong!)
However, assuming you have a schema for your XML then it's pretty easy to use
JAXB (or similar) to generate Java classes for marshalling, which can be
inser
The Drools XML format for rules is deprecated, not in sync with the current
level of the DRL language, and not maintained in any way.
-W
On 15/08/2012, Sadiroveski wrote:
> Dear,
>
> Any answer for the above question?
>
> Best Regards,
>
>
>
> --
> View this message in context:
> http://drools.
ok I have used "Classpath:" but now it is saying this.
The file is there in the specified location.
java.lang.RuntimeException: Unable to get LastModified for ClasspathResource
at
org.drools.io.impl.ClassPathResource.getLastModified(ClassPathResource.java:179)
at
org.drools.io.i
Dear,
Any answer for the above question?
Best Regards,
--
View this message in context:
http://drools.46999.n3.nabble.com/Does-Drools-expert-accepts-XML-files-tp4019033p4019140.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
__
Hi,
This is somewhere between a bug and an enhancement:
Currently the Template Editor does not support template keys for Metadata
or Attributes; i.e. your requirement is an enhancement.
You can however provide literal values formatted as template keys (e.g.
@{xx} as you have discovered); i.e. th
Agreed. I think a parallel list for all sub projects of Drools makes sense.
>From my side I am mostly interested in Planner so a
planner-us...@lists.jboss.org would also be good for me.
On 15 August 2012 10:18, Wolfgang Laun wrote:
> >From my point of view, the user list is becoming increasingl
Done (for next release).
On 14 August 2012 22:11, Mark Proctor wrote:
>
> On 14 Aug 2012, at 19:29, dme1 wrote:
>
> > Thanks for the detailed response. With the 5.4 plugin I do not see the
> > "Guided Rule" option, just the "Rule Resource", so the screeshot seems
> to be
> > from an earlier ver
>From my point of view, the user list is becoming increasingly cluttered
with Qs regarding Guvnor, which doesn't interest me at all. A parallel list
guvnor-us...@lists.jboss.org might help.
-W
On 15 August 2012 10:12, Michael Anstis wrote:
> Personally, I don't find the user list "high volume"
Personally, I don't find the user list "high volume".
Perhaps re-categorizing the mailing lists we have works better:-
- users: newbie type stuff
- dev (rename drools-tech?): technical questions (not just
implementation)
My 2c.
On 15 August 2012 00:33, Salaboy wrote:
> Probably a l
30 matches
Mail list logo