Re: [rules-users] variable binding without condition in Decision table
I tried that but it doesn't work. Just results in an empty when condition. Thanks Kent Symanzik Jaroslaw Kijanowski kijanow...@gmail.com Sent by: rules-users-boun...@lists.jboss.org 07/14/2009 01:34 PM Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject Re: [rules-users] variable binding without condition in Decision table It should work without creating a dummy constraint, try this: CONDITION leave this row blank $serviceContract:CreditServiceContract() Cheers, Jarek Hehl, Thomas wrote: Nope, that?s how it works. I wrote it up as a defect and it got closed because no one seemed to think it was an issue. So, since I don?t have the time available to be a contributor, I decided not to complain. *From:* rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *k...@chryslerfinancial.com *Sent:* Thursday, May 21, 2009 9:05 AM *To:* Rules Users List *Subject:* [rules-users] variable binding without condition in Decision table I have a decision table where I need to bind a variable to use in the action. The problem is that the binding does not happen unless I apply a condition. What I want in the resulting rule is this: $serviceContract: CreditServiceContract ( ) This is what I want but does not work. The binding does not happen so the rule does not compile. This works but I hate to add an arbitrary condition just to accomplish a binding. I'm sure I am just missing something. Can someone point that out? Thanks Kent Symanzik ___ 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] Rule overriding
We are building a rule engine that will serve multiple companies. Many of the rules are common but there are some situations where the common rules need to be overriden by rules that are specific to a particular company. Each company has it's own rulebase that we create with packages that are configured for that company. I know that rules with the same name will override previous rules if they have the same package name. We could make that work if we compile the rules at runtime but I would like to deploy the binary packages from Guvnor. Has anyone come up with a solution for this? Thanks Kent Symanzik ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] agenda-group and decision tables
Is agenda-group or ruleflow-group supported in decision tables ? Kent Symanzik ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] agenda-group and decision tables
I thought so but when I upload the .xls to Guvnor and view the source I do not see it. I have it like this in my spreadsheet: Any ideas would be appreciated. Thanks Kent Symanzik David Sinclair dsincl...@chariotsolutions.com Sent by: rules-users-boun...@lists.jboss.org 05/22/2009 12:30 PM Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject Re: [rules-users] agenda-group and decision tables Yes it is via the AGENDA-GROUP and RULEFLOW-GROUP keywords. The keyword must appear at the top of a column, then which group to place a rule in per row. 2009/5/22 k...@chryslerfinancial.com Is agenda-group or ruleflow-group supported in decision tables ? Kent Symanzik ___ 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 image/gif___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] variable binding without condition in Decision table
I have a decision table where I need to bind a variable to use in the action. The problem is that the binding does not happen unless I apply a condition. What I want in the resulting rule is this: $serviceContract: CreditServiceContract ( ) This is what I want but does not work. The binding does not happen so the rule does not compile. This works but I hate to add an arbitrary condition just to accomplish a binding. I'm sure I am just missing something. Can someone point that out? Thanks Kent Symanzik image/gifimage/gif___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Debugging a Decision table
I have created my first decision table. I see the activation created and fired in the Audit log but I never see the resulting action which is simply a print statement. Anyone have ideas how to debug this? Here is the table: Thanks Kent Sample.xls Description: MS-Excel spreadsheet ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Debugging a Decision table
I got it to work if I put the action on every rule row. Is there a way to set a default action? I just want business users add dealer numbers without knowing about actions? Thanks Kent k...@chrysler.com Sent by: rules-users-boun...@lists.jboss.org 02/23/2009 03:15 PM Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject [rules-users] Debugging a Decision table I have created my first decision table. I see the activation created and fired in the Audit log but I never see the resulting action which is simply a print statement. Anyone have ideas how to debug this? Here is the table: Thanks Kent___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Sample.xls Description: MS-Excel spreadsheet ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Dynamic work items
Part of the reason we are using rules is the flexibility. Mainly we can deploy changes to the rules without redeploy the whole application. We are populating the fact model by using work items in the flow that hit the database. The problem I see here is that this is not flexible as the java code for the work items is not in the rule package. Can java code be included in the rule package somehow? Or should we just dynamically load a separate jar? I rather have the rules and java code all in one package. Thanks Kent Symanzik ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Rule matching - Class heirarchy
I have two classes, ClassA and ClassB. ClassB inherits from ClassA. I have a need to write a rule that only matches instances of ClassA without matching instances of ClassB. How I can I do that? Thanks Kent Symanzik ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Flow action - insert into KnowledgeSession
Ok, I just needed to do more reading. I used an exit action to get the result and then used the process context variable to insert the result into working memory. Works nicely. Thanks Kent Symanzik k...@chrysler.com Sent by: rules-users-boun...@lists.jboss.org 02/09/2009 02:47 PM Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject [rules-users] Flow action - insert into KnowledgeSession I have defined a WorkItemHandler which can, based on the parameters, collect some additional data. I would like to insert the new facts into the session but I do not see where a workItemHandler can get access to the current stateless session. Should this be done by returning the new facts in the results ? If so, how can you insert the results into the session? Thanks Kent Symanzik___ 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] Flow action - insert into KnowledgeSession
I have defined a WorkItemHandler which can, based on the parameters, collect some additional data. I would like to insert the new facts into the session but I do not see where a workItemHandler can get access to the current stateless session. Should this be done by returning the new facts in the results ? If so, how can you insert the results into the session? Thanks Kent Symanzik ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Inserting collection of facts in rule Consequence
There may be a better way but I did it using a function as below: function void insertArray(WorkingMemory workingMemory, Object[] array) { for (int i=0;iarray.length;i++) { workingMemory.insert(array[i]); } return; } ... rule StarCoApplicants ruleflow-group STAR dialect mvel when $creditContract : CreditContract () then insertArray(drools.workingMemory,$creditContract.coApplicantArray); end Kent Symanzik techy techluver...@gmail.com Sent by: rules-users-boun...@lists.jboss.org 02/09/2009 10:15 AM Please respond to Rules Users List rules-users@lists.jboss.org To rules-users@lists.jboss.org cc Subject Re: [rules-users] Inserting collection of facts in rule Consequence I would appreciate If someone can clarify this. Thanks in advance techy wrote: Hello, Is there way to insert all facts from collection (similar to session.execute(collection)) in the rule consequence ? Thanks! -- View this message in context: http://www.nabble.com/Inserting-collection-of-facts-in-rule-Consequence-tp21814308p21914860.html Sent from the drools - user 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] Drools 5 m4 in IRAD/Websphere
I've read that Drools is compatible with jdk 1.4 but I get the error below in IRAD 6 which is jdk version: java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142ifx-20060307 (142S R4-1 + 98226) (JIT enabled: jitc)) I searched the archives but could not find anything about this. Any suggestions would be appreciated. The java class could not be loaded. java.lang.UnsupportedClassVersionError: org/drools/event/KnowledgeRuntimeEventManager (Unsupported major.minor version 49.0) Thanks Kent___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] guvnor - cannot delete business rule assets
Drools 5.0.0.M4 Guvnor Standalone There does not appear to be an option for deleting business rule assets. The delete button does show up for technical assets. Is it based on some context that I am not aware of? Thanks Kent___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] or condition - subrules
I understand that as this rule is written below it will be compiled into 2 subrules which both fire. I searched the archives and found a post where Mark Proctor suggested Bind each pattern, and do the || field constraints in an eval.. I'm new to Drools, can someone elaborate on how I would do that with the rule below? rule Test when (CoApplicant( relationship == S ) or (Contract ( state in (CO, IL then ... Thanks Kent ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users