Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-07 Thread Samuli Saarinen
Hi Edson, I dig this a little deeper and found out that event declaration in separate file works correctly if file declaring the event and file containing a rule using the event have the same package. Is there a reason it should work only within the same package or should I open a JIRA? Cheers

Re: [rules-users] Performance monitoring and hotspot detection in rules?

2010-11-07 Thread Mark Proctor
On 07/11/2010 21:59, H.C. wrote: > Mark, > > Thanks for your reply. I figured 3 and 4 were currently possible but 1 and 2 > puzzled me. > > "it interates from root to tip repeatedly, so you can't easily determine how > long it spends in each node" > > Sorry, looks like my prior statement (#2) was m

Re: [rules-users] Custom UI for Drools rules

2010-11-07 Thread Mark Proctor
On 08/11/2010 06:35, Balasenthil D wrote: Hi, Is it possible to create a custom UI to create/edit drools rules( instead of Drools Guvnor). Are there APIs that let you do it? For e.g., oracle provides a java API for create/edit rules. With this you can come up with your own UI, if you are n

[rules-users] Custom UI for Drools rules

2010-11-07 Thread Balasenthil D
Hi, Is it possible to create a custom UI to create/edit drools rules( instead of Drools Guvnor). Are there APIs that let you do it? For e.g., oracle provides a java API for create/edit rules. With this you can come up with your own UI, if you are not happy with jdeveloper. Is something simila

Re: [rules-users] [Drools Flow] checking Properties of supplied variables in constraints

2010-11-07 Thread Kris Verlaenen
Gregor, Is there a reason why you are using rule constraints in your process? It seems you are doing a simple evaluation of a process variable value, in which case a simple code constraint like: return "reviewer".equals(ticket.getType()); should work, and you'll have less changes of seeing st

Re: [rules-users] Some Problem with drools-persistence-jpa Library

2010-11-07 Thread Kris Verlaenen
Hi, If you use persistence, you should use ksession.signalEvent(type, event, processInstanceId) instead of signaling the process instance itself. The reason is that, if you're using persistence, the state of the process instance is stored in the database after processing and the process insta

Re: [rules-users] process-designer deserialization error

2010-11-07 Thread Kris Verlaenen
Hi, Yes, the NPE you are getting is because the package as defined in the process is not the same as the package in Guvnor. You can set the package of your process either by changing the XML file as you described, but there is also a package name property on the process (just click the backgr

Re: [rules-users] Performance monitoring and hotspot detection in rules?

2010-11-07 Thread H.C.
Mark, Thanks for your reply. I figured 3 and 4 were currently possible but 1 and 2 puzzled me. "it interates from root to tip repeatedly, so you can't easily determine how long it spends in each node" Sorry, looks like my prior statement (#2) was misleading. Actually, I don't care so much abou

Re: [rules-users] Question about Drools Spring, StatelessKnowledgeSession and globals

2010-11-07 Thread Patrick van Kann
Hello fellow Droolers, A while ago I asked why the element seemed to work differently in the case of a StatelessKnowledgeSession and a StatefulKnowedgeSession (see below). I just wanted to update those interested with the answer and ask some further questions, probably aimed at any developers wh

Re: [rules-users] process-designer deserialization error

2010-11-07 Thread melc
Finally I think I've got something after debugging the source. Well at least the compilation issues as well as viewing and running the process from gwt-console have been resolved for now. I'm not sure if it is something that needs to be corrected or whether i've missed it somewhere. But the story

Re: [rules-users] Some Problem with drools-persistence-jpa Library

2010-11-07 Thread tangrui...@gmail.com
And another tip is that after ksession.startProcess, I get a ProcessInstance pi, but ProcessInstance pi = ksession.startProcess("com.zyeeda.system.TestFlow"); org.drools.process.instance.ProcessInstance pi2 = (org.drools.process.instance.ProcessInstance) pi; pi2.getWorkingMemory() // this one retu