Re: [rules-users] Drools Flow - problem with parameter mapping

2010-11-16 Thread matus
That exactly what I tried, but I allways got the error about ,There is no ID/IDREF binding for IDREF '_2_response'. or some other parameter. Is there some required naming convention? What I did is set In mapping like this employee = employee, length=length response=response and the same for out

[rules-users] Intermediate Events

2010-11-16 Thread srikanthp
How to create processes with intermediate events like compensation, message etc in drools flow. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Intermediate-Events-tp1910361p1910361.html Sent from the Drools - User mailing list archive at Nabble.com.

[rules-users] Replacement for eval

2010-11-16 Thread Nirmal Fernando
Hi, I have two questions. 1) Is there any other way/method in Drools to test the truth value of a condition other than eval? In almost all rules of my application needs to test conditions, and it takes ages to run using eval. 2) Say I have a java method which returns a boolean, and I have used

Re: [rules-users] Replacement for eval

2010-11-16 Thread Wolfgang Laun
2010/11/16 Nirmal Fernando nirmal070...@gmail.com: Hi, I have two questions. 1) Is there any other way/method in Drools to test the truth value of a condition other than eval? The margin of this email is too small to put them all here. See the Expert manual, subsection 4.8.3, Left Hand Side

Re: [rules-users] 401 Http Response while accessing a package

2010-11-16 Thread jegansp
Thanks a lot Jervis. It solved the problem. Regards, Jegan. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/401-Http-Response-while-accessing-a-package-tp1908870p1911439.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] Drools Spring module

2010-11-16 Thread Mark Proctor
On 16/11/2010 14:45, ahmed fayed wrote: Hi, Are the new Spring Module support creating POJO Rules? I could't find the rule, condition, and consequence annotations classes in the new JARs in 5.1, any idea if it's still supported and in which JAR? what's a pojo rule? The spring stuff allows

[rules-users] Object not seen in working memory i.e not evaluated by rules

2010-11-16 Thread drooRam
Hi I tried to do a simple test case using spring drools. Following is the test class, it inserts customer object into the workflow.rf and fire the rules 1. nameShouldBeEntered 2. emailShouldBeValid I have also attached drl, rf and applicationContext.xml files in this mail.

[rules-users] Is annotation possible in Rule flow constraint editor

2010-11-16 Thread drooRam
Hi I just want to know whether annotation and spring ioc is possible with rule flow constraint editor. For example, in any constraint editor, drools have two supporting types of coding, mvel java. I am wondering like is it possible to choose java and start using java annotation code in

[rules-users] Fusion temporal operators, time units

2010-11-16 Thread Nathan Bell
Fusion seems to only support days, hours, minutes, seconds and milliseconds for the units of time used with temporal operators. For example consider the following rule (which works correctly): rule AdmittedInLast7Days dialect java when $now : RuleTime() $account :

Re: [rules-users] Fusion temporal operators, time units

2010-11-16 Thread Wolfgang Laun
You may have to define your own version of temporal operators or at least to replace the parser for the temporal operators' parameters, i.e., what is written between the brackets. I guess that in your domain, a month is not an absolute interval but depends on the starting point. This makes it

[rules-users] OutOfMemoryError during marshalling with NOT conditions

2010-11-16 Thread ulibube
A little while back someone posted a message about an OutOfMemoryError problem when marshalling a knowledgebase containing rules with NOT conditions: http://drools-java-rules-engine.46999.n3.nabble.com/OutOfMemoryError-on-marshalling-with-non-existence-check-in-flow-XOR-split-td443126.html

Re: [rules-users] Fusion temporal operators, time units

2010-11-16 Thread Edson Tirelli
Nope, at the moment the largest unit supported is day. There are a couple reasons for that, including that such use cases require access to historic data that is usually kept outside the rules engine (in a database for instance) and loaded on demand, but the main reason was I didn't want to

Re: [rules-users] OutOfMemoryError during marshalling with NOT conditions

2010-11-16 Thread Edson Tirelli
I reopened that ticket. Please add any information (like what you have on the e-mail bellow) on how to reproduce the problem to the ticket. I will fix it for 5.2. Edson 2010/11/16 ulibube jboss.z.u...@xoxy.net: A little while back someone posted a message about an OutOfMemoryError

[rules-users] Drools 5.1 and JMX

2010-11-16 Thread Agarwal, Beena
I've enabled JMX using the following configuration KnowledgeBaseConfiguration kbaseConf = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); kbaseConf.setOption(MBeansOption.ENABLED); commonKB = KnowledgeBaseFactory.newKnowledgeBase(kb-+gameCode, kbaseConf);

Re: [rules-users] Drools 5.1 and JMX

2010-11-16 Thread Edson Tirelli
There is an operation on the main bean that starts the session specific mbeans. They are not started automatically because you just need them while actively monitoring. You can keep them off while not (another operation). Edson 2010/11/16 Agarwal, Beena bagar...@ea.com: I’ve enabled JMX

Re: [rules-users] Drools 5.1 and JMX

2010-11-16 Thread Agarwal, Beena
Are you talking about KnowledgeBaseMonitoring.startINternalMBeans - if so, how do I get access to KnowledgeBaseMonitoring from the knowledgebase/session I create a session usingsession = commonKB.newStatelessKnowledgeSession(); However, doesn't seem like I have access to

[rules-users] Drools flow - documentation update?

2010-11-16 Thread sherod
Any indication of when the Drools Flow documentation may be updated to reflect what was actually released as opposed to the old style icons/task/event names? -- View this message in context:

Re: [rules-users] Replacement for eval

2010-11-16 Thread Nirmal Fernando
Thanks for the replies! I observed that the action of a rule not get executed straight after that rule activated. Say my rules are following: rule Hello World when then System.out.println( hello world ); end rule GoodBye when Message( status == Message.GOODBYE,

Re: [rules-users] Replacement for eval

2010-11-16 Thread Greg Barton
You're missing the agenda.   http://en.wikipedia.org/wiki/Rete_algorithm#Conflict_resolution In the rete algorithm the agenda is a list of activated rules who's actions are eligible to fire.  The first one on the list is selected, it's action is fired, and the agenda might change as a result.  

Re: [rules-users] Rules Flow Eclipse editor

2010-11-16 Thread Prafull Kumar
Hi All, Any input will be really helpful to enhance the Drools Flow eclipse editor. Hopefully we will be able to share the artifacts to the community if we could do so. Regards, Prafull From: Prafull Kumar to_praf...@yahoo.com To:

Re: [rules-users] Drools Spring module

2010-11-16 Thread ahmed fayed
I mean a rule like this, @Rule @Service(value=broker.authorization) public class BrokerAuthorization { @Condition public boolean isInvalidAuthorization(SampleProcessDTO spDTO) { return true; } @Consequence public void consequence(SampleProcessDTO spDTO) { } } The package