See inline.
On 17/08/2012, Skiddlebop wrote:
> Greetings All!
>
> I humbly request your guidance and insights!
>
> Overview:
> We are currently undergoing evaluation of how to best proceed using the
> Drools Suite to best meet the current and future business needs with the
> highest system scalab
Hi Jason,
That is not supported at present, but is a work-around (that is consistent
with enum definitions).
Please raise another JIRA and I'll look into that too.
With kind regards,
Mike
On 17 August 2012 02:40, jasonxzhong wrote:
> Can @{KeyName} be annotated with the associated enumeratio
Eh?
Can you please explain your requirement a bit more.
On 17 August 2012 03:09, jasonxzhong wrote:
> Is there a way to specify enumeration values or functions for variables in
> DSL definition?
>
> Thanks,
>
> Jason
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com
This might be helpful:
http://blog.athico.com/2011/01/configuring-multiple-guvnor-instances.html
On 17 August 2012 03:34, jasonxzhong wrote:
> Has anyone tried to set up Guvnor in a clustered configuration, i.e. using
> more than one instance of Guvnor for high availability? Does it involve
> se
To be honest it sounds to me as though you need to get one of the Red Hat guys
in to do some proper consultancy for your specific use case.
However...
Aiming to produce a system with the "highest scalability and performance"
sounds like a strategy to produce an over engineered, overpriced solut
Thanks Tihomir for your reply,
I read the JBPM user guide twice
"http://docs.jboss.org/jbpm/v5.3/userguide/"; and can't find where I can
insert and retrieve data from "MyDatabase". If you have the exact link, it
will be great.
Also, I suggest to JBOSS to integrate a tool for database modeling. Th
On 17/08/2012, Stephen Masters wrote:
> But here are some slightly more practical thoughts from my experience...
> Inserting new facts is slow. (although still sub-millisecond)
> Evaluating rules is fast.
Left hand sides of rules are evaluated while new facts are inserted,
so the above distincti
How to use boolean variables in the rule. I want to do this
rule
when
//condition
then
set a boolean to true
end
Then check at the last rule if all the boolean in the rules are true, which
tells me that all the rules have passed.
Thanks.
--
View this message in context:
ht
ok I have done this, please find the rule file
http://drools.46999.n3.nabble.com/file/n4019241/Rule.txt Rule.txt
But it is still not setting the values for Program Fact in the rule file. I
am getting null as output. Do I need to return that object. If yes please
let me know and how can I get t
Although you can write
rule r
when ...
then
boolean b = true; ... x
end
there is no way you can access these variables from anywhere else but
the place marked with "x", i.e., inside the very same rule.
To see whether certain rules have fired in a certain interval, you'll
have to use som
I have done this. Please find the rule file attached.
http://drools.46999.n3.nabble.com/file/n4019243/Rule.txt Rule.txt
But it is still not setting the values for Program Fact in the rule file. I
am getting null as output. Do I need to return that object. If yes please
let me know and how can I
You must not use this:
eval( boolBrandName && boolProviderState && boolDrugStrength )
since changes in global variables are not visible to the Drools rule engine.
But you don't need this eval(...) line, since you have
rule "Brand Name"
rule "Provider State" extends "Brand Name"
rule "D
Actually, I do mean that! :D
But maybe I should explain…
To be more precise, most of the time in my apps is taken in marshalling facts
and inserting them into the session. From firing rules, it tends to take 10s of
microseconds for a decision to be made.
Obviously if the RHS is doing more than
ok, thank you so much for your help. It works. Thanks.
But one tough question for you.
How can I know what was the reason a rule condition failed. Lets say
rule
when
test( a == "b" )
then
//consequence
end
I want to know what caused the condition a=="b" to fail was the value of a
Sure I'll explain. Assuming I have the following defined in a DSL:
[consequence][]Set result "{name}" to {value} = data.results.put("{name}",
{value});
In the guided BRL rule editor, when I choose to use this DSL to add an
action, the following is displayed
Set rule flag "[name]" to [value]
Hasn't this been answered only recently on this list?
1) For simple conditions, a rule negating the condition of your rule
will fire if the other one fails:
rule "a != b"
when
test( a != "b" )
then
//consequence
end
2) If you have rules extending each other, the first one not firing
http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/index.html#d0e1802
Best Regards,
Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com
On Fri, Aug 17, 2012 at 4:06 PM, jasonxzhong wrote:
> Sure I'll explain. Assuming
That's what our Business doesn't want me to do to write negative rules. In
this way there will be 2 rules to be written for 1 business rule.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp4019158p4019250.html
Sent
It's worth thinking about it differently. A rule does not fail. It just defines
the conditions under which it will activate.
If you wish to perform an action whether the condition is true or false, you
have 2 options:
A positive and a negative condition:
when
test(a == "b")
then
Thanks! This and the
http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/index.html#d0e1887
Advanced enumeration concepts in Guvnor would solve the dynamic
enumeration requirement I posted earlier.
--
View this message in context:
http://drools.46999.n3.nabble.com
Yes, correct; that was my question. Thanks for your response (and for adding
to Jira). -J
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-two-rules-use-the-same-template-data-Guvnor-5-4-tp4019207p4019252.html
Sent from the Drools: User forum mailing list archive at Nabb
That was the root error, the rest is just drools firing its rules.
So does this mean there's some sort of incompatibility in the class
ShoppingCart/Rule_CSMEGBUL_b996907c25e3495a94b6b041c1c08c50? I assume
this is a class that's auto-generated by drools. Is it possible that
serializing the rule Pac
To determine why some rule does not match, only proposals 2) and 3)
will work in the general case anyway.
If you're required to determine and log why rules do not fire, you'll
have to do what needs to be done. If you have, for example, 5
conditions, failure can be due to each, any combination and
I agree with Stephen, if you need an action (e.g. logging) when a constraint
is violated, you are actually defining rules to handle the "negative" cases.
Drools verifier will not help you here, since knowing whether a fact
satisfied a constraint or not is a runtime problem and depends on the
combin
If you do nothing heavy in the RHS, indeed, rules' action part execution is
faster than fact insertion, but this is because of your design, not something
relevant for all usages.
In an inference system using RETE like drools, the most of time is spent to
update the RETE network. Updates of this
On 17/08/2012, David Minor wrote:
> That was the root error, the rest is just drools firing its rules.
>
> So does this mean there's some sort of incompatibility in the class
> ShoppingCart/Rule_CSMEGBUL_b996907c25e3495a94b6b041c1c08c50? I assume
> this is a class that's auto-generated by drools.
Thanks for reply to all.
I would like to learn how to do that, but I don't want to implement now,
since I do not have time for that. But please do let me know about it.
Again, @Laune has helped me fix issues about I am getting null into
response, but I am back to that. Please find the rule file
The webapps are both running in the same instance of Tomcat.
We're going to try to run a second instance of Tomcat on production
with the new version to see if we can replicate it.
On Fri, Aug 17, 2012 at 8:33 AM, Wolfgang Laun wrote:
> On 17/08/2012, David Minor wrote:
>> That was the root err
On 17/08/2012, Rana wrote:
> Thanks for reply to all.
>
> I would like to learn how to do that, but I don't want to implement now,
> since I do not have time for that. But please do let me know about it.
>
>
> Again, @Laune has helped me fix issues about I am getting null into
> response, but I am
Yes I have that, but no luck. But again this should be dynamic so I am
guessing I should write if-else stmts to focus on?
ksession.getAgenda().getAgendaGroup( "AndroGel" ).setFocus();
* Logging is also not working in the rule file.
Logger logger = Logger.getRootL
Ok it worked when I changed the rule file a little to add the negative rules.
But this should be dynamic so I am guessing I should write if-else stmts to
focus on for different drugs?
ksession.getAgenda().getAgendaGroup( "AndroGel" ).setFocus();
* Logging is also not working in
spinjala wrote
>
> THis is what is happening now with my sample solution that I am writing..
> Once the solver finds that a workorder (WO1) couldn't be assigned to any
> resource in the list of resources (due to the constraints)...
Well, it's a slightly different problem them. Planner's approach
Hi Geoffrey,
Following your advice and after gaining some more understanding of planner,
I think approaching the problem as a chain of tasks one of the other makes
sense. It would have some 'wait' time between tasks where the end time of
the previous task is smaller than the minimum time the task
33 matches
Mail list logo