Re: [rules-users] Future events
You shouldn't base a streamed CEP application on time stamps dealt out by various systems with clocks that aren't properly synchronized using NTP or whatever. If your data doesn't conform to the very reasonable premises of some system, your application will have to handle that. (You can't tell the engineer to start the train just because your clock is fast, right?) window:time is based on the notion of CEP in real time, and the clock of the machine running the engine reads, by definition, true Time. But you can run the engine in cloud mode and reason over arbitrary intervals, e.g., by inserting Inverval facts. True, you won't have window:x any more, but from/accumulate and from/collect should suffice. -W On 14/03/2012, lexsoto lexs...@gmail.com wrote: Well, yes that is how the engine works. But should it work this way? Why fire the rule if not in the appropriate time window? This still looks wrong to me, as the intention of the rule is not observed. On the per hand, the engine does queue events in other scenarios, so it seems arbritrary. Too bad because this would be a ver nice way to model scheduled events using the temporal operators. Thanks Edson -- View this message in context: http://drools.46999.n3.nabble.com/Future-events-tp3826236p3827065.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Data comparing in CONDITION column decision table
Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |$a.getType()| |--+---+| |2 | |$a.getType()| |--+---+| |3 | |$a.getType()| |--+---+| |4 | |$a.getType()| |--+---+| |5 | |$a.getType()| |--+---+| |6 | |$a.getType()| |--+---+| But it won't work. It would be great if somebody could help me on this. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Data comparing in CONDITION column decision table
Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |$a.getType()| |--+---+| |2 | |$a.getType()| |--+---+| |3 | |$a.getType()| |--+---+| |4 | |$a.getType()| |--+---+| |5 | |$a.getType()| |--+---+| |6 | |$a.getType()| |--+---+| But it won't work. It would be great if somebody could help me on this. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Data comparing in CONDITION column decision table
when I do this I am getting the below error: Exception in thread main java.lang.RuntimeException: Unable to Analyse Expression $a.getType(): [Error: unable to resolve method using strict-mode: com.example.model.Customer.$a()] [Near : {... $a.getType() }] ^ [Line: 1, Column: 1] : [Rule name='Discount_10'] Unable to Analyse Expression $a.getType(): [Error: unable to resolve method using strict-mode: com.example.model.Customer.$a()] [Near : {... $a.getType() }] ^ [Line: 1, Column: 1] : [Rule name='Discount_11'] Unable to Analyse Expression $a.getType(): [Error: unable to resolve method using strict-mode: com.example.model.Customer.$a()] [Near : {... $a.getType() }] ^ [Line: 1, Column: 1] : [Rule name='Discount_12'] | |RuleTable |Discount | |CONDITION |CONDITION | |---+| |$a : Account |$c : Customer | |---+| | |type == $param |---+ |Account|Type| |---+| | |$a.getType()| |---+| | || |---+| | || |---+| | || |---+| | || |---+| | || |---+| Howerver, when I include the following in the decision table: | |RuleTable |Discount | |CONDITION |CONDITION | |---+| |$a : Account |$c : Customer | |---+| |type |type == $param |---+ |Account|Type| |---+| |savings|$a.getType()| |---+| |current|| |---+| |savings|| |---+| |current|| |---+| |savings|| |---+| |current|| |---+| I am getting correct result. But here I don't want to check for the type entered for Account class. The generated drl is like this: rule Discount_10 when $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end How to make changes to the decision table entries to get a drl of this kind: rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org
Re: [rules-users] Data comparing in CONDITION column decision table
On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: How to make changes to the decision table entries to get a drl of this kind: Put $a: Account() $c: Customer into the cell where you now have $c : Customer and delete the Account column. -W rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |$a.getType()| |--+---+| |2 | |$a.getType()| |--+---+| |3 | |$a.getType()| |--+---+| |4 | |$a.getType()| |--+---+| |5 | |$a.getType()| |--+---+| |6 | |$a.getType()| |--+---+| But it won't work. It would be great if somebody could help me on this. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Data comparing in CONDITION column decision table
After doing the changes, its taking the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer then $c.setDiscount(1); end and if I put it as $a: Account() $c: Customer(), it takes the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer() then $c.setDiscount(1); end Both these throw error.. neither putting the $c:Customer before $a:Account is getting executed. Thanks Regards, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:06 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: How to make changes to the decision table entries to get a drl of this kind: Put $a: Account() $c: Customer into the cell where you now have $c : Customer and delete the Account column. -W rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |$a.getType()| |--+---+| |2 | |$a.getType()| |--+---+| |3 | |$a.getType()| |--+---+| |4 | |$a.getType()| |--+---+| |5 | |$a.getType()| |--+---+| |6 | |$a.getType()|
Re: [rules-users] Data comparing in CONDITION column decision table
Hi Wolfgang any other way to achieve this. I have tried many times, but no success till now :( Thanks, Sumeet From: Sumeet Karawal sumeet.kara...@tcs.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:24 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org After doing the changes, its taking the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer then $c.setDiscount(1); end and if I put it as $a: Account() $c: Customer(), it takes the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer() then $c.setDiscount(1); end Both these throw error.. neither putting the $c:Customer before $a:Account is getting executed. Thanks Regards, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:06 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: How to make changes to the decision table entries to get a drl of this kind: Put $a: Account() $c: Customer into the cell where you now have $c : Customer and delete the Account column. -W rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |
Re: [rules-users] Auto generating Schedule(curriculum) in drools-planner
Hi Nurlan, That mainly depends on how difficult the problem is, which is only partially related to problem size and constraint size. Normally we're talking seconds for a feasible schedule (0 hard constraints broken) and very optimal schedules in minutes. Here are some results of curriculum course, in which the time is displayed in milliseconds: INFO Loaded: data/curriculumcourse/unsolved/comp01.xml INFO Solving started: time spend (27), score (null), new best score (null), random seed (0). INFO Phase constructionHeuristic ended: step total (160), time spend (4240), best score (0hard/-212soft). // 4 seconds for feasible INFO Phase localSearch ended: step total (532), time spend (60061), best score (0hard/-39soft). INFO Solving ended: time spend (60061), best score (0hard/-39soft), average calculate count per second (9523). INFO Loaded: data/curriculumcourse/unsolved/comp05.xml INFO Solving started: time spend (20), score (null), new best score (null), random seed (0). INFO Phase constructionHeuristic ended: step total (152), time spend (9768), best score (-4hard/-772soft). INFO Phase localSearch ended: step total (176), time spend (60043), best score (-3hard/-701soft). INFO Solving ended: time spend (60043), best score (-3hard/-701soft), average calculate count per second (3706). // Not yet feasible after 60 secs INFO Loaded: data/curriculumcourse/unsolved/comp10.xml INFO Solving started: time spend (31), score (null), new best score (null), random seed (0). INFO Phase constructionHeuristic ended: step total (370), time spend (23033), best score (0hard/-464soft). // 23 seconds for feasible INFO Phase localSearch ended: step total (198), time spend (60025), best score (0hard/-354soft). INFO Solving ended: time spend (60025), best score (0hard/-354soft), average calculate count per second (5863). Try them out yourself, just run the examples from the distribution zip and chose course scheduling. If you have only milliseconds to spare, take a look into real-time planning, which is a trick to get a feasible, good schedules in milliseconds. http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-planner-docs/html_single/index.html#repeatedPlanning Op 15-03-12 05:20, Nurlan schreef: Hi, guys! Approximately how many *time* takes generation of school-schedule in drools-planner if i have: 40 rooms and 42 periods(*period* contains /day of week/ and /time/(or lesson order)) *Planning entity:* Lesson(id,course,room,period) and facts... this important for me... -- View this message in context: http://drools.46999.n3.nabble.com/Auto-generating-Schedule-curriculum-in-drools-planner-tp3827828p3827828.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- With kind regards, Geoffrey De Smet ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Data comparing in CONDITION column decision table
The documentation for 5.3.0 says quote To include a pattern without constraints, you can write the pattern in front of the text for another pattern. /quote but it does not work with 5.2.0 and (likely) later versions. As a workaround, re-insert the Account column and use a redundant condition that is certainly true for all facts. I'll have to look into this. -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi Wolfgang any other way to achieve this. I have tried many times, but no success till now :( Thanks, Sumeet From: Sumeet Karawal sumeet.kara...@tcs.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:24 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org After doing the changes, its taking the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer then $c.setDiscount(1); end and if I put it as $a: Account() $c: Customer(), it takes the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer() then $c.setDiscount(1); end Both these throw error.. neither putting the $c:Customer before $a:Account is getting executed. Thanks Regards, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:06 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: How to make changes to the decision table entries to get a drl of this kind: Put $a: Account() $c: Customer into the cell where you now have $c : Customer and delete the Account column. -W rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other com.bank.Account in the rules I want to check whether the value entered for a particular field in Customer class is equal to the value entered for the corresponding field in the Account class. eg Customer.accType = Account.accType() How can we achieve this using Decision table (CONDITION Column). I have tried this: |RuleTable |Discount |CONDITION |CONDITION | ---+| |$a : Account |$c : Customer | ---+| | |type == $param --+---+ | Discount |Account|Type| | Rules | || |--+---+| |1 | |$a.getType()| |--+---+| |2 | |$a.getType()| |--+---+| |3 | |$a.getType()| |--+---+| |4 | |$a.getType()| |--+---+| |5 | |$a.getType()| |--+---+| |6 | |$a.getType()| |--+---+| But it won't work. It would be great
Re: [rules-users] Auto generating Schedule(curriculum) in drools-planner
Actually I've seen your examples :) But I think my problem is a little bit different from your curriculum... because in our country education system is different from us education system :) so I have task, in next 2 month I have to solve school-schedule generation system in our country and know I've implemented simple prototype w/o any interface(view) in terminal mode and tested with real school's data, but it takes too many time for generation can you help me with performance? how can I increase performance? I will post my code in github.com :) -- View this message in context: http://drools.46999.n3.nabble.com/Auto-generating-Schedule-curriculum-in-drools-planner-tp3827828p3828597.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Auto generating Schedule(curriculum) in drools-planner
Op 15-03-12 13:23, Nurlan schreef: Actually I've seen your examples :) But I think my problem is a little bit different from your curriculum... because in our country education system is different from us education system :) so I have task, in next 2 month I have to solve school-schedule generation system in our country and know I've implemented simple prototype w/o any interface(view) in terminal mode and tested with real school's data, but it takes too many time for generation can you help me with performance? how can I increase performance? Read the f(abulous) manual completely: http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-planner-docs/html_single/index.html Read your logs: http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-planner-docs/html_single/index.html#d0e2459 Which optimization algorithms to use. http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-planner-docs/html_single/index.html#d0e3179 And most importantly, use the benchmarker: http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-planner-docs/html_single/index.html#d0e4447 I will post my code in github.com That's good and others might help you out this way, but doing full code blob reviews take hours, not minutes, so I can only spend such amounts of time on RH customers [1]. Follow the advice above and come back to this mailing list with specific, small pieces of code you have questions or doubts about it. [1] http://www.jboss.com/products/platforms/brms/ :) -- View this message in context: http://drools.46999.n3.nabble.com/Auto-generating-Schedule-curriculum-in-drools-planner-tp3827828p3828597.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- With kind regards, Geoffrey De Smet ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Auto generating Schedule(curriculum) in drools-planner
ok, thank you for reply :) -- View this message in context: http://drools.46999.n3.nabble.com/Auto-generating-Schedule-curriculum-in-drools-planner-tp3827828p3828663.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Data comparing in CONDITION column decision table
I inserted Account column with values that are always true. Works fine. :) Will try the same with 5.3 . Thanks Regards, Sumeet From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 05:30 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org The documentation for 5.3.0 says quote To include a pattern without constraints, you can write the pattern in front of the text for another pattern. /quote but it does not work with 5.2.0 and (likely) later versions. As a workaround, re-insert the Account column and use a redundant condition that is certainly true for all facts. I'll have to look into this. -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi Wolfgang any other way to achieve this. I have tried many times, but no success till now :( Thanks, Sumeet From: Sumeet Karawal sumeet.kara...@tcs.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:24 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org After doing the changes, its taking the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer then $c.setDiscount(1); end and if I put it as $a: Account() $c: Customer(), it takes the rules as: rule Discount_10 when $a:Account(type == $a.getType(), accno == 1001) $c:Customer() then $c.setDiscount(1); end Both these throw error.. neither putting the $c:Customer before $a:Account is getting executed. Thanks Regards, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 04:06 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: How to make changes to the decision table entries to get a drl of this kind: Put $a: Account() $c: Customer into the cell where you now have $c : Customer and delete the Account column. -W rule Discount_10 when $a : Account() $c : Customer(type == $a.getType(), accno == 1001) then $c.setDiscount(1); end Thanks, Sumeet Mailto: sumeet.kara...@tcs.com From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Date: 03/15/2012 02:47 PM Subject:Re: [rules-users] Data comparing in CONDITION column decision table Sent by:rules-users-boun...@lists.jboss.org Line breaks were lost in transit, but I think that you should remove the quotes from type == $param if you insert an expression $a.getType(). -W On 15/03/2012, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, Can we use a data value of another object in the condition column of a Spreadsheet. For example: I have two data types(POJOs) one com.bank.Customer and other
Re: [rules-users] Ruleflow stops after 1st rule task when using changeset
Thanks. That part I found and solved already from another post. However, the ruleflow still stops in the first ruletask. Any thoughts? I am basically recoding KnowledgeAgents to get the functionality. -- View this message in context: http://drools.46999.n3.nabble.com/Ruleflow-stops-after-1st-rule-task-when-using-changeset-tp3809834p3829181.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users