Re: [rules-users] Iterating string objects inside Arraylist

2013-07-17 Thread Esteban Aliverti
Hi, Drools supports 'contains' and 'member of' operators. You can find more information about them in the documentation. Regards, Esteban Aliverti - Blog @ http://ilesteban.wordpress.com On Wed, Jul 17, 2013 at 7:49 AM, Ganesh R.

[rules-users] Replacing an old function in drl

2013-07-17 Thread Sonata
Hi, I want to replace an outdated function defined in a drl file without touching that file, is this possible? (in 5.5.0) The java application part that loads the resources cannot be touched as well. It is configured to read all the drl files from a predefined folder, I am only allowed to add-in

Re: [rules-users] Replacing an old function in drl

2013-07-17 Thread Sonata
No worries. I found another solution: use newByteArrayResource to build the new function and load it into the current kb. But still, I would like to know the solution to method 2. Cheers, -- View this message in context:

Re: [rules-users] Iterating string objects inside Arraylist

2013-07-17 Thread Ganesh
HI You can add this in when condition which works fine $bat : Account(balance == 100,types contains Savings types contains Checking ) Regards Ganesh Neelekani India -- View this message in context:

Re: [rules-users] Deploying Guvnor 5.5.1 in JBoss 7.1.1.Final

2013-07-17 Thread Ganesh
Hi Rich, Download from download.jboss.org/drools/release/5.5.0.Final/guvnor-distribution-5.5.0.Final.zip unzip it you can find 3 .war files in binaries folder you can get the 3 war files for jboss ,apeche ,eap etc... take jboss drools and deploy it. you r using

Re: [rules-users] Getting infinite loops even with limitation of fires

2013-07-17 Thread Bojan Janisch
Hey again, I've searched the net for similar problem and found this post: http://stackoverflow.com/questions/3429420/why-java-util-hashmap-getentry-can-block-my-program (17.07.13) After that I've checked the CompositeClassLoader class and found that the object classLoaderResultMap (line 244)

Re: [rules-users] Deploying Guvnor 5.5.1 in JBoss 7.1.1.Final

2013-07-17 Thread rjr201
Hi, Thanks for your advice, but I need to get 5.5.1 working rather than 5.5.0 as it has some fixes for IE8. However, I did manage to get the 5.5.1 working but there still seems to be problems with IE8.. -- View this message in context:

[rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
Hi. I'm trying to test pmml decision trees (https://github.com/droolsjbpm/drools-chance/tree/master/drools-pmml) on Drools 5.5.0.Final. The two test environment's outcome are not same. 1) I got a test on Eclipse. The results are fine. Test source is as below. public class PMMLTestFromLocal {

[rules-users] ruleEventProcessingType=STREAM not working with DRL resource from Gunvor

2013-07-17 Thread mredhat
Platform:JBoss SOAP 5.2 for ESB deploymetn with BRMS Standalone 5.3 for authoring and retrieving rules from Guvnor.I am executing CEP logic with the BusinessRulesProcess ESB aciton. I pass it the following properties:property name=quot;lt;bruleAgentProperties* value=kie-agent/ChangeSet.xml

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

2013-07-17 Thread pvandenbrink
ge0ffrey wrote Do you have this issue in 5.4 too? E.g.: the 5.4 equivalent of full assert (TRACE) does not detect score corruption? I've tried this and actually, yes, it happens with TRACE in 5.4 as well. So it's not an issue introduced by the upgrade to Beta5, then. ge0ffrey wrote Maybe

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

2013-07-17 Thread Geoffrey De Smet
On 17-07-13 11:59, pvandenbrink wrote: ge0ffrey wrote Do you have this issue in 5.4 too? E.g.: the 5.4 equivalent of full assert (TRACE) does not detect score corruption? I've tried this and actually, yes, it happens with TRACE in 5.4 as well. So it's not an issue introduced by the upgrade

Re: [rules-users] Problems with the Mrs Manners Benchmark

2013-07-17 Thread Geoffrey De Smet
File a jira, this sounds like a bug in the example: https://issues.jboss.org/browse/DROOLS PS: Miss manners is a poor example to benchmark btw. It's NP complete so a slow rule engine with a smart manners approach will beat a fast rule engine with a basic

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

2013-07-17 Thread pvandenbrink
ge0ffrey wrote The 7 one probably got inserted with it didn't reach to 5 yet. That was a good logicalInsertion. The issue is, why didn't it get retracted when a move made changes so it did reach to 5? I've added a printline in the rules xml file before the insertLogical. At one point shortly

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread Davide Sottara
Thanks for reporting, to reproduce this I would need: - the source PMML - the changeset xml - the tomcat version Meanwhile, could you check that the tomcat environment is using the right dependencies? Best Davide -- View this message in context:

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

2013-07-17 Thread Geoffrey De Smet
On 17-07-13 13:02, pvandenbrink wrote: ge0ffrey wrote The 7 one probably got inserted with it didn't reach to 5 yet. That was a good logicalInsertion. The issue is, why didn't it get retracted when a move made changes so it did reach to 5? I've added a printline in the rules xml file before

[rules-users] help on drools guvnor

2013-07-17 Thread pritha.ghosh
Hi, I am not able to run rules from .pkg resources. Knowledgesession is getting populated with package and rules inside the packages but when I am firing ksession.fireAllRules(); no rules are getting executed. Below is my program final KnowledgeBuilder kbuilder =

Re: [rules-users] help on drools guvnor

2013-07-17 Thread Stephen Masters
Have you tested that the rules fire when you load them as DRL? It would probably be worth showing us what EmployeeMap looks like and the rule which you expect to fire if there is an EmployeeMap in working memory. The Drools version would also be useful. Steve On 17 Jul 2013, at 14:04,

Re: [rules-users] help on drools guvnor

2013-07-17 Thread rjr201
What are your rules? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-help-on-drools-guvnor-tp4024975p4024977.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] DRL always posting the format as txt instead of model.drl

2013-07-17 Thread learnbrms
Can anyone please advise to my above problem ? Thanks, Sri -- View this message in context: http://drools.46999.n3.nabble.com/DRL-always-posting-the-format-as-txt-instead-of-model-drl-tp4024952p4024978.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] rules-users Digest, Vol 80, Issue 33 - help on drools guvnor

2013-07-17 Thread pritha.ghosh
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130717/6d327e7a/attachment.html

Re: [rules-users] rules-users Digest, Vol 80, Issue 33 - help on drools guvnor

2013-07-17 Thread rjr201
Why have you declared the class in a POJO and in the .DRL format? I'm assuming you've uploaded the POJO into guvnor, and the used that to declare your rules? -- View this message in context:

Re: [rules-users] rules-users Digest, Vol 80, Issue 34

2013-07-17 Thread pritha.ghosh
-- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130717/6d327e7a/attachment.html -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org

Re: [rules-users] Problems with the Mrs Manners Benchmark

2013-07-17 Thread Mark Proctor
manners is a pretty terrible benchmark, and should probably not be used. Most vendors cheat it, and it doesn't really tell you much. Also to work it expects an OPS5 execution order, which we've attempted to emulate in the past, we may not in the future - which is probably why you have the

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

2013-07-17 Thread pvandenbrink
ge0ffrey wrote On 17-07-13 13:02, pvandenbrink wrote: ge0ffrey wrote The 7 one probably got inserted with it didn't reach to 5 yet. That was a good logicalInsertion. The issue is, why didn't it get retracted when a move made changes so it did reach to 5? I've added a printline in the rules

[rules-users] VRP with multi-stream and heterogeneous fleet?

2013-07-17 Thread Colin Sheppard
Hello all, I'm totally new to optaplanner / drools and would like to know if the following is possible within the framework (I'd mostly likely use version 6). I have a VRP where we'd like to consider multiple waste streams simultaneously (i.e. trash, recycling, food waste, and yard waste). We'd

[rules-users] Internet Explorer Compatibility

2013-07-17 Thread rjr201
Hi, I'm working for a client who wishes to use Guvnor with Internet Explorer. I've tried Guvnor 5.5.0.Final with IE8 and IE9. However, I get an error when trying to access a rule in the guided editor. I read in another post

[rules-users] Drools in Hawaii

2013-07-17 Thread Mark Proctor
I'm going to be in Hawaii for 3 weeks in september, visiting honolulu, kauaui and maui. Is there a Drools community on any of those islands, I could be tempted to attend a user group and do a Drools 6 talk :) Mark ___ rules-users mailing list

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
*1. chageset xml is* change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
*3. PMML Source (1)* package Meritz_ModelRule_01; import org.drools.pmml.pmml_4_1.ModelMarker; import org.drools.pmml.pmml_4_1.PMML4AbstractField; query modelMarker( String $model, ModelMarker $mm ) $mm := ModelMarker( $model ; ) end declare PMML4AbstractField end declare DataField

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
*3. PMML Source (2)* // Display Name : null declare AC_CSE_TYP_RE extends DataField @role(event) @Traitable value : java.lang.String @key @position(1) displayValue : String = AC_CSE_TYP_RE weight : double = 1.0 end rule Valid_Values_AC_CSE_TYP_RE no-loop

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
*3. Source PMML* Source PMML is two long. That is over 2500 lines. I can't attached file this site. So I will post source to split. Thanks Davide -- View this message in context:

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
package Meritz_ModelRule_01; import org.drools.pmml.pmml_4_1.ModelMarker; import org.drools.pmml.pmml_4_1.PMML4AbstractField; query modelMarker( String $model, ModelMarker $mm ) $mm := ModelMarker( $model ; ) end declare PMML4AbstractField end declare DataField extends

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule OverrideInput_FDS_AC_YN salience 2 when $new: java.lang.String() from entry-point in_FDS_AC_YN $old: FDS_AC_YN( value != $new ) then System.out.println( Overriding previous values + $old + because of + $new ); retract( $old ); end // Display Name : null declare

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule OverrideInput_AC_TYP_RE salience 2 when $new: java.lang.String() from entry-point in_AC_TYP_RE $old: AC_TYP_RE( value != $new ) then System.out.println( Overriding previous values + $old + because of + $new ); retract( $old ); end // Display Name : null declare

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule OverrideInput_COV_CD_RE salience 2 when $new: java.lang.String() from entry-point in_COV_CD_RE $old: COV_CD_RE( value != $new ) then System.out.println( Overriding previous values + $old + because of + $new ); retract( $old ); end // Display Name : null declare CHK_YN

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
// Display Name : null declare Predicted_CHK_YN extends OutputField @role(event) @Traitable value : java.lang.String @key @position(1) displayValue : String = Predicted_CHK_YN weight : double = 1.0 tgtValue : java.lang.String end rule

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule miningField_RPart_Model_AC_CSE_TYP_RE when $src : AC_CSE_TYP_RE( $m : missing, $v : valid, $x : value, context == null ) then System.out.println(miningField_RPart_Model_AC_CSE_TYP_RE); AC_CSE_TYP_RE x = new AC_CSE_TYP_RE(); x.setValue($x); x.setMissing($m);

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Create tree RPart_Model when ModelMarker( RPart_Model ; enabled == true ) then System.out.println(Create tree RPart_Model); TreeNode node; java.util.Map count; java.util.Map confs; count = new java.util.HashMap(); count.put( N, 68206.0 );

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
count = new java.util.HashMap(); count.put( N, 93.0 ); count.put( Y, 66.0 ); confs = new java.util.HashMap(); confs.put( N, 0.584905660377358 ); confs.put( Y, 0.415094339622642 ); node = new TreeNode( RPart_Model,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Link RPart_ModelInput when RPart_ModelInput( _AC_CSE_TYP_RE : AC_CSE_TYP_RE , _AC_TYP_RE : AC_TYP_RE , _COV_CD_RE : COV_CD_RE , _HDCAP_RATE_RE : HDCAP_RATE_RE , _AC_STAT_CD_RE :

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 3 - Unknown Weighted salience 3 when $node : TreeNode( context == RPart_Model, $id : id == 3, $out : outcome ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 3, visitMode == WEIGHTED_CONFIDENCE || ==

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 6 - Down salience $children.size() - $children.indexOf( $child ) when $node : TreeNode( context == RPart_Model, $id : id == 6, $children : children, children.size 0 ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 6, $trail : trail,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 13 - True salience 3 no-loop when $node : TreeNode( context == RPart_Model, $id : id == 13, $out : outcome, children.size == 0, $conf : confidence, $tot : recordCount ) $tok : RPart_ModelTreeToken( context == RPart_Model, current ==

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 26 - Down salience $children.size() - $children.indexOf( $child ) when $node : TreeNode( context == RPart_Model, $id : id == 26, $children : children, children.size 0 ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 26, $trail : trail,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 53 - Default Child Undo Jump salience 5 no-loop when $node : TreeNode( context == RPart_Model, $id : id == 53, $def : defaultChld != null != null ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 53, visitMode == DEFAULT_CHILD, downward

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread Andrew Varner
Couldn't you post this to a site and just include the email in a link? On Jul 18, 2013, at 4:51 AM, smilk sunghee@meritz.co.kr wrote: rule Eval Tree Node RPart_Model - 26 - Down salience $children.size() - $children.indexOf( $child ) when $node : TreeNode( context == RPart_Model,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 215 - Unknown Weighted salience 3 when $node : TreeNode( context == RPart_Model, $id : id == 215, $out : outcome ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 215, visitMode == WEIGHTED_CONFIDENCE || ==

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 106 - True salience 3 no-loop when $node : TreeNode( context == RPart_Model, $id : id == 106, $out : outcome, children.size == 0, $conf : confidence, $tot : recordCount ) $tok : RPart_ModelTreeToken( context == RPart_Model, current

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 12 - Down salience $children.size() - $children.indexOf( $child ) when $node : TreeNode( context == RPart_Model, $id : id == 12, $children : children, children.size 0 ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 12, $trail : trail,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 25 - Default Child salience 3 when $node : TreeNode( context == RPart_Model, $id : id == 25, $def : defaultChld != null != null ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 25, visitMode == DEFAULT_CHILD, downward == true,

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
rule Eval Tree Node RPart_Model - 2 - Unknown Weighted salience 3 when $node : TreeNode( context == RPart_Model, $id : id == 2, $out : outcome ) $tok : RPart_ModelTreeToken( context == RPart_Model, current == 2, visitMode == WEIGHTED_CONFIDENCE || ==

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
Sorry, Andrew. -- View this message in context: http://drools.46999.n3.nabble.com/PMML-Exception-excuting-consequence-for-rule-xxx-in-yyy-java-lang-NullPointerException-using-Knowledt-tp4024963p4025014.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

2013-07-17 Thread smilk
PMML Source URL is https://code.google.com/p/test-smilk/source/browse/pmml2.drl -- View this message in context: http://drools.46999.n3.nabble.com/PMML-Exception-excuting-consequence-for-rule-xxx-in-yyy-java-lang-NullPointerException-using-Knowledt-tp4024963p4025015.html Sent from the Drools:

[rules-users] Wanted Patterns in Planner/Rostering

2013-07-17 Thread john poole
I'm using the Nurse Rostering code as a base and adding my own rules, etc. Are there any examples of wanted patterns? It looks like all the input files, and the drl rules are all for unwanted patterns. I just want to make sure I'm not missing something obvious. -- View this message in context:

Re: [rules-users] DRL always posting the format as txt instead of model.drl

2013-07-17 Thread learnbrms
Any help with my issue please ? Thanks, Sri -- View this message in context: http://drools.46999.n3.nabble.com/DRL-always-posting-the-format-as-txt-instead-of-model-drl-tp4024952p4025017.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Business Logic Validation Using Rules

2013-07-17 Thread Shazin Sadakath
Hi I am currently writing a set of Rules to Validate Some Business Logic and if The Criteria in When clause is met throw an Exception. Currently I have two rules. I use a StatelessKnowledgeSession and CommandExecutor.execute method to fire the rules. But while testing I created a scenario to