Re: [rules-users] Fact Names in a Model

2011-12-13 Thread Esteban Aliverti
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

Re: [rules-users] How Add all packages to KnowledgeBuilder.add(drl or pkg or xsd,..);

2011-12-13 Thread Esteban Aliverti
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

Re: [rules-users] Listing all packages present in gunvor repository

2011-12-13 Thread Esteban Aliverti
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 @

[rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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);

[rules-users] Listing all packages present in gunvor repository

2011-12-13 Thread srinivasasanda
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.

Re: [rules-users] Guvnor data enumeration issue

2011-12-13 Thread srinivasasanda
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.

Re: [rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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) {

Re: [rules-users] Guvnor data enumeration issue

2011-12-13 Thread Michael Anstis
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

Re: [rules-users] Problems with Domain Specific Language in eclipse

2011-12-13 Thread Swindells, Thomas
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

[rules-users] Store a Map in Country Enumeration

2011-12-13 Thread srinivasasanda
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

[rules-users] Many to many matching rules implementation in Drools

2011-12-13 Thread Milanello1998
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

[rules-users] Many to many matching using Drools rules

2011-12-13 Thread Zhuo Li
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

Re: [rules-users] Many to many matching rules implementation in Drools

2011-12-13 Thread Wolfgang Laun
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

Re: [rules-users] Many to many matching using Drools rules

2011-12-13 Thread Wolfgang Laun
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

[rules-users] Strange error in DRL compiler

2011-12-13 Thread ronalbury
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 :

Re: [rules-users] Problems with Domain Specific Language in eclipse

2011-12-13 Thread ronalbury
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

Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration

2011-12-13 Thread Green, John M (HP Software)
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

Re: [rules-users] Store a Map in Country Enumeration

2011-12-13 Thread Michael Anstis
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

Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration

2011-12-13 Thread Edson Tirelli
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.

[rules-users] Error using drools.net for web application

2011-12-13 Thread rulesengine.eval
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 =

Re: [rules-users] Strange error in DRL compiler

2011-12-13 Thread ronalbury
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 Resource

Re: [rules-users] Strange error in DRL compiler

2011-12-13 Thread ronalbury
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] 答复: Many to many matching using Drools rules

2011-12-13 Thread Zhuo Li
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,

[rules-users] Temporal operators for point-in-time events

2011-12-13 Thread Mike Melton
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

Re: [rules-users] 答复: Many to many matching using Drools rules

2011-12-13 Thread David Green
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:

Re: [rules-users] Can Drools supply large Knowledge Base?

2011-12-13 Thread David Green
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

[rules-users] Stateless session in drools server keeping classes around?

2011-12-13 Thread dunnlow
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

Re: [rules-users] Stateless session in drools server keeping classes around?

2011-12-13 Thread Perrin John - jperri
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

Re: [rules-users] Temporal operators for point-in-time events

2011-12-13 Thread Edson Tirelli
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:

Re: [rules-users] Temporal operators for point-in-time events

2011-12-13 Thread Mike Melton
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

[rules-users] Drools 4.0.7 - Serialization of Rules and Facts

2011-12-13 Thread Ryan
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

[rules-users] I give up, where is drools:execution-node defined??

2011-12-13 Thread dunnlow
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??

[rules-users] rules execution on Collection

2011-12-13 Thread Java Bean
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

[rules-users] Cross Reference Utility

2011-12-13 Thread ronalbury
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

Re: [rules-users] Cross Reference Utility

2011-12-13 Thread Mark Proctor
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

Re: [rules-users] 答复: Many to many matching using Drools rules

2011-12-13 Thread Zhuo LI
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. --

Re: [rules-users] Many to many matching using Drools rules

2011-12-13 Thread Salaboy
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

Re: [rules-users] Many to many matching using Drools rules

2011-12-13 Thread Zhuo LI
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?

Re: [rules-users] [MVEL-Users]forum MVEL-Users have been created to discuss MVEL specific questions

2011-12-13 Thread Mark Proctor
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:

Re: [rules-users] [MVEL-Users]forum MVEL-Users have been created to discuss MVEL specific questions

2011-12-13 Thread kapokfly
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:

Re: [rules-users] Store a Map in Country Enumeration

2011-12-13 Thread srinivasasanda
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

Re: [rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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] Store a Map in Country Enumeration

2011-12-13 Thread srinivasasanda
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

Re: [rules-users] Cross Reference Utility

2011-12-13 Thread Wolfgang Laun
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

Re: [rules-users] Many to many matching using Drools rules

2011-12-13 Thread Wolfgang Laun
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

[rules-users] (no subject)

2011-12-13 Thread Vladi Feigin
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users