Re: [rules-users] rule dialect issue in local file stream Vs Guvnor

2012-01-20 Thread Michael Anstis
Can you view the package source in Guvnor and report if it shows an explicit dialect? IIRC you are not the first person who has experienced this type of behaviour. sent on the move On 20 Jan 2012 21:52, "domingo" wrote: > I have one simple rule, just check the boolean attribute of the object a

Re: [rules-users] Global variable error message

2012-01-20 Thread domingo
Thanks, I tried 5.3 final, as you said, It gives very detailed error message . I changed to 5.2 Final to 5.3 Final. Thanks for the info :) - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Global-variable-error-message-tp3673889p3676793.html Sent from

[rules-users] rule dialect issue in local file stream Vs Guvnor

2012-01-20 Thread domingo
I have one simple rule, just check the boolean attribute of the object and print the value of the boolean, that simple rule. I am using java as my rule dialect. I found something interesting while debugging. 1. When i read the drl file from the local file stream I found the following...

[rules-users] changeset.xml schema error

2012-01-20 Thread domingo
I have some issues using changeset... Experiment - 1 when i use the above changeset (thanks to user forum)...the program works fine no issues but i got the following warning messages... (null: 1, 201): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', bec

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread rouvas
Apart from these considerations, you may also need to take into account performance and memory differences between the two approaches. In my Drools.5.0.1 project, I was tempted by declarative facts at first, until I found out that at runtime you need approximately 3 times the memory and you incur

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Vincent LEGENDRE
With Guvnor, you can also use "working set" (see here ) to restrict the availiable fields to expose to a business user, by selecting class and/or fields of an existing class, and even more (businnes contraints on values, with rules). The only problem I see with working sets, is that you must ex

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Davide Sottara
In alternative, if you want total decoupling, you can define /interfaces/ that your classes extend, and write the rules against the interfaces, rather than the classes. This might help when you have different formats and improves the portability of your rule base. The classes would have to impleme

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread GPatel
If you are starting from scratch, this is possible. However, I find myself having to expose operations from the *preexisting* technical domain into the business (i.e expose methods from existing technical domain code that has all kinds of annotations and code references to 3rd party software).

Re: [rules-users] Global variable error message

2012-01-20 Thread Wolfgang Laun
Hmm, I tried 5.2.0, and it doesn't even compile when I call a global's method. -W On 20/01/2012, Wolfgang Laun wrote: > Strange - I see a full stack trace. Must look into this, can't have > suppressed important info. There's an improved consequence exception > handler available with 5.3.0. > >

Re: [rules-users] Global variable error message

2012-01-20 Thread Wolfgang Laun
Strange - I see a full stack trace. Must look into this, can't have suppressed important info. There's an improved consequence exception handler available with 5.3.0. -W On 20/01/2012, domingo wrote: > First of all thanks for your reply, > I agree with you, the concern here is syntactically drl

Re: [rules-users] Global variable error message

2012-01-20 Thread domingo
First of all thanks for your reply, I agree with you, the concern here is syntactically drl file is ok and it compiles and build the knowledgebase. In run time consequence part get executed in that time it noticed global is null, this behavior is just like a java NPE. The point here is the message

Re: [rules-users] Fusion historical data analysis

2012-01-20 Thread Wolfgang Laun
Some code snippets that I've used: import org.drools.time.SessionPseudoClock; SessionPseudoClock clock; void advance( Date eventDate ){ long currentTime = clock.getCurrentTime(); long eventTime = eventDate.getTime(); clock.advanceTime( eventTime - currentTime

Re: [rules-users] FireAllRules for all agenda

2012-01-20 Thread Wolfgang Laun
Not so long ago there was talk about some highly innovative development that would permit you to write rules to control the agenda logic, something to supersede the bestiary of features that came into being over the years. I'm not quite sure about the status of this feature -probably still is expe

Re: [rules-users] FireAllRules for all agenda

2012-01-20 Thread FrankVhh
This is interesting... Is there A) Any reason why it is not possible to put rules into multiple agenda groups? After all, it should be a filter, not a package. B) Any plans on making this feasible in future releases? ftr, The same questions can be asked about ruleflow-groups. Until now, I a

Re: [rules-users] Infinit loop in simple example

2012-01-20 Thread Swindells, Thomas
The simplist solution is just to change your condition to be $a : Applicant(age < 18, valid != false) Thomas From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Esteban Aliverti Sent: 20 January 2012 14:20 To: Rules Users List Subject: Re: [rules-

Re: [rules-users] Fusion historical data analysis

2012-01-20 Thread MartinSimo
Hi, unfortunately I haven't found any way to set the pseudo clock according to timestamp (the "session.insert()") in org.jboss.soa.esb.actions.BusinessRulesProcessor which I am using to fire the rules from ESB. I'll try to write my own class to fire the rules, where I can also use "session.ins

[rules-users] Infinit loop in simple example

2012-01-20 Thread roland.kofler
Simple example loops ad infinitum if executed: package spikes; import org.springframework.roo.addon.javabean.RooJavaBean; @RooJavaBean public class Applicant { private final String string; private final int age; public boolean valid=true; public Applicant(String string, int i) { this.string

Re: [rules-users] Infinit loop in simple example

2012-01-20 Thread Esteban Aliverti
import spikes.Applicant rule "Is of valid age" when $a : Applicant( age < 18 ) then modify( $a ) { valid = false }; end By using modify() you are telling the engine that $a was modified in some way. This causes the re-evaluation of your rule, and since $a.age is still < 18, then the rule is

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Wolfgang Laun
Let me mention that I've used Java classes derived from XML Schema as facts. If there are technical properties you'd like to hide from the rule programmer, define a "business" type and extend it with the technical properties. The rule programmer must make do with the "business" type, which is poss

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Stephen Masters
Hi Davide,Thanks for your thoughts. The application is just a service which takes an XML request, converts that into a fact and inserts that into the working memory. Based on rule evaluations, it responds to the client with more XML indicating whether the requested action is permitted.On of the key

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Davide Sottara
Hi Steve, let me share my thoughts on this. You will probably want to use a Java model when it's already available :) Or when you're using the rule engine to implement the business logic layer of your application, processing data coming from an external source. A DRL model, instead, is definite

Re: [rules-users] FireAllRules for all agenda

2012-01-20 Thread Wolfgang Laun
Not by a single method call, if that's what you mean. (All the operations I indicated are part of the API.) -W On 20/01/2012, Vis wrote: > Thanks for your reply. > Yes, in this it can be done. > But WHat I meant here, is there any Drools API available to support it? > > -- > View this message in

Re: [rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread Michael Anstis
We have also added the ability to use BRL Fragments as columns in the guided Decision tables (for 5.4.0.beta2). http://blog.athico.com/2012/01/guided-decision-table-supports-brl.html You could then define a column as:- $c : Company() Company (this == $c, something = {templateKey} ) In rows wher

Re: [rules-users] java.lang.ArrayIndexOutOfBoundsException at Frame

2012-01-20 Thread mujoko mujoko
I'll inform if the error still remains. Need to test with big data. @Data and @EqualsAndHashCode annotation is lombok library to create setter and getter while compile. 2012/1/20 Michael Anstis > Does your problem remain? > > The DRL and Java code appear fine. > > If you are still having probl

[rules-users] Declarative fact model or Java?

2012-01-20 Thread Stephen Masters
Hi folks,I quite like the clean separation provided by maintaining a declarative fact model rather than a Java model. In particular to me, it seems to make it easier to manage rules in Guvnor separate from my runtime environment. However I can also see how maintaining a Java model simplifies some a

Re: [rules-users] Rules Evaluation based on agenda

2012-01-20 Thread Davide Sottara
Maybe this can be of interest? http://blog.athico.com/2011/08/declarative-agenda-and-control-rules.html -- View this message in context: http://drools.46999.n3.nabble.com/Rules-Evaluation-based-on-agenda-tp3674950p3674977.html Sent from the Drools: User forum mailing list archive at Nabble.c

Re: [rules-users] Rules Evaluation based on agenda

2012-01-20 Thread Swindells, Thomas
The best solution is to only insert the rulse you actually want into the knowledge base. Another option may be not to use agenda groups (or just agenda groups) but have a control fact as the first condition of all your rules eg when UseCase(name =="abc") ... Then Thomas >

[rules-users] Rules Evaluation based on agenda

2012-01-20 Thread Vis
Hi, We have many agenda-group based rules defined in application and while firing rules, we set specifc agend group based on different use cases to the session. In evaluation phase of rules, it not only evaluate rules related with agenda set to the session but also other rules which are not belon

Re: [rules-users] Guvnor deployment problem on websphere 6.1

2012-01-20 Thread Jervis Liu
On 2012/1/19 19:29, arup wrote: > I have modified the pom.xml as mentioned in > "https://community.jboss.org/wiki/DeployingGuvnor5OnWebSphere"; . also > created the custom propertied in WAS. but after installing the guvnor 5.1 > war when i'm trying to get the login page hitting the url i'm just get

Re: [rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread Swindells, Thomas
There isn't a nice way to do this unfortunately. One hack around it is to have two columns with the object merged across them The first column would have the condition $a : Company(this != $param), every cell in the column is then given the value 'null'. This would then always ensure that $a will

Re: [rules-users] FireAllRules for all agenda

2012-01-20 Thread Vis
Thanks for your reply. Yes, in this it can be done. But WHat I meant here, is there any Drools API available to support it? -- View this message in context: http://drools.46999.n3.nabble.com/FireAllRules-for-all-agenda-tp3674638p3674909.html Sent from the Drools: User forum mailing list archive a

[rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread swaroop
Hi, I am trying to write a template and came across a scenario where one of the condition cell $a : Company(condition), When condition is left blank then entire predicate is missed and iam using the ref of the company obj $a to set some values which is failing as the declar

Re: [rules-users] java.lang.ArrayIndexOutOfBoundsException at Frame

2012-01-20 Thread Michael Anstis
Does your problem remain? The DRL and Java code appear fine. If you are still having problems, please explain your entire process to replicate the problem: from authoring in Guvnor, to creating a KnowledgeBase, Session and calling fireAllRules. Can you please also advise if the problem remains if