Re: [rules-users] DROOLS PLANNER - getting started

2011-09-28 Thread vik
Hellow, I also a new with Drools Planner ... how I can try the examples on my eclipse? -- View this message in context: http://drools.46999.n3.nabble.com/DROOLS-PLANNER-getting-started-tp3030567p3375541.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread Hari Kishan
@wolfgang Yesterday you told me to use accumulate instead of collect. But i could not find the right way to use accumulate here. Please see below my rules when condition [ collect function(Bold Italic) ] and please tell me how can i use accumulate there. If possible change the conditional

Re: [rules-users] DROOLS PLANNER - getting started

2011-09-28 Thread Geoffrey De Smet
Either create a new eclipse project from the directory examples/sources (from the download zip) and add the jars from the binaries directory (not the examples/binaries directory!) Or install the m2eclipse plugin and open the examples/sources/pom.xml (from the download zip). Afterwards, just

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread Wolfgang Laun
Here is an example: $av: List() from accumulate ( $a: Alarm( ...select interesting alarms... ), init( ListAlarm alarms = new ArrayListAlarm(); ) action( alarms.add($a); ) reverse( alarms.remove($a); )

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread HariKishan
Hi Wolfgang, The below code which you wrote is very appropriate but where should we mention on which collection we are traversing the conditions on . Like in collect $alarms : ArrayList(size0) from collect ( Alarm( .. ) from av.getAlarms() ) Thanks Regards, Hari Kishan T

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread Hari Kishan
The below code which you wrote is very appropriate but where should we mention on which collection we are traversing the conditions on . Like in collect $alarms : ArrayList(size0) from collect ( Alarm( .. ) from av.getAlarms() ) --

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread Wolfgang Laun
Same place: accumulate ( Alarm( ... ) from , init(...),... ) -W 2011/9/28 HariKishan harikishan.tamm...@pass-consulting.com ** Hi Wolfgang, ** ** The below code which you wrote is very appropriate but where should we mention on which collection we are traversing the

Re: [rules-users] Getting Exception while running rules continuously on the Event Streams from Mule Component.

2011-09-28 Thread Hari Kishan
Done the same way using accumulate ... but still the exception is thrown. May be the Frequency of Exception occurring is reduced. But this time it is occurring from the Accumulate Node. Some times the Rules Execution is continuing even after the Exception. Some times the Exception keeps on

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-28 Thread Tinku
rhs part worked ok now.. I am facing one more issue with calling a method in lhs of the rule .. When I call a method as mentioned below ('getValue' is the method in class 'customObject' and 'numberofObjects' is method in class 'AnotherObject') ; the drl file has problems in saving in eclipse.

Re: [rules-users] Unsatisfied rule fires - Drools bug?

2011-09-28 Thread matvey1414
Hi, Thank you for your reply. I will use the Knowledge API going forward. Can you please explain what you mean by deviate from the constraint syntax as defined with 5.1.1? What's an example of 5.1.1 syntax, and what's an example of a deviation? -Matt On Tue, Sep 27, 2011 at 5:12 AM, laune [via

Re: [rules-users] Unsatisfied rule fires - Drools bug?

2011-09-28 Thread Wolfgang Laun
2011/9/28 matvey1414 matvey1...@gmail.com Hi, Thank you for your reply. I will use the Knowledge API going forward. Can you please explain what you mean by deviate from the constraint syntax as defined with 5.1.1? What's an example of 5.1.1 syntax, For a complete picture, get the Expert

[rules-users] Guvnor Repository Report

2011-09-28 Thread sanjuk72
I have a following need: We are maintaining all rules in GUVNOR. We need to run a weekly report displaying all the Rules and there related information like change history. Qs: How can I access the GUVNOR repository to get this information. If anyone can please help. Thanks -- View this

Re: [rules-users] Date validation in Guvnor

2011-09-28 Thread sanjuk72
I have created DateUtils.java and have all the date functions as part of that. Import that in Guvnor and use it. I think you can create functions in Guvnor and use that. Hope this helps. -- View this message in context:

Re: [rules-users] Guvnor Repository Report

2011-09-28 Thread Michael Anstis
Have a look at the REST API documented in the user guide. I suspect you'll be able to get a list of packages, and for each a list of assets. On 28 September 2011 17:59, sanjuk72 sank1...@yahoo.com wrote: I have a following need: We are maintaining all rules in GUVNOR. We need to run a

Re: [rules-users] Guvnor Repository Report

2011-09-28 Thread Vincent Legendre
Yes you can do all that (but don't know about getting history infos). A old post from Jervis Liu linked to more info on REST API here http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html and http://community.jboss.org/wiki/AtomPubinterfaceforGuvnor But you may start by using the

[rules-users] Can you remove logging information from BatchExecutionCommand?

2011-09-28 Thread dunnlow
I am sending a batchexecution command to a drools server: 8... MyBean mb = new MyBean(); ListCommand cmds = new ArrayListCommand(); InsertObjectCommand insertCmd = (InsertObjectCommand) CommandFactory.newInsert(mb); insertCmd.setOutIdentifier(inserter); insertCmd.setEntryPoint(Default);

[rules-users] ClassCastException on .splitNode().constraint()

2011-09-28 Thread cyang
Hi, I'm using jbpm-flow-5.2.0-SNAPSHOT.jar and got a *ClassCastException *below with the following Drools flow snippet. I've tried mvel dialet as well and got the same error. * .splitNode(1010).type(Split.TYPE_XOR).name(splitOnShouldActivate)

Re: [rules-users] Can you remove logging information from BatchExecutionCommand?

2011-09-28 Thread dunnlow
Figured it out. In case anyone else sees this, the issue was that the bean that I was sending to the Drools server had a logger property, which XStream was trying to serialize. I didn't want to do a myBean.setLogger(null) because I wanted to actually do some logging in the bean. So, the

[rules-users] Concurrency problem in PackageClassLoader

2011-09-28 Thread nicolas
Hi, We are using a single (Drools 5.1.1) Stateless Sessions for the parallel processing of thousands of facts. From time to time we experienced the following error : org.drools.runtime.rule.ConsequenceException: rule: Priorite - Groupe: TMK2612G01, P10 at

Re: [rules-users] Guvnor Repository Report

2011-09-28 Thread jliu
On 2011/9/29 2:07, Vincent Legendre wrote: Yes you can do all that (but don't know about getting history infos). A old post from Jervis Liu linked to more info on REST API here http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html and