"When a rule is activated where the auto-focus value is true and the rule's
agenda group does not have focus yet, then it is given focus, allowing the
rule to potentially fire." (c) Drools 5.4 Documentation
Rana wrote
>
> Ok it worked when I changed the rule file a little to add the negative
> r
On 21/08/2012, BenjaminWolfe wrote:
> I'm trying to wrap my mind around the nature of ruleflows -- and I think
> this
> question sums up a bit of my confusion.
>
> I have a stateful knowledge session. The stateful knowledge session has a
> ruleflow associated with it. That ruleflow diverges into
On 20/08/2012, Rana wrote:
> I am using Working Memory instead of kSession. And it is not working at
> all.
> It just hangs after drools.halt();
Well, halt() means "do not continue". What on earth do you expect?
-W
>
> Please let me know about it.
>
> Thanks.
>
>
>
> --
> View this message in c
I'm trying to wrap my mind around the nature of ruleflows -- and I think this
question sums up a bit of my confusion.
I have a stateful knowledge session. The stateful knowledge session has a
ruleflow associated with it. That ruleflow diverges into two branches --
branch A and branch B -- based
I am using Working Memory instead of kSession. And it is not working at all.
It just hangs after drools.halt();
Please let me know about it.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/fireUntilHalt-is-halt-forever-tp4019146p4019290.html
Sent from the Drools: Us
We've managed to determine that the problem only happens *sometimes*
when the rule base is deserialized. Our current theory is that it's a
multithreaded class loading issue, although our synchronization
attempts haven't mitigated it.
We've also seen this variation on the linkage error:
Caused by:
See inline.
On 20/08/2012, Suvek wrote:
> Thanks laune!!!
> I think I did not explain properly and duplicate name "FOREIGN_BUSINESS"
> added more to the confusion... still you understood my problem , I will
> try
> putting more flesh on the bones in terms of classes to explain further
> details.
Hi David, you told me we can tweak the engine to know what are the failed
rules. Can you please let me know how to do that.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp4019158p4019287.html
Sent from the Drools:
Ok, for my rule files, the facts for all the rules are same. That is the
problem. I guess I have to merge everything into one rule file.
So can a rule have multiple ruleFlow Group, something like this.
rule
ruleflow-group A,B,...
when
//condition
then
//consequence
end
Because I
On 20/08/2012, Rana wrote:
> Yes, but I don't want all the rules to fire, right.
>
> You told me the drools will take care of what the rules to fire based on
> the
> request. This is what you told
>
> "
> But a rule (as you have it) with
>Drug( brandName == "AndroGel" )
> will take care of tha
Yes, but I don't want all the rules to fire, right.
You told me the drools will take care of what the rules to fire based on the
request. This is what you told
"
But a rule (as you have it) with
Drug( brandName == "AndroGel" )
will take care of that automaticaliy. This can co-exist with lots
One way of running the Rule Engine is to write a loop that
- obtains one or more facts from some external source,
- inserts this fact or these facts and
- calls fireAllRules() and
- processes results, if needed.
-W
On 20/08/2012, Rana wrote:
> I have written rule files and added to
I have written rule files and added to ChangeSet. Now when I fire the rules
on Working Memory, it fires all the rules of all the rule files.
I tried to use Fire Until Halt if the execution of rules are satisfies or if
any rules failed, but it stops the execution forever.
Please let me know how to
hi
I was wondering if I could get some help on how to achieve something using
an Excel based decision table to do the following:
I have an ArrayList of Objects.
The Object will contain: name, value, result
In my spreasheet i need to check to see if the value confroms to a
particular regex, and
Thanks laune!!!
I think I did not explain properly and duplicate name "FOREIGN_BUSINESS"
added more to the confusion... still you understood my problem , I will try
putting more flesh on the bones in terms of classes to explain further
details...
public class TaxPayer {
...
ArrayList addersses;
Here's how I'd do it:
rule "missing address type"
when
$tpType: TaxpayerType( $addressTypes: addressTypes )
Taxpayer( $name: name, taxpayerType == $tpType, $addrs: addresses )
accumulate( Address( $addrType: addressType ) from $addrs,
$addrTypeSet: collectSet( $addrType
Thanks for your quick reply...
AddressType is Enum and have around 15 odd values, based on the taxpayer
type some of the AddressTypes would be selected...
Addresses is list of Address and addressType is one of the field under
Address. All the addresses may be of same or different types (say a tax
See below.
On 20/08/2012, Suvek wrote:
> I tried looking for similar posts but could not find any that fits the
> requirements.
> Really speaking this is a 2 part question.
>
> What I need to do is compare 2 lists and ensure that all the fields inside
> the reference list are present in passed in
I tried looking for similar posts but could not find any that fits the
requirements.
Really speaking this is a 2 part question.
What I need to do is compare 2 lists and ensure that all the fields inside
the reference list are present in passed in list.
following is the simplified version of test
You 'll want incremental score calculation (with delta's) for your "end
times".
http://docs.jboss.org/drools/release/5.4.0.Final/drools-planner-docs/html_single/index.html#incrementalScoreCalculation
So that naturally puts the calculation of those end times in the
scoreDRL (or IncrementalJavaCa
typo:
Planner perceives an planning variable with the planning value *null* as
being "uninitialized", not as "unassigned". This is due to
https://issues.jboss.org/browse/JBRULES-3317
--
View this message in context:
http://drools.46999.n3.nabble.com/modifying-the-problem-facts-while-running-t
spinjala wrote
>
> Once the solver finds that a workorder (WO1) couldn't be assigned to any
> resource in the list of resources (due to the constraints), it simply
> picks up the 1st resource in the list with highest hard score and assigns
> it (even though this assignment breaks all constraints)
22 matches
Mail list logo