Re: [rules-users] Fact Names in a Model
Even if you get the packages using REST API, you still need to add them to a kbuilder (you don't need to have multiple kbuilders. 1 kbuilder can contain multiple packages). What you can do if you don't want to manually add all the packages to a kbuilder is to create a change-set, which is basically an xml pointing to all the resources you want to add. Then, you add the change-set to the kbuilder with ResourceType.CHANGE_SET. For more information about change-sets, please refer to the documentation. Best Regards , Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Dec 13, 2011 at 6:21 AM, srinivasasanda srinivasasa...@gmail.comwrote: Hi Esteban, *Listing Packages* KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder1.getKnowledgePackages()); kbase.addKnowledgePackages(kbuilder2.getKnowledgePackages()); int flag=1; for(KnowledgePackage kp :kbase.getKnowledgePackages()) { System.out.println(Package Names are+kp.getName()); } The code which i had written here can possible to retrieves the list of packages.Here,I added snapshots to kbuilder1,kbuilder2 and through kbase iam retrieving the packages list.Is it is possible to retrieve list of packages without adding package snapshots to kbuilder.???It means i think through repository.xml...How can i achieve that??? Even i referred REST API but unable to retrieve XML nodes from it -- View this message in context: http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-tp3572234p3581479.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
Re: [rules-users] How Add all packages to KnowledgeBuilder.add(drl or pkg or xsd,..);
Part of the solution was mentioned here: http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-td3581480.html (maybe the response didn't appear in nabble yet) If you don't want to maintain your change-sets in your applications, then you need to wait until this pull-request is applied (It must be accepted first :) ) https://github.com/droolsjbpm/guvnor/pull/26 Right now, Guvnor only publishes 1 change-set per package. In some situation, like yours, this is not enough. Sometimes you need to have a change-set pointing to: - specific assets inside a specific package - specific assets inside multiple packages - multiple packages (your case) - a mix of all the options This is what the mentioned pull-request does. It adds a new change-set editor in Guvnor that allows users to create their own change-sets. Change-sets then can be accessed from your applications using HTTP (like any other asset through REST). Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Dec 13, 2011 at 6:45 AM, srinivasasanda srinivasasa...@gmail.comwrote: Hi All, Thanks in Advance to one and all, U have helped me lot , Please can give me some idea to resolve from this senario.. we are giving (package created in guvnor) as newUrlResource(url,type) to add to kbuilder, ... I have some 100 of packages how can i add all the packages to kbuilder... but by using rest api - http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/rest/packages (if i give this url in browser) i am able to see all the packages.. can i add the all packages with out hot coding the each and every package to kbuilder.add(url,type); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); String url= http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/sample/LATEST/ ; kbuilder.add(ResourceFactory.newUrlResource(url), ResourceType.PKG); -- View this message in context: http://drools.46999.n3.nabble.com/How-Add-all-packages-to-KnowledgeBuilder-add-drl-or-pkg-or-xsd-tp3581495p3581495.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
Re: [rules-users] Listing all packages present in gunvor repository
This is the third post I read today about this topic and of the same author :) Please try to avoid replication. It makes it very hard for other users looking for information. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Dec 13, 2011 at 6:22 AM, srinivasasanda srinivasasa...@gmail.comwrote: Hi, *Listing Packages* KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder1.getKnowledgePackages()); kbase.addKnowledgePackages(kbuilder2.getKnowledgePackages()); int flag=1; for(KnowledgePackage kp :kbase.getKnowledgePackages()) { System.out.println(Package Names are+kp.getName()); } The code which i had written here can possible to retrieves the list of packages.Here,I added snapshots to kbuilder1,kbuilder2 and through kbase iam retrieving the packages list.Is it is possible to retrieve list of packages without adding package snapshots to kbuilder.???It means i think through repository.xml...How can i achieve that??? Even i referred REST API but unable to retrieve XML nodes from it -- View this message in context: http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-tp3581480p3581480.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] [MVEL] the data converter does not work
Can someone tell why the data converter does not work at all and what is the reason we make the data converter to value assignment statement only? public void testDataConverter() throws Exception { OptimizerFactory.setDefaultOptimizer(OptimizerFactory.SAFE_REFLECTIVE); DataConversion.addConversionHandler(Date.class, new MyDateConverter()); Locale.setDefault(Locale.US); Cheese cheese = new Cheese(); cheese.setUseBy(new SimpleDateFormat(dd-MMM-).parse(10-Jul-1974)); MapString, Object variables = new HashMapString, Object(); variables.put(cheese, cheese); Serializable compiledExpression = MVEL.compileExpression(cheese.useBy == '10-Jul-1974'); boolean result = MVEL.executeExpression(compiledExpression, variables, Boolean.class); assertTrue(result); } Here is what I can see from the code, at the end this method will be called, would it be nice to allow the data converter here? private static Boolean safeEquals(final Object val1, final Object val2) { if (val1 != null) { return val1.equals(val2) ? Boolean.TRUE : Boolean.FALSE; } else return val2 == null || (val2.equals(val1) ? Boolean.TRUE : Boolean.FALSE); } - Ivan, your Panda, forever -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-the-data-converter-does-not-work-tp3581797p3581797.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] Listing all packages present in gunvor repository
Sorry Esteban,I've repeated that post again.Will not do it again.. Thanks -- View this message in context: http://drools.46999.n3.nabble.com/Listing-all-packages-present-in-gunvor-repository-tp3581480p3581803.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] Guvnor data enumeration issue
Is that issue is solved..Please help me if that bug is solved. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Guvnor-data-enumeration-issue-tp3460017p3581924.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] [MVEL] the data converter does not work
For this particular cases, if I modify the safeEquals method to be something like this, the test case would success, what is the disadvantage to add converters like this, any hint? private static Boolean safeEquals(final Object val1, final Object val2) { if (val1 != null) { if (DataConversion.canConvert(val2.getClass(), val1.getClass())) { return val2.equals(DataConversion.convert(val1, val2.getClass())); } return val1.equals(val2) ? Boolean.TRUE : Boolean.FALSE; } else return val2 == null || (val2.equals(val1) ? Boolean.TRUE : Boolean.FALSE); } - Ivan, your Panda, forever -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-the-data-converter-does-not-work-tp3581797p3581928.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] Guvnor data enumeration issue
No they are not fixed yet. I moved the two items to GUVNOR's JIRA:- https://issues.jboss.org/browse/GUVNOR-1730 https://issues.jboss.org/browse/GUVNOR-1731 On 13 December 2011 09:59, srinivasasanda srinivasasa...@gmail.com wrote: Is that issue is solved..Please help me if that bug is solved. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Guvnor-data-enumeration-issue-tp3460017p3581924.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
Re: [rules-users] Problems with Domain Specific Language in eclipse
Personally - I would rather get an error when I make a mistake (e.g. do not write the DSL correctly) than get get an error for writing perfectly valid code. [Swindells, Thomas] But it isn't valid DSL code. DSL is normally written by business users who don't know anything about DRL, this is the target audience and for these people you don't want them to be able to accidentally do additional logic. Eclipse does support a DSL expansion window which allows you to find issues like misspellings. The current approach requires a total commitment to DSL even if you want to use it under rare circumstances. I did note your suggestion about prefixing with '', but then my RHS looks different in rule files where I use DSL than it does in files where I do not use DSL (something I would rather avoid). Your entire file looks different in DSL than in a DRL anyway, it's a different language that allows embedding DRL, personally I think it is a good feature to explicitly need to identify that you know what you are doing. Thomas ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Store a Map in Country Enumeration
Hi, I have a declarative model with a fact named Person with field*(country,state)* I have seen in guvnor documentation that 'Board.type':['short','long','NN=MIn Mal'] Min Mal will be displayed in GUI where as NN will be used backend In the sameway,I need to use country ids instead of countrynames in backend where countryname should displayed at GUI.How I can do this?please suggest me.. 'Person.country':(new com.sample.DropDownList()).loadCountriesList()- Countries are succesfully loaded---US,UK,JAPANetcin dropdown list Now I should use different IDs for these different countries in backend. In the above enumeration I should use different Ids for different countries in backend(rule)..How can I do this Please suggest me.Please How can I achieve -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.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] Many to many matching rules implementation in Drools
Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario i have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe -- View this message in context: http://drools.46999.n3.nabble.com/Many-to-many-matching-rules-implementation-in-Drools-tp3582479p3582479.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] Many to many matching using Drools rules
Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Many to many matching rules implementation in Drools
2011/12/13 Milanello1998 milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario i have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Yes, I've successfully matched x facts of class A with y facts of class B, the cardinality of these two fact sets being greater that x and y, respectively. We can continue like that for days, unless you provide more details ;-) Wolfgang Best Abe View this message in context: Many to many matching rules implementation in Drools 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
Re: [rules-users] Many to many matching using Drools rules
Huh? -W 2011/12/13 Zhuo Li milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ 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] Strange error in DRL compiler
The following RHS is valid: when $ea : EasyApp(agt_eaList.size 1) The following RHS is not valid: when $ea : EasyApp(agt_eaList.size 1 || agt_eaList.size 3) I have to do this to make the RHS valid: when $ea : EasyApp(agt_eaList.size() 1 || agt_eaList.size() 3) I'm not sure I understand why. -- View this message in context: http://drools.46999.n3.nabble.com/Strange-error-in-DRL-compiler-tp3582691p3582691.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] Problems with Domain Specific Language in eclipse
Thomas: Yes, that explains why you implemented it as you did. I guess we'll just have to agree to disagree. It appears possible to replace the Expander when bringing up the system in Java ... is it possible to replace the Expander used by the Eclipse plug-in? Thanks, Ron -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Problems-with-Domain-Specific-Language-in-eclipse-tp3579963p3582705.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] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration
Edson, Thanks for your feedback. I've have created an eclipse/maven project to duplicate this problem but I couldn't figure out how to open an issue in Jira (perhaps I don't have permission). If I include all the dependent libraries in a zip file (for convenience) the zip will be 7MB (which might not be so convenient after all). Please let me know how I can open a new issue in Jira and/or how best to deliver this project to you. John From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Friday, December 09, 2011 5:34 PM To: Rules Users List Subject: Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration Looks like a bug in the merging algorithm for types. Can any of you please open a JIRA with a small test case and/or instructions on how to reproduce plz? Thank you, Edson On Fri, Dec 9, 2011 at 6:34 PM, jmgreen john.gr...@hp.commailto:john.gr...@hp.com wrote: I was able to work around this problem by filtering out the KnowledgePackage containing my NormalizedEvent. In Drools 5.2.0 there was no problem adding this KnowledgePackage multiple times but apparently 5.3.0 doesn't cope with it well. I'm still not sure if that is a feature or a defect in 5.3.0. In any event doing the following make the exception go away. I'm still curious if this is a feature or a defect in 5.3.0. Any thoughts or opinions regarding are welcome. String globals = readDrlfile(globals.drl); String newRules = readDrlfile(rulesToAdd.drl); knowledgeBuilder.add(ResourceFactory.newReaderResource(new StringReader(globals + newRules))); if (knowledgeBuilder.hasErrors()) { throw exception ... } // No exception so compile succeeded --- BTW, it's using JANINO CollectionKnowledgePackage pkgs = knowledgeBuilder.getKnowledgePackages(); pkgs=filterOutAnyPackageThatHasNoRulesAndNameMatchingNormalizeEventPackageName(pkgs); knowledgeBase.addKnowledgePackages(pkgs); // NO ERROR ANYMORE -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-5-3-0-Final-throws-RuntimeDroolsException-Unable-to-merge-resource-attribute-for-type-den-tp3573815p3574420.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.comhttp://www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
You *should* be able to have your backend service return values as display=value. TBH, I've not tried it personally but the internal mechanics should be the same. I'd be interested in your feedback so we can schedule improvements if necessary. On 13 December 2011 13:10, srinivasasanda srinivasasa...@gmail.com wrote: Hi, I have a declarative model with a fact named Person with field*(country,state)* I have seen in guvnor documentation that 'Board.type':['short','long','NN=MIn Mal'] Min Mal will be displayed in GUI where as NN will be used backend In the sameway,I need to use country ids instead of countrynames in backend where countryname should displayed at GUI.How I can do this?please suggest me.. 'Person.country':(new com.sample.DropDownList()).loadCountriesList()- Countries are succesfully loaded---US,UK,JAPANetcin dropdown list Now I should use different IDs for these different countries in backend. In the above enumeration I should use different Ids for different countries in backend(rule)..How can I do this Please suggest me.Please How can I achieve -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.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
Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration
John, All you need to do is create an account for yourself in the JIRA home page and you will be able to create the ticket and upload your project. That is the best way as it provides tracking and avoids your code being lost in someone's (or my) inbox. https://issues.jboss.org/browse/JBRULES Edson 2011/12/13 Green, John M (HP Software) john.gr...@hp.com Edson, ** ** Thanks for your feedback. I've have created an eclipse/maven project to duplicate this problem but I couldn't figure out how to open an issue in Jira (perhaps I don't have permission). ** ** If I include all the dependent libraries in a zip file (for convenience) the zip will be 7MB (which might not be so convenient after all). ** ** Please let me know how I can open a new issue in Jira and/or how best to deliver this project to you. ** ** John *From:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli *Sent:* Friday, December 09, 2011 5:34 PM *To:* Rules Users List *Subject:* Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration ** ** ** ** Looks like a bug in the merging algorithm for types. Can any of you please open a JIRA with a small test case and/or instructions on how to reproduce plz? ** ** Thank you, Edson On Fri, Dec 9, 2011 at 6:34 PM, jmgreen john.gr...@hp.com wrote: I was able to work around this problem by filtering out the KnowledgePackage containing my NormalizedEvent. In Drools 5.2.0 there was no problem adding this KnowledgePackage multiple times but apparently 5.3.0 doesn't cope with it well. I'm still not sure if that is a feature or a defect in 5.3.0. In any event doing the following make the exception go away. I'm still curious if this is a feature or a defect in 5.3.0. Any thoughts or opinions regarding are welcome. String globals = readDrlfile(globals.drl); String newRules = readDrlfile(rulesToAdd.drl); knowledgeBuilder.add(ResourceFactory.newReaderResource(new StringReader(globals + newRules))); if (knowledgeBuilder.hasErrors()) { throw exception ... } // No exception so compile succeeded --- BTW, it's using JANINO CollectionKnowledgePackage pkgs = knowledgeBuilder.getKnowledgePackages(); pkgs=filterOutAnyPackageThatHasNoRulesAndNameMatchingNormalizeEventPackageName(pkgs); knowledgeBase.addKnowledgePackages(pkgs); // NO ERROR ANYMORE -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-5-3-0-Final-throws-RuntimeDroolsException-Unable-to-merge-resource-attribute-for-type-den-tp3573815p3574420.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 ** ** -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Error using drools.net for web application
I have seen a few posts on this, but nothing that seems to solve it. I have used drools.net working successfully locally in a windows app with the following code: PackageBuilder builder = new PackageBuilder(); Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(MinimalDroolsForm.SimpleRules.drl); builder.AddPackageFromDrl(MinimalDroolsForm.SimpleRules.drl, stream); Package pkg = builder.GetPackage(); ruleBase = RuleBaseFactory.NewRuleBase(); ruleBase.AddPackage(pkg); workingMemory = ruleBase.NewWorkingMemory(); workingObj = new CustomerRecord(); etc. However, when I try something similar in a web app, I get the following error at builder.AddPackageFromDrl(DroolsApp.SimpleRules.drl, stream); : The invoked member is not supported in a dynamic assembly I am using all of the following assemblies: 1) drools-3.0 2) drools-dep 3) drools.dotnet 4) IKVM.GNU.Classpath 5) IKVM.Runtime Additionally, My rule is very simple: package DroolsApp rule OldCustomer when cust : CustomerRecord( DaysSinceLastOrder 90, Status != Re-Active ) then true; end I am targeting the .NET Framework 4, and running on Windows7, under IIS7. Please let me know if you need any additional information. Thank you. -- View this message in context: http://drools.46999.n3.nabble.com/Error-using-drools-net-for-web-application-tp3582769p3582769.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] Strange error in DRL compiler
I can't get it to accept this LHS at all: when $ea : EasyApp((priBen_xmPartyList.size() != priBen_xmRelationList.size()) || (priBen_xmPartyList.size() != priBen_eaRelationshipNameList.size())) Description ResourcePathLocationType BuildError: Unable to Analyse Expression priBen_xmPartyList.size != priBen_xmRelationList.size || priBen_xmPartyList.size != priBen_eaRelationshipNameList.size: [Error: unable to resolve method using strict-mode: com.onfs.easyapp.EasyApp.priBen_eaRelationshipNameList()] [Near : {... xmPartyList.size != priBen_eaRelationshipNameList. }] ^ [Line: 1, Column: 85] EasyApp.drl /TermXpressRules/src/main/rules line 243 Drools Error And, yes, they are all three lists: priBen_xmPartyList = new ArrayListXmParty(); priBen_xmRelationList = new ArrayListXmRelation(); priBen_eaRelationshipNameList = new ArrayListString(); -- View this message in context: http://drools.46999.n3.nabble.com/Strange-error-in-DRL-compiler-tp3582691p3582798.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] Strange error in DRL compiler
Note - I typed RHS by accident in the first posting ... clearly I am talking about the LHS -- View this message in context: http://drools.46999.n3.nabble.com/Strange-error-in-DRL-compiler-tp3582691p3582802.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] 答复: Many to many matching using Drools rules
Thanks Laun. Let me provide more details here. Repository record schema: # ,Portfolio_ID, Asset_ID, Due_Date, Received_Amt 1 ,1 , 001, 111209, 1 2 ,1 , 001, 111209, 5000 3, 1 , 001, 111209, 3000 4, 2 , 001, 111216, 8000 5, 2 , 001, 111216, 6000 6, 2 , 001, 111216, 6000 Accounting record schema: #, Portfolio_ID, Asset_ID, Due_date, Received_Amt 1, 1, 001,111209, 3000 2, 1, 001,111209, 3000 3, 1, 001,111209, 3000 4, 1, 001,111209, 3000 5, 1, 001,111209, 3000 6, 1, 001,111209, 3000 7, 1, 001,111209, 5000 8, 1, 001,111209, 6000 9, 2, 001,111216, 5000 10, 2, 001,111216, 5000 11, 2, 001,111216, 5000 12, 2, 001,111216, 5000 13, 2, 001,111216, 3000 The expectation is to find matches on subtotal of received_amt, for the same Portfolio/Asset/Due Date. In above example, Repository's 1,2,3 match against accounting's 1,2,3,4,5,6 and leave 7 alone. Reporsitory's 4, 5,6 match against accounting's 9, 10, 11, 12 and leave 13 alone. Appreciate your help! Best Abe -邮件原件- 发件人: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] 代表 Wolfgang Laun 发送时间: 2011年12月13日 23:28 收件人: Rules Users List 主题: Re: [rules-users] Many to many matching using Drools rules Huh? -W 2011/12/13 Zhuo Li milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ 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] Temporal operators for point-in-time events
Apologies for the stupid question, but I haven't seen anything in the documentation regarding this and I want to verify my solution. Say I have a point-in-time event (i.e., duration of 0) that I want to correlate to another point-in-time event. I want a rule that will activate if the timestamp of one is greater than or equal to the other, basically after or coincides. I wrote a test using the following rule and it seemed to work: rule Greater Than or Equal when $e1 : TestEvent( $id : id ) $e2 : TestEvent( id != id, this after[0ms] $e1 ) then System.out.println($e2 + is greater than or equal to + $e1); end I realize this rule will fire twice if the event timestamps are equal, but it's just for demonstration purposes; my question is specifically about the after[0ms] part. Is this the way to go to accomplish what I need? It seems so simple but I have this annoying feeling that I'm missing something. On a slightly related topic, is there an updated version of the temporal operators image from the Drools Fusion homepage? It is a great visual description of the operators and I want to print it out and post it at my desk, but it doesn't include all of the operators. Image: http://www.jboss.org/drools/drools-fusion/mainColumnParagraphs/02/imageBinary/temporal-operators.png From page: http://www.jboss.org/drools/drools-fusion.html Thanks Mike ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] 答复: Many to many matching using Drools rules
Yes. I have consulted at very large companies that do this constantly in production. One reason to do this process all the time is to keep the pool of candidates for matching manageable. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Many-to-many-matching-using-Drools-rules-tp3582487p3582988.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] Can Drools supply large Knowledge Base?
There are a few things going on in these discussions: rule size vs number of facts vs number of rules. On the latter two, memory thrashes and then crashes when too much is brought into memory at once. You can use JVM options to increase memory size, variable space size, etc. The upper limit for the number of rules is based upon the size of the rule. However, if you are planning to have more than thousands of facts or rules in memory at once, you may have problems in a 32 bit JVM. Using a 64 bit JVM helps. On rule size, I have had clients with rules like if any of these symptoms then you could have cancer. The number of conditions on such a rule is over 100. DROOLS can handle rules of such complexity, although they are difficult to debug in any language. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Can-Drools-supply-large-Knowledge-Base-tp3569354p3583004.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] Stateless session in drools server keeping classes around?
Hi, I'm using drolls 5.3 server with one rule in a _stateless_ session. I am sending a POJO to the server, having it check a few attributes, modify the attributes of the bean as needed then return the result. I have this working and get back an execution results object like I need. The problem is that when I send the batch execution command to the server a number of classes stick around with each call (as shown in jconsole). Memory grows with each call until I run out. (I see garbage collection taking place so that doesnt seem to be the problem - and if I stop sending events to the server, the memory is never returned). I figured with a stateless session I wouldnt need to worry about this, anyone have thoughts about why this is happening? I am trying to do this quickly, and don't want to call dispose/retract (the whole reason I'm using stateless). knowledge-services.xml: drools:ksession id=ksession1 type=stateless kbase=kbase1 node=node1/ my code that builds the command: list cmds = new arraylist InsertObjectCommand icmd = CommandFactory.newInsert(myBean) icmd.setOutIdentifier(inserter) icmd.setEntryPoint(DEFAULT) cmds.add(icmd) FileAllRulesCommand farc = new FileAllRulesCommand() cmds.add(fileAllRulesCommand) BatchExecutionCommand command = CommandFactory.newBatchExecution(cmds,ksession1) .. As an aside, I also looked into setting the sequential mode to true to see if that helps, but am still trying to figure out how to configure that via Spring. Thanks for any insight, -j -- View this message in context: http://drools.46999.n3.nabble.com/Stateless-session-in-drools-server-keeping-classes-around-tp3583282p3583282.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] Stateless session in drools server keeping classes around?
Are you using // clean up after session ksession.dispose(); We had the same symptoms before we started using dispose() to clean up the session. Good luck, John Perrin -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of dunnlow Sent: Tuesday, December 13, 2011 1:05 PM To: rules-users@lists.jboss.org Subject: [rules-users] Stateless session in drools server keeping classes around? Hi, I'm using drolls 5.3 server with one rule in a _stateless_ session. I am sending a POJO to the server, having it check a few attributes, modify the attributes of the bean as needed then return the result. I have this working and get back an execution results object like I need. The problem is that when I send the batch execution command to the server a number of classes stick around with each call (as shown in jconsole). Memory grows with each call until I run out. (I see garbage collection taking place so that doesnt seem to be the problem - and if I stop sending events to the server, the memory is never returned). I figured with a stateless session I wouldnt need to worry about this, anyone have thoughts about why this is happening? I am trying to do this quickly, and don't want to call dispose/retract (the whole reason I'm using stateless). knowledge-services.xml: drools:ksession id=ksession1 type=stateless kbase=kbase1 node=node1/ my code that builds the command: list cmds = new arraylist InsertObjectCommand icmd = CommandFactory.newInsert(myBean) icmd.setOutIdentifier(inserter) icmd.setEntryPoint(DEFAULT) cmds.add(icmd) FileAllRulesCommand farc = new FileAllRulesCommand() cmds.add(fileAllRulesCommand) BatchExecutionCommand command = CommandFactory.newBatchExecution(cmds,ksession1) .. As an aside, I also looked into setting the sequential mode to true to see if that helps, but am still trying to figure out how to configure that via Spring. Thanks for any insight, -j -- View this message in context: http://drools.46999.n3.nabble.com/Stateless-session-in-drools-server-keeping-classes-around-tp3583282p3583282.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 *** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Temporal operators for point-in-time events
Your use of the after operator is correct. The documentation tells you about that, although in textual form: http://docs.jboss.org/drools/release/5.3.0.Final/drools-fusion-docs/html_single/index.html#d0e611 This presentation has the 2 tables of operators: http://www.slideshare.net/ge0ffrey/applying-cep-drools-fusion-drools-jbpm-bootcamps-2011 Edson On Tue, Dec 13, 2011 at 12:11 PM, Mike Melton mike.mel...@gmail.com wrote: Apologies for the stupid question, but I haven't seen anything in the documentation regarding this and I want to verify my solution. Say I have a point-in-time event (i.e., duration of 0) that I want to correlate to another point-in-time event. I want a rule that will activate if the timestamp of one is greater than or equal to the other, basically after or coincides. I wrote a test using the following rule and it seemed to work: rule Greater Than or Equal when $e1 : TestEvent( $id : id ) $e2 : TestEvent( id != id, this after[0ms] $e1 ) then System.out.println($e2 + is greater than or equal to + $e1); end I realize this rule will fire twice if the event timestamps are equal, but it's just for demonstration purposes; my question is specifically about the after[0ms] part. Is this the way to go to accomplish what I need? It seems so simple but I have this annoying feeling that I'm missing something. On a slightly related topic, is there an updated version of the temporal operators image from the Drools Fusion homepage? It is a great visual description of the operators and I want to print it out and post it at my desk, but it doesn't include all of the operators. Image: http://www.jboss.org/drools/drools-fusion/mainColumnParagraphs/02/imageBinary/temporal-operators.png From page: http://www.jboss.org/drools/drools-fusion.html Thanks Mike ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Temporal operators for point-in-time events
Thank you, Edson. I saw the written documentation but since the default after interval is [1ms, infinity], I wanted to check for the specific [0, infinity] case that there wasn't a better suited operator. I do have a (somewhat related) question about the documentation when compared to the diagram(s). Take, for example, the finishedby operator. The documentation says A finishedby B means A starts before B and A and B finish at the same time. However, the diagram shows A starting *after* B and A and B finishing at the same time. The other related operators (finishes, starts, startedby) all have the same discrepancy. (Additionally, the second diagram in the presentation includes a different definition for the finishes operator than the first diagram. Maybe it should be startedby?) My tests show me that the written documentation is correct and the diagram is not. Unless I am reading the diagram incorrectly; if that is the case, can someone explain it? Thanks. 2011/12/13 Edson Tirelli ed.tire...@gmail.com: Your use of the after operator is correct. The documentation tells you about that, although in textual form: http://docs.jboss.org/drools/release/5.3.0.Final/drools-fusion-docs/html_single/index.html#d0e611 This presentation has the 2 tables of operators: http://www.slideshare.net/ge0ffrey/applying-cep-drools-fusion-drools-jbpm-bootcamps-2011 Edson On Tue, Dec 13, 2011 at 12:11 PM, Mike Melton mike.mel...@gmail.com wrote: Apologies for the stupid question, but I haven't seen anything in the documentation regarding this and I want to verify my solution. Say I have a point-in-time event (i.e., duration of 0) that I want to correlate to another point-in-time event. I want a rule that will activate if the timestamp of one is greater than or equal to the other, basically after or coincides. I wrote a test using the following rule and it seemed to work: rule Greater Than or Equal when $e1 : TestEvent( $id : id ) $e2 : TestEvent( id != id, this after[0ms] $e1 ) then System.out.println($e2 + is greater than or equal to + $e1); end I realize this rule will fire twice if the event timestamps are equal, but it's just for demonstration purposes; my question is specifically about the after[0ms] part. Is this the way to go to accomplish what I need? It seems so simple but I have this annoying feeling that I'm missing something. On a slightly related topic, is there an updated version of the temporal operators image from the Drools Fusion homepage? It is a great visual description of the operators and I want to print it out and post it at my desk, but it doesn't include all of the operators. Image: http://www.jboss.org/drools/drools-fusion/mainColumnParagraphs/02/imageBinary/temporal-operators.png From page: http://www.jboss.org/drools/drools-fusion.html Thanks Mike ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.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 4.0.7 - Serialization of Rules and Facts
I've inherited a rule engine implementation based on Drools 4.0.7 in which we're seeing a portion of rules failing to fire after we serialize then deserialize rules and facts across the restart of our application server. Here is our current implementation: serialization === 1. All facts are persisted to database tables from Events received via an implementation of WorkingMemoryEventListener 2. All Rules are persisted to database tables as a collection of rule arguments deserialization after an app server restart, a new RuleBase is created, and RuleBase.newStatefulSession() is called 1. Rule arguments from db table are passed to an in-memory process that writes a plain text DRL file 2. DRL string is built to a Package, then installed as a new rule within the RuleBase 3. each individual fact is loaded from db table and inserted into the newly created working memory (StatefulSession) I do not believe this is a valid way of de/serialization. Reading the tests that ship with Drools 4.0.7, as well as the documentation, it seems the proper way is to use Java object serialization with both the RuleBase and WorkingMemory - is that correct? Assuming that my current serialization is incorrect, I'm investigating how best to repopulate the newly created RuleBase and working memory so that rules reliably fire. What I am seeing is that rules do not fire in a non-deterministic fashion after repopulating the new working memory as described above. Are there any suggestions for other paths to attempt? Thanks in advance for any help, Ryan ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] I give up, where is drools:execution-node defined??
I see drools:execution-node id=node1/ in the drools server knowledge-services.xml and throughout the documentation. But, my app can't compile because that is undefined. I looked in drools-spring.xsd and spring-beans.xsd (the two namespaces defined in that file), but no joy. Am I just blind?? Anyone know where it is defined? Thanks -J -- View this message in context: http://drools.46999.n3.nabble.com/I-give-up-where-is-drools-execution-node-defined-tp3583659p3583659.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] rules execution on Collection
Hello Droolers, Here is my Scenario: public class Parties { protected ListParty party; } public class Party { protected IdentificationGroup idGroup; } public class IdentificationGroup { protected String partyType; } I have a collection of Party objects in the statefulsession. I want to find in the collection whether there is a partyType of SELLER . In Object Graph notation it will be something like Parites[0].idGroup.partyType is SELLER. If not found execute the consequence. Your help is very much appreciated. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Cross Reference Utility
Is there a cross reference utility, that will allow me to easily find the rules which reference a specific class and/or specific attribute? I'm hoping for something like the standard Java 'references' report. I'm guessing (based on what I've read) that the Drools compiler generates a bunch of Java classes behind the scenes ... is there any way to get it to leave those Java artifacts so that I could get a 'references' report from them? Thanks Ron -- View this message in context: http://drools.46999.n3.nabble.com/Cross-Reference-Utility-tp3583733p3583733.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] Cross Reference Utility
On 13/12/2011 21:48, ronalbury wrote: Is there a cross reference utility, that will allow me to easily find the rules which reference a specific class and/or specific attribute? I'm hoping for something like the standard Java 'references' report. I'm guessing (based on what I've read) that the Drools compiler generates a bunch of Java classes behind the scenes ... is there any way to get it to leave those Java artifacts so that I could get a 'references' report from them? see drools-verifier Mark Thanks Ron -- View this message in context: http://drools.46999.n3.nabble.com/Cross-Reference-Utility-tp3583733p3583733.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
Re: [rules-users] 答复: Many to many matching using Drools rules
any more details to share about ur approach? 在 2011-12-14 上午1:19,David Green dave...@hotmail.com写道: Yes. I have consulted at very large companies that do this constantly in production. One reason to do this process all the time is to keep the pool of candidates for matching manageable. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Many-to-many-matching-using-Drools-rules-tp3582487p3582988.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
Re: [rules-users] Many to many matching using Drools rules
Do you want to compare to set of transactions to find which of them are in both sets and which of them are not? Is that what are you trying to achieve? Cheers - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio Salaboy Salatino - On 13/12/2011, at 10:27, Wolfgang Laun wolfgang.l...@gmail.com wrote: Huh? -W 2011/12/13 Zhuo Li milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ 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] Many to many matching using Drools rules
i want to find txns from both sides whose portfolio asset and sum of amt are the same. 在 2011-12-14 上午9:18,Salaboy sala...@gmail.com写道: Do you want to compare to set of transactions to find which of them are in both sets and which of them are not? Is that what are you trying to achieve? Cheers - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio Salaboy Salatino - On 13/12/2011, at 10:27, Wolfgang Laun wolfgang.l...@gmail.com wrote: Huh? -W 2011/12/13 Zhuo Li milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ 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] [MVEL-Users]forum MVEL-Users have been created to discuss MVEL specific questions
On 14/12/2011 02:46, kapokfly wrote: As I did not see a forum for MVEL, and questions about MVEL in this forum often got ignored, I created a new forum http://mvel-users.2313344.n4.nabble.com/ for MVEL users only. MVEL mailing lists already exists here: http://xircles.codehaus.org/projects/mvel/lists Mark - Ivan, your Panda, forever -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Users-forum-MVEL-Users-have-been-created-to-discuss-MVEL-specific-questions-tp3584309p3584309.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
Re: [rules-users] [MVEL-Users]forum MVEL-Users have been created to discuss MVEL specific questions
Hi Mark, Yes I tried, it does not work well, it told me I subscribed it successfully but all the messages I sent to the mail list were ignored so thinking the forum would be easier for posting/sharing/searching. - Ivan, your Panda, forever -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Users-forum-MVEL-Users-have-been-created-to-discuss-MVEL-specific-questions-tp3584309p3584495.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] Store a Map in Country Enumeration
I solved the problem.I concatenated Country Id and Country name with = sign in between so it became A01=USA,A02=UK.and this list Iam passing to Guvnor.In that guvnor,USA UK is being displayed in GUI where A01,A02 are being used as backend. Now to retrieve states when Iam passing countryname internally A01,A02 is being passed where in states table it is matching with the country ID's and states are retrieved.Finally,Its worked -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584496.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] [MVEL] the data converter does not work
Mark, can you share your insight on this? - Ivan, your Panda, forever -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-the-data-converter-does-not-work-tp3581797p3584585.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] Store a Map in Country Enumeration
Hi Manstis, I created enumeration for states and countries as 'Address.country':(new com.sample.DataList()).getMyCountriesList() 'Address.state[country]' : '(new com.sample.DataList()).getStateList(@{country})' It is showing drop-down list in guided rule editor for countries as US,UK,INDIA And when I select state it is also successfuly displaying basedon country.. Suppose if I selected country US..states are being displayed based on US. But if i changed my selection of country US to UK..states drop-down list is not getting refreshed.Guided editor showing same as Newyork,Washington etc...It is displaying UK countries only when I clicked on Newyork(states drop-down list).It means *I mean to say automatic refreshment is not being done* http://drools.46999.n3.nabble.com/file/n3584640/Capture1.png http://drools.46999.n3.nabble.com/file/n3584640/Capture2.png -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584640.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] Cross Reference Utility
I posted a class doing that a few days ago on this list. The problem is that it relies on classes in Drools' instable API, and it was originally written around 5.1.1, so it may have aged some. -W On 13/12/2011, ronalbury ronalb...@gmail.com wrote: Is there a cross reference utility, that will allow me to easily find the rules which reference a specific class and/or specific attribute? I'm hoping for something like the standard Java 'references' report. I'm guessing (based on what I've read) that the Drools compiler generates a bunch of Java classes behind the scenes ... is there any way to get it to leave those Java artifacts so that I could get a 'references' report from them? Thanks Ron -- View this message in context: http://drools.46999.n3.nabble.com/Cross-Reference-Utility-tp3583733p3583733.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
Re: [rules-users] Many to many matching using Drools rules
You can collect objects of both classes with matching id and date. Each of these collected objects has the original id and date a list of amount figures. Pairing the collected object from repository and accounting is simple. Then, you'll have to implement an algorith that selects the items from both sides in an acceptable way. I presume that one or more items from one side must exactly be equal to one or more items from the other side, which may not always be possible even though there would be coverage of an item of one side by items on the other side (e.g. 7,11 vs.3,3,3,3). But assuming that you detect matching sums, you retract the original facts. In any case, the collected objects must be retracted, too, at the end of the processing. (Some details depend on the way the original facts are inserted.) HTH -W On 14/12/2011, Zhuo LI milanello1...@gmail.com wrote: i want to find txns from both sides whose portfolio asset and sum of amt are the same. 在 2011-12-14 上午9:18,Salaboy sala...@gmail.com写道: Do you want to compare to set of transactions to find which of them are in both sets and which of them are not? Is that what are you trying to achieve? Cheers - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio Salaboy Salatino - On 13/12/2011, at 10:27, Wolfgang Laun wolfgang.l...@gmail.com wrote: Huh? -W 2011/12/13 Zhuo Li milanello1...@gmail.com: Folks, I am recently working on a BI project which is doing reconciliation between repository and accounting. I'm using Drools 5.1.1 to maintain all these matching rules. One scenario I have no clue to implement in Drools is that I need to find x transactions from repository, to match y transactions from accounting, while existing repository transactions and accounting transactions are bigger than x and y. Does anybody have experience to do similar thing in Drools? Best Abe ___ 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
[rules-users] (no subject)
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users