Re: [rules-users] kie-spring and drools-wb integration

2013-10-11 Thread clayton.tabone
Great to hear from you Mark :) Thank you for sharing the link to the Camel example. I have already used a similar configuration for rules in the classpath and it works. What seems to lack from the kie-spring schema is the configuration of a KieContainer for a specific KieModule. Something

[rules-users] BuildError: Unable to Analyse Expression var == a

2013-10-11 Thread richie
Why var can not be used in the when clause? I tried to use it in then clause such as modify ($d) {var = d}; it just worked well. Is var a keyword in drools or mvel? I didn't find it anywhere both in drools export doc and mvel guide. Following is the content of my drl file: package test declare

[rules-users] Kie API questions

2013-10-11 Thread Martin Minka
are there somewhere examples how to: 1. use KieScanner 2. how to configure following code found on http://docs.jboss.org/drools/release/6.0.0.CR4/drools-expert-docs/html_single/index.htmlwith KIE API KnowledgeBuilderConfiguration config =

Re: [rules-users] Finalizing Drools 5.6

2013-10-11 Thread Quentin Caillard
Hi all, any news about the release of Drools 5.6? regards On Tue, Oct 1, 2013 at 8:57 PM, Davide Sottara dso...@gmail.com wrote: For quick reference, this is the list of known issues that were patched in 5.6. https://issues.jboss.org/browse/DROOLS-2

Re: [rules-users] BuildError: Unable to Analyse Expression var == a

2013-10-11 Thread Wolfgang Laun
There is quite a list of identifiers that cause surprising syntax errors, all resulting from MVEL keywords: var, with, def, assert, strsim, isdef,... Several more, I'm sure. -W On 11/10/2013, richie haoruiq...@gmail.com wrote: Why var can not be used in the when clause? I tried to use it in

[rules-users] KIE API

2013-10-11 Thread thilo
I'm quite new to Drools Expert and so far the framework looks promising. As we started a new project, I went for Drools Export 6.0.0CR4. Creating a prototype, I realized that the class KnowledgeBase is deprecated, so I tried to use the new KIE API. After checking the examples

[rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Alexander Wolf
[Drools 5.5.0 Final] I wrote a webserver that keeps StatefulKnowledgeSessions running in Stream mode. When the server is stopped, the sessions are serialized and stored in a database. When the server is restarted, the existing sessions are restored / deserialized. Some time after recreating

Re: [rules-users] Issue in Drools 5.5 concerned with rule and scanning list with from command

2013-10-11 Thread braveheart85
Ok, I spotted that there was a known bug in drools 5.4.0 with this, resolved in drools 5.5.0. In my tomcat server had been an old version of drools library together with 5.5.0. Removed the wrong library, now all it works. -- View this message in context:

[rules-users] use a boolean returned type function in when, doesn't work, why?

2013-10-11 Thread merry0900
my drl file like this: import function boolean isNotNull(String a){ if(a!=null){ return true;} return false; }. rule a when isNotNull(); then // mycode end how i could use like this, thank you all -- View this message in context:

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
Hey Alexander, Would this be related to this? https://issues.jboss.org/browse/DROOLS-243 If it is this one, you can do something like this as a workaround before constructing the KBase: Operator op = BeforeEvaluatorDefinition.BEFORE; Operator op = AfterEvaluatorDefinition.AFTER; This will

Re: [rules-users] use a boolean returned type function in when, doesn't work, why?

2013-10-11 Thread Wolfgang Laun
Read the section on the Conditional Element eval in the Expert manual (and more of the same manual, especially Chapter 4, Rule Language Reference). -W On 11/10/2013, merry0900 m1e1r1...@163.com wrote: my drl file like this: import function boolean isNotNull(String a){ if(a!=null){

Re: [rules-users] use a boolean returned type function in when, doesn't work, why?

2013-10-11 Thread rjr201
Do you need to do eval( isNotNull()) maybe? -- View this message in context: http://drools.46999.n3.nabble.com/use-a-boolean-returned-type-function-in-when-doesn-t-work-why-tp4026339p4026340.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Alexander Wolf
Hey Demian, thank you! This might actually be related. But how do I get the reference to these Operators to (re)set them? This is my unmarshalling code (pretty simple and basic..): ByteArrayInputStream bais = new ByteArrayInputStream(serializedKnowledgeBase); ObjectInputStream ois = new

Re: [rules-users] Kie API questions

2013-10-11 Thread Mark Proctor
We go over kie api and conf here, starting at slide 96. Slide 109 shows kie-scanner in use. http://www.slideshare.net/MarkProctor/ireland-augam2013 Mark On 11 Oct 2013, at 11:05, Martin Minka martin.mi...@gmail.com wrote: are there somewhere examples how to: 1. use KieScanner 2. how to

Re: [rules-users] Kie API questions

2013-10-11 Thread Wolfgang Laun
On 11/10/2013, Mark Proctor mproc...@codehaus.org wrote: We go over kie api and conf here, starting at slide 96. Slide 109 shows kie-scanner in use. http://www.slideshare.net/MarkProctor/ireland-augam2013 Gotcha - you're saying, documentation is on the slide...?! ;-) -W Mark On 11 Oct

Re: [rules-users] Kie API questions

2013-10-11 Thread Martin Minka
Mark, thank you for the slides. I saw them already together with your youtube video before. I like the new KIE API, but Unfortunately it is still little bit unclear for me. For example I don't know answer for my question 2. config.setOption(PropertySpecificOption.ALWAYS);. And the documentation

Re: [rules-users] Kie API questions

2013-10-11 Thread Mark Proctor
yes, would be great it someone could make an online tutorial :) Mark On 11 Oct 2013, at 18:57, Wolfgang Laun wolfgang.l...@gmail.com wrote: On 11/10/2013, Mark Proctor mproc...@codehaus.org wrote: We go over kie api and conf here, starting at slide 96. Slide 109 shows kie-scanner in use.

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
Yes.. but you can include these two lines before this, to check. Operator op = BeforeEvaluatorDefinition.BEFORE; Operator op = AfterEvaluatorDefinition.AFTER; The problem in that, for example, for the before,

Re: [rules-users] use a boolean returned type function in when, doesn't work, why?

2013-10-11 Thread mrj
thank you, let me have a try. thank you At 2013-10-11 22:34:54,rjr201 rich.j.ri...@gmail.com wrote: Do you need to do eval( isNotNull()) maybe? -- View this message in context:

Re: [rules-users] use a boolean returned type function in when, doesn't work, why?

2013-10-11 Thread mrj
ok,thank you ,let me have a try, your adverse is helpful, thank you! At 2013-10-11 22:17:05,Wolfgang Laun wolfgang.l...@gmail.com wrote: Read the section on the Conditional Element eval in the Expert manual (and more of the same manual, especially Chapter 4, Rule Language Reference). -W On