Re: [rules-users] Help on using Drools with embedded objects

2009-03-02 Thread D1vy@@Ind1@
I have still not found a solution to the problem. The problem is that I have a non static function in my service class and i have to call thhat from my drools rule file. The function basically accepts a mail id and if a mailing list returns an arraylist of the individual mail ids in the mailing

[rules-users] Ksession inside a executeWorkitem() ?

2009-03-02 Thread Cristiano GaviĆ£o
Hi people, Im trying to create a workitemhandler for use Drools Pipeline and Smooks to import data inside working memory and process it. I want to share the working memory that was created for the main process that is calling the workitem for configure the Drools Pipeline inside it.

Re: [rules-users] Drools Flow Trigger process by ruleset

2009-03-02 Thread Kris Verlaenen
Garrett, The 3rd option you describe is currently possible in the core engine, however support has not yet been added to the graphical designer for this. You can however manually add it in the XML directly for now. If you look at the XSD it should look something like this: start id=1

Re: [rules-users] Ksession inside a executeWorkitem() ?

2009-03-02 Thread Kris Verlaenen
Cristiano, If the working memory is always different per work item, you could use a global and pass it as a parameter of the work item. However, in general it does seem better to set this on the work item handler directly at construction time, as a parameter on your work item handler.

Re: [rules-users] Timer isn't firing

2009-03-02 Thread Kris Verlaenen
Cristiano, There are some examples on processes using timers here: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ProcessTimerTest.java If you need help, could you maybe send me the test project you are trying to execute, so I

Re: [rules-users] Help on using Drools with embedded objects

2009-03-02 Thread Greg Barton
You've answered your own question. The method is non-static. You must call it on a particular instance. You can pass the instance in as a global variable or match on it in the rule. global com.test.serviceImpl.StaffingFormMailingServiceImpl foo; or when $s:StaffingForm(...)

[rules-users] not matches'' not working when string is null

2009-03-02 Thread techy
Hello, I'm checking for condition ' field not matches .*ABC.* ` in my rule. when field value is null, rule does not fire. But if field value != null and != ABC, then rule fires. Is this expected output or bug? Please clarify. Thanks -- View this message in context:

Re: [rules-users] Creating objects in WHEN clause

2009-03-02 Thread Greg Barton
Ah, I thought the LHS was parsed into mvel by default. OK, my bad. --- On Sun, 3/1/09, Edson Tirelli tire...@post.com wrote: From: Edson Tirelli tire...@post.com Subject: Re: [rules-users] Creating objects in WHEN clause To: greg_bar...@yahoo.com Date: Sunday, March 1, 2009, 6:19 PM Hold

[rules-users] query support in Drools 5

2009-03-02 Thread Michal Bali
Hi, Is there a way to get the QueryResults from a StatefulKnowledgeSession in Drools 5.0 ? The old API has a getQueryResults method but I can't find it in the new API. Thanks, Best Regards, Michal ___ rules-users mailing list

Re: [rules-users] Smooks and Drools Pipeline

2009-03-02 Thread Mark Proctor
checkout the unit test test, hopefully that should help: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-pipeline/drools-transformer-smooks/src/test/java/org/drools/runtime/pipeline/impl/SmookStatefulSessionTest.java Mark Dave Macpherson wrote: Hey guys (Drools newbie here) I'm