Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
Do you mean this: global ProgramRuleValidationLog progRuleValidationLog; function boolean logging(String actualValue, String ruleValue) { progRuleValidationLog.setActualValue(actualValue); //... } with the message "progRuleValidationLog cannot be resolved"? This is due to a restriction

Re: [rules-users] java.lang.LinkageError

2012-08-16 Thread Wolfgang Laun
Javadoc: Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class. Looks like some incompatibility between your development and deployment environment. Did you truncate any h

Re: [rules-users] expert mailing list

2012-08-16 Thread Wolfgang Laun
On 16/08/2012, Mark Proctor wrote: > >> +1 to split up the user lists per drools subproject (drools, guvnor, >> planner). It would reduce and focus the volume of each list. > We can look into this for drools 6.0. Because the "guvnor" name, and what it > is, will probably undergo an overhaul. Guv

[rules-users] Guvnor clustering

2012-08-16 Thread jasonxzhong
Has anyone tried to set up Guvnor in a clustered configuration, i.e. using more than one instance of Guvnor for high availability? Does it involve setting up a clustered Jackrabbit repository? Thanks, Jason -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-clustering-t

[rules-users] Specify enumeration for DSL variables?

2012-08-16 Thread jasonxzhong
Is there a way to specify enumeration values or functions for variables in DSL definition? Thanks, Jason -- View this message in context: http://drools.46999.n3.nabble.com/Specify-enumeration-for-DSL-variables-tp4019228.html Sent from the Drools: User forum mailing list archive at Nabble.com

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread jasonxzhong
Can @{KeyName} be annotated with the associated enumeration type? This may be easier than trying to parse the DRL and make determination of the correct type of @{KeyName}. I found the ability to use DRL in decision table is very helpful and it is just a couple things like this that prevent this fea

[rules-users] A few general questions on scaling StatefulKnowledgeSessions

2012-08-16 Thread Skiddlebop
Greetings All! I humbly request your guidance and insights! Overview: We are currently undergoing evaluation of how to best proceed using the Drools Suite to best meet the current and future business needs with the highest system scalability and performance. We are attempting to make the proper s

Re: [rules-users] Add attachement file to a Task Form

2012-08-16 Thread Tihomir Surdilovic
My best advice on that is to go through the jBPM docs first as that should answer I think most of your questions and then come back with specific stuff: http://docs.jboss.org/jbpm/v5.3/userguide/. Thanks. On 8/16/12 6:18 PM, Sadiroveski wrote: > Yes Tihomir, I got your idea and I like it i.e. us

Re: [rules-users] Does Drools expert accepts XML files?

2012-08-16 Thread Sadiroveski
Thanks for your help guys, I will do some search on how can generate Model to Drool Language and return to you. Regards, -- View this message in context: http://drools.46999.n3.nabble.com/Does-Drools-expert-accepts-XML-files-tp4019033p4019224.html Sent from the Drools: User forum mailing list

Re: [rules-users] Add attachement file to a Task Form

2012-08-16 Thread Sadiroveski
Yes Tihomir, I got your idea and I like it i.e. using the path as a variable. It seems that I need a Web service to put the file in Sharepoint along with the path. Just another question Tihomir, I want to put the information in the form entered by a user into a database (MyDatabase) and not the JB

[rules-users] java.lang.LinkageError

2012-08-16 Thread David Minor
Hi, We're in the process of moving our web apps from Java 5 to Java 7 and Drools 3 to Drools 5.4.0. Our rule base is compiled and serialized to the db by one app, and read from the db and fired by another. Everything went fine during testing, but when we tried to switch to production we got this

Re: [rules-users] trouble getting rule debugging to work in eclipse

2012-08-16 Thread Campbell
I was having the same trouble until I caught this item in the release notes: > *4.1.5. Eclipse plugin* > 4.1.5.1. Breakpoints in Rule RHS are not working with Java dialect > > Debugging with Java is not working. Debugging with MVEL is not affected. > This will be fixed in the future releases bef

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
Hi, Unfortunately it is not possible to associate a data-type with a @{key} field at present. In order to do so we'd need to parse the DRL text to determine the Fact\Field to which the key relates (if indeed any). This is a significant enhancement. Being able to set a default value for BRL Fragm

Re: [rules-users] expert mailing list

2012-08-16 Thread Mark Proctor
On 16 Aug 2012, at 10:02, Geoffrey De Smet wrote: > My thoughts: > -1 to private: Keep it public - default to open :) If it's public and open, all that will happen is noobs will send emails there, because they they think they will get better answers. Which will defeat the point. I guess we ca

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread jasonxzhong
You are right - use @{keyname} does work! Is there way to attach enumeration values to the column when it is constructed this way? It seems the guided decision table is not able to associate any defined enumerations to the @{keyname}. Regarding boolean checkbox for BRL Fragments, I understand the

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
Hi, If you add a BRL Fragment column and add "Free form drl" to that you can use the @{keyname} notation (I just tried and it works fine). BTW, it was a design decision to have a boolean checkbox for BRL Fragments that contain no template keys. The thought being a user might not want the fragment

Re: [rules-users] How to use reference guided table cell value in BRL fragment using DSL

2012-08-16 Thread Michael Anstis
This is a known limitation: https://issues.jboss.org/browse/GUVNOR-1799 With kind regards, Mike On 16 August 2012 16:55, jasonxzhong wrote: > I am trying to figure out how to use DSL terms in BRL fragment to > construct a > column in a guided decision table. > > I have the following definition

Re: [rules-users] Can two rules use the same template data?

2012-08-16 Thread Michael Anstis
BTW, to clarify this is a Guvnor enhancement. I assume you was meaning Guvnor ("...Create New -> New Rule Template"). Drools Expert Templates can already be used with different data-sets. On 16 August 2012 20:44, Michael Anstis wrote: > No this is not possible. > > Separating Template from Dat

Re: [rules-users] Can two rules use the same template data?

2012-08-16 Thread Michael Anstis
No this is not possible. Separating Template from Data though would make a good feature. I've raised a JIRA for it here: https://issues.jboss.org/browse/GUVNOR-1929 With kind regards, Mike On 16 August 2012 18:08, dunnlow wrote: > I have template data that has several attributes per row. I

Re: [rules-users] Add attachement file to a Task Form

2012-08-16 Thread Tihomir Surdilovic
Hi, jBPM runtime supports attachments, however this is not available in the console yet. If you use console you could try to implement logic in your form which submits a chosen file to your document management system (you could even use flash if you want :) ) and then use the path/url of this do

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
ok but why is it not able to find my function written and why is it not able to find my global variable with it's name given. Please help me fix this global variable thing. Rest I will look into it later. Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/modify-and-up

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
On 16/08/2012, Rana wrote: > ok so what is the flow of the failed condition of the rule. There is no "flow" for a rule not firing because one or more of its conditions aren't met. Only recently I've suggested on this list a way of determining why a rule does not fire. It requires a detailed, ind

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
ok so what is the flow of the failed condition of the rule. Also you did not answer the first question of the function. It is not able to find my function in the rule file. -- View this message in context: http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp40

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
The cancellation of an activation and the ensuing call to activationCancelled() is NOT sufficient as an indication of the rule not matching your fact data. Scenario 1: - fact(s) inserted - activation created from rule R1 - fireAllRules - activation of rule R1 fired Scenario 2: - fa

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
I have written a function function boolean logging(String actualValue, String ruleValue) { progRuleValidationLog.setActualValue(actualValue); //this is a pojo which will give me what are the failed rules. progRuleValidationLog.setRuleValue(ruleValue); return true; } ru

[rules-users] Can two rules use the same template data?

2012-08-16 Thread dunnlow
I have template data that has several attributes per row. I would like to have several rules that use the same template data. When I do a "Create New -> New Rule Template" I only see the ability to use a single rule against that data. Can I add a rule? (Obviously, I want to avoid having many du

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
On 16/08/2012, Rana wrote: > How can I fire one rule file if I have lot of rule files defined in my > change > set. Right now I have written an if-else condition and checking if the > input > is Androgel then fire Angrogel rule fire. But a rule (as you have it) with Drug( brandName == "AndroGe

[rules-users] How to use reference guided table cell value in BRL fragment using DSL

2012-08-16 Thread jasonxzhong
I am trying to figure out how to use DSL terms in BRL fragment to construct a column in a guided decision table. I have the following definition in DSL [condition][] Registration data has properties = RuleData() [condition][] - {expression}{value} = {expression}{value} In a guided decision tabl

[rules-users] Add attachement file to a Task Form

2012-08-16 Thread Sadiroveski
Hello, I am using Drools generated form to build my application forms with JBPM. In a specific user task inside my process, I want to let the user add a file via an upload button. So the question is: - How can we do this in the Task form and in the task properties in the designer? - Does the file

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
How can I fire one rule file if I have lot of rule files defined in my change set. Right now I have written an if-else condition and checking if the input is Androgel then fire Angrogel rule fire. But how can I do that in real time. Also I have a requirement which says it needs the reason why the

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
Something like kSession.getAgenda().getAgendaGroup( "AndroGel" ).setFocus(); With the way the rules are written an agenda-group doesn't appear to be required at all, but who knows. -W On 16/08/2012, Esteban Aliverti wrote: > One last thing. Just like Wolfgang said: if you don't activate the

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread jasonxzhong
Thanks. This will work if I have more than more than 1 conditions or actions. And is there a way to reference the in free form DRL? I tried @{keyname} and it does not seem to work. - Jason -- View this message in context: http://drools.46999.n3.nabble.com/Hiding-a-column-in-web-guided-dec

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Esteban Aliverti
One last thing. Just like Wolfgang said: if you don't activate the agenda-group where the rule is defined its activations are never going to be executed. Best Regards, Esteban Aliverti - Blog @ http://ilesteban.wordpress.com On Thu, Aug 16, 2012 at 4:29

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Esteban Aliverti
By the way, what are you trying to do in this piece of code? Collection objs = workingMemory.getObjects(); Iterator it = objs.iterator(); while (it.hasNext()) { Object obj = it.next(); if (obj instanceof Program) { FactHa

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Esteban Aliverti
The project doesn't compile since the parent pom is missing. You don't event have the Drug and Program classes in it! Best Regards, Esteban Aliverti - Blog @ http://ilesteban.wordpress.com On Thu, Aug 16, 2012 at 4:02 PM, Rana wrote: > Please find the

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
Please find the project attached. Please check and help me out. I am now like cat on that wall. The project team needs it and this is giving me hard time. Please help http://drools.46999.n3.nabble.com/file/n4019196/pi-affiliate-drools-rule-engine.zip pi-affiliate-drools-rule-engine.zip Please

Re: [rules-users] Handling maps in Drools

2012-08-16 Thread Manav
Thanks a lot W. That worked like a charm. Just one more twist to the same issue . Along with the total score for the certifications i also want to take a count of those certifications where the user scores are greater than the required scores for those certifications. I believe i won't be

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
If you insert facts that have a chance to match, and if you enable genda-group "AndroGel" then I see no reason why it should not work. -W On 16/08/2012, Rana wrote: > Hi this is my rule file, can you help me modify to make it work please. > > http://drools.46999.n3.nabble.com/file/n4019187/Rule

Re: [rules-users] Designer: How to assign/map attributes inside complex objects?

2012-08-16 Thread Tihomir Surdilovic
Yes this is something community is asking for and we are looking into right now. If you want to join us on IRC ( http://www.jboss.org/jbpm/irc ) and I'd be glad to talk to you about this in more details too if it is something you would like to for example work on and help with :) Thanks On 8/

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
This is the log I get, it is not able to set the values at all. I even try to update in the code. but still there is no data that I am setting in rule is set at all. 0[main] INFO com.drfirst.pi.affiliate.drools.DroolsKnowledgeObject - Drools Resource Scanner is set to 60 seconds 6[main

Re: [rules-users] Trouble using || operator and after evaluator in constraints in 5.4.0.Final

2012-08-16 Thread Wolfgang Laun
This is a bug. Note that the equivalent rule package datelist; rule "Sample rule" when CurrentDate( $now: now ) $obj: MyObject( ## $obj memberOf $list, myDate == null || myDate after[5d] $now ) MyObjectList( $list: myObjectList contains $obj ) then System.out.p

Re: [rules-users] Excel Upload of decision table resulting in incomplete rules

2012-08-16 Thread tanug
Thanks Mike. Though the problem remains, atleast I know I will have to find a workaround and not struggle with excel uploads. Regards Tanu -- View this message in context: http://drools.46999.n3.nabble.com/Excel-Upload-of-decision-table-resulting-in-incomplete-rules-tp4019178p4019188.html Se

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Rana
Hi this is my rule file, can you help me modify to make it work please. http://drools.46999.n3.nabble.com/file/n4019187/Rule.txt Rule.txt Please let me know Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp4019158

Re: [rules-users] Trouble using || operator and after evaluator in constraints in 5.4.0.Final

2012-08-16 Thread abr
Oops! This is a typo when creating the example I mentioned in my previous message. Here is the correct rule syntax (the $list variable is bound from MyObjectList.myObjectList, which is of type java.util.List): rule "Sample rule" when CurrentDate( $now: now ) MyObjectList( $lis

Re: [rules-users] How to trigger update when modifying a list attribute?

2012-08-16 Thread Wolfgang Laun
On 16/08/2012, Paulo Reis wrote: > Hi, > > Thanks for your answer. Yes, Object was just a example, maybe I've used a > bad one. > I will try to invoke update to see whether it get modified. Could you tell > me a little bit more about "superSetOf" ? How do I use it or where do I get > more info abo

Re: [rules-users] Trouble using || operator and after evaluator in constraints in 5.4.0.Final

2012-08-16 Thread Wolfgang Laun
For the operations "a contains b" and "b memberOf a", operand a must be a Collection or array; your MyObjectList is neither. 5.3.0 had less strict compile time checks; 5.4.0 fixed this. I am surprised that this ever executed correctly. Did it really, with the rule and classes exactly as shown? -

Re: [rules-users] How to trigger update when modifying a list attribute?

2012-08-16 Thread Paulo Reis
Hi, Thanks for your answer. Yes, Object was just a example, maybe I've used a bad one. I will try to invoke update to see whether it get modified. Could you tell me a little bit more about "superSetOf" ? How do I use it or where do I get more info about it? Didn't find anything on drools expert

Re: [rules-users] How to trigger update when modifying a list attribute?

2012-08-16 Thread Wolfgang Laun
Object is an unlikely class name for something that contains a list and provides a method hasInList(). Anyway, the RHS must call update( $obj ); after modifying the list. Note that using SomeObject( theList contains "item" ) is the usual idiom for testing for a single element. For a subse

[rules-users] Trouble using || operator and after evaluator in constraints in 5.4.0.Final

2012-08-16 Thread abr
Hi everyone, I've tried to go from Drools 5.3.0.Final to 5.4.0.Final and some strange errors appeared on constraints using the after evaluator and the || operator. For instance, considering these 2 objects : public class MyObject { private Date myDate; public MyObject(Date myDa

[rules-users] How to trigger update when modifying a list attribute?

2012-08-16 Thread Paulo Reis
Hi guys, I'm having the follow issue: I have an object that contains a list. The object is inserted on the memory but not the list, so I want to do something like this: when $obj: Object() eval($obj.hasInList("item")) then $obj.replaceInList("item", "replacement"); end H

Re: [rules-users] Excel Upload of decision table resulting in incomplete rules

2012-08-16 Thread Michael Anstis
This is a limitation of the current import process. A Condition\Pattern spanning multiple condition columns becomes a single free-format DRL "BRL Fragment" column. BRL Fragments are only included if all value place holders contain a value. In the future we would like to improve the import to buil

[rules-users] Excel Upload of decision table resulting in incomplete rules

2012-08-16 Thread tanug
Hello, I am trying to upload a decision table using excel uploads. When I leave any cell blank, no rule is generated for that row. As I understand from the examples and other posts, this should not have happened and the rule should have been generated with the remaining values in that row. I am

Re: [rules-users] Any additional (better) documentation for the examples included in Drools Planner product?

2012-08-16 Thread Geoffrey De Smet
> We have been having real hard time understanding the examples with > such limited/no documentation about the examples that are included in > the product. Did someone find any other documentation on them apart > from the 5-6 paragraphs mentioned in the reference manual? Also, we > found the re

Re: [rules-users] Handling maps in Drools

2012-08-16 Thread Wolfgang Laun
This rule works with 5.1.1: rule "Map test" when $rb : Certifications($reqCertificationKeys : requiredCertifications.keySet) $user : User( $userCertifications : userCertifications ) Number( $score : intValue ) from accumulate( $key: String( this memberOf ($userCertifications.keySet())

Re: [rules-users] Rule flows in Drools planner configuration?

2012-08-16 Thread Geoffrey De Smet
Op 15-08-12 21:53, Garf schreef: > spinjala wrote >> Is it possible to have a rule flow file that defines a set of rules >> (constraints) but executed in the order per the defined ruleflow.? I dont >> see any example doing that so I was wondering if it is possible at all to >> have the constrain

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
You don't need an separate BRL Fragment for each line in the DRL. Why not define a BRL Fragment for this:- data : RuleData( controlCode == 123, term = ) You'll then have a column in which to enter the value of "term". If the cell the fragment will not be included in the rule. With kind regards,

Re: [rules-users] expert mailing list

2012-08-16 Thread Geoffrey De Smet
My thoughts: -1 to private: Keep it public - default to open :) -1 to invitations: they are hurdle (even if they can request it themselves) +1 to google groups. It's much easier for new people to join (web/mail/newsgroup) than the complexity we got now with nabble/mailing-list/gmane and less issu

Re: [rules-users] modify and update is not working in the rule file

2012-08-16 Thread Wolfgang Laun
See inline: On 15/08/2012, Rana wrote: > Please let me know what is the problem in this. It does not update the > values > when I get the values, it gives me null in my unit test method. Any stack trace? > > > rule "Drug Strength" extends "Provider State" > no-loop true > dialect "m

Re: [rules-users] How to check if a property IS null ?

2012-08-16 Thread Wolfgang Laun
"this" in DRL is just like "this" in Java. "this == null" is just another way of saying "false". -W On 15/08/2012, Hendy Irawan wrote: > Thank you. > > "this == null" is weird indeed in Java, but I honestly don't know how to > express this expression in Drools DSL. > > A more realistic rule wou