Re: [rules-users] modify and update is not working in the rule file

2012-08-20 Thread FrankVhh
"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

Re: [rules-users] Question about the Nature of Ruleflows

2012-08-20 Thread Wolfgang Laun
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

Re: [rules-users] fireUntilHalt() is halt forever

2012-08-20 Thread Wolfgang Laun
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

[rules-users] Question about the Nature of Ruleflows

2012-08-20 Thread BenjaminWolfe
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

Re: [rules-users] fireUntilHalt() is halt forever

2012-08-20 Thread Rana
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

Re: [rules-users] java.lang.LinkageError

2012-08-20 Thread David Minor
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:

Re: [rules-users] All the values from one list must be present in other

2012-08-20 Thread Wolfgang Laun
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.

Re: [rules-users] modify and update is not working in the rule file

2012-08-20 Thread Rana
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:

Re: [rules-users] How to fire rules of a specific rule file from ChangeSet

2012-08-20 Thread Rana
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

Re: [rules-users] How to fire rules of a specific rule file from ChangeSet

2012-08-20 Thread Wolfgang Laun
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

Re: [rules-users] How to fire rules of a specific rule file from ChangeSet

2012-08-20 Thread Rana
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

Re: [rules-users] How to fire rules of a specific rule file from ChangeSet

2012-08-20 Thread Wolfgang Laun
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

[rules-users] How to fire rules of a specific rule file from ChangeSet

2012-08-20 Thread Rana
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

[rules-users] Decision Table Help

2012-08-20 Thread qwertyqwerty
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

Re: [rules-users] All the values from one list must be present in other

2012-08-20 Thread Suvek
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;

Re: [rules-users] All the values from one list must be present in other

2012-08-20 Thread Wolfgang Laun
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

Re: [rules-users] All the values from one list must be present in other

2012-08-20 Thread Suvek
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

Re: [rules-users] All the values from one list must be present in other

2012-08-20 Thread Wolfgang Laun
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

[rules-users] All the values from one list must be present in other

2012-08-20 Thread Suvek
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

Re: [rules-users] Continuous Planning values for task planning

2012-08-20 Thread Geoffrey De Smet
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

Re: [rules-users] modifying the problem facts while running the solver - Drools Planner

2012-08-20 Thread ge0ffrey
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

Re: [rules-users] modifying the problem facts while running the solver - Drools Planner

2012-08-20 Thread ge0ffrey
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)