Re: [rules-users] How to set drools.dialect.mvel.strict = false?

2013-07-24 Thread Wolfgang Laun
@Mark: There's really no need to claim additional bugs ;-) @Jeetendra: Within a pattern (such as "ProposalLight(...)") you may write bindings and constraints, which are boolean expressions. Older versions had a much more restricted syntax for constraints, and general (Java-style) expressions were

Re: [rules-users] How to get version of an asset for perticular Package version using RESTEasy

2013-07-24 Thread Amar
this will not solve my problem. let me know if the question is not clear enough. -- View this message in context: http://drools.46999.n3.nabble.com/How-to-get-version-of-an-asset-for-perticular-Package-version-using-RESTEasy-tp4025121p4025132.html Sent from the Drools: User forum mailing list a

Re: [rules-users] How to set drools.dialect.mvel.strict = false?

2013-07-24 Thread Mark Proctor
It shouldn't do, and could be a bug. Can you try 5.6.0.SNAPSOT and see if it is still a problem. Mark On 24 Jul 2013, at 18:22, Jeet Singh wrote: > Alright, I kinda found out the cause of the exception I am getting, however I > am still struggling the reason behind the exception. > > So DRL_

Re: [rules-users] How to set drools.dialect.mvel.strict = false?

2013-07-24 Thread Jeet Singh
Alright, I kinda found out the cause of the exception I am getting, however I am still struggling the reason behind the exception. So DRL_1, this works perfectly fine. package drools; import drools.ProposalLight; import function drools.DateUtil.compareDatesWithTime; rule "Date Rule" when $obj

Re: [rules-users] How to get version of an asset for perticular Package version using RESTEasy

2013-07-24 Thread learnbrms
http://localhost:8080/drools-guvnor/rest/packages/{packageName}/versions -- lists all versions of package http://localhost:8080/drools-guvnor/rest/packages/{packageName}/versions/{version}/source -- gets the package version source http://localhost:8080/drools-guvnor/rest/packages/{packageName}/

Re: [rules-users] How to get version of an asset for perticular Package version using RESTEasy

2013-07-24 Thread Amar
agreed. but it will give version of an asset present in current package. say current package version is 5. then it will give asset version in package version 5. but here i want get the asset version that was present in earlier package version say 3. do we have any mechanism to achive this by restea

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-24 Thread pvandenbrink
ge0ffrey wrote > Turns out this is a user problem in the equals and hashcode of > FamilyStart, not a bug in Drools or OptaPlanner :) > > @Override > public boolean equals(Object other) > { > if ((this == other)) > return true; > if (!(other instanceof

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-24 Thread Geoffrey De Smet
Turns out this is a user problem in the equals and hashcode of FamilyStart, not a bug in Drools or OptaPlanner :) @Override public boolean equals(Object other) { if ((this == other)) return true; if (!(other instanceof FamilyStart)) retur

Re: [rules-users] How to get version of an asset for perticular Package version using RESTEasy

2013-07-24 Thread rjr201
The documentation says it's something like this: http://localhost:8080/drools-guvnor/rest/packages/{packageName}/assets/{assetName}/versions/{version} -- View this message in context: http://drools.46999.n3.nabble.com/How-to-get-version-of-an-asset-for-perticular-Package-version-using-RESTEas

Re: [rules-users] Manage dynamically rules in KnowledgeBase

2013-07-24 Thread tiahdomoina
Thank you Mark :) -- View this message in context: http://drools.46999.n3.nabble.com/Manage-dynamically-rules-in-KnowledgeBase-tp4025108p4025120.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rul

Re: [rules-users] Manage dynamically rules in KnowledgeBase

2013-07-24 Thread Mark Proctor
On 24 Jul 2013, at 11:04, tiahdomoina wrote: > Thanks for the link, it definitely helped me > > I was wondering about 2 things : > > 1- With the knowledgeBuilder, you can check if there is an error with the > method getErrors(). So you can remove immediately the resource which caused > the er

Re: [rules-users] uninformative rule parsing/compiling error -> org.drools.rule.Rule cannot be cast to org.drools.rule.Query

2013-07-24 Thread Davide Sottara
Two clarifications first: 1) Which version are you using? 2) Is TrackerUpdate a static class inside TrackerRemote? In case, could you post the exact "import" statements you are using? Thanks Davide On 07/24/2013 02:14 PM, De Rooms Brecht wrote: > Dear rules users, > > I am currently writing my

[rules-users] uninformative rule parsing/compiling error -> org.drools.rule.Rule cannot be cast to org.drools.rule.Query

2013-07-24 Thread De Rooms Brecht
Dear rules users, I am currently writing my own Drools-server since I wanted more control than the drools-execution server (and it never worked very well here) where I can send rules/facts over JMS/AQMP/STOMP. Rules which are sent are saved on the server-side in DRL files that are monitored. T

Re: [rules-users] Pattern matching rules

2013-07-24 Thread Wolfgang Laun
I think that OP is looking for a "higher order function operator", i.e., applying pattern matching to all elements of a list returning true if there is a match. Cf. Perl's grep( /Action/, @likes ) It's not too difficult to implement such an operator. Also, a simple DRL function would do the tr

Re: [rules-users] Manage dynamically rules in KnowledgeBase

2013-07-24 Thread tiahdomoina
Thanks for the link, it definitely helped me I was wondering about 2 things : 1- With the knowledgeBuilder, you can check if there is an error with the method getErrors(). So you can remove immediately the resource which caused the error. Is there anything like that for the KnowledgeBase to chec

Re: [rules-users] Pattern matching rules

2013-07-24 Thread Mauricio Salatino
yeah you can use the matches operator and write your own regular expression there. Cheers On Wed, Jul 24, 2013 at 10:47 AM, rganesh84 wrote: > I was just wondering if there is a pattern matcher available in drools. > Below is a sample > > rule "Action Movies" > dialect "java" > whe

[rules-users] Pattern matching rules

2013-07-24 Thread rganesh84
I was just wondering if there is a pattern matcher available in drools. Below is a sample rule "Action Movies" dialect "java" when ui : UserInfo(likes contains "Action") then List sw = new ArrayList(); sw.add("Die Hard"); sw.a

Re: [rules-users] Manage dynamically rules in KnowledgeBase

2013-07-24 Thread tiahdomoina
Thanks :) I will take a look at it now ! -- View this message in context: http://drools.46999.n3.nabble.com/Manage-dynamically-rules-in-KnowledgeBase-tp4025108p4025111.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules

Re: [rules-users] Manage dynamically rules in KnowledgeBase

2013-07-24 Thread Mark Proctor
https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/DynamicRulesTest.java On 23 Jul 2013, at 17:26, tiahdomoina wrote: > Hello :) > > How can I manage dynamically rules in KnowledgeBase ? I mean remove, add or > update rules witho