Re: [rules-users] drools 5.0's RuleFlow & drools 5.2's jbpm5

2012-05-08 Thread Alan . Gairey
I thought that jBPM5 would still process RuleFlow files for backward compatibility? IIRC, Kris Verlaenen mentioned that on this list a while ago. Is this no longer the case? Alan Mauricio Salatino Sent by: rules-users-boun...@lists.jboss.org 05/05/2012 11:54 Please respond to Rules Users L

Re: [rules-users] difference between jBPM and drools?

2011-04-08 Thread Alan . Gairey
Thanks. A couple more questions: 1. Can jBPM5 process rule flow (.rf) files? 2. How does the handling of BPMN in jBPM5 compare with Drools Flow 5.1? There were limitations in Drools Flow 5.1 (http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html#d0e2782).

Re: [rules-users] difference between jBPM and drools?

2011-04-07 Thread Alan . Gairey
So to clarify, does Drools 5.2 contain Drools Flow any longer, or has this been superceded by jBPM 5? If I wish to submit feature requests, bugs etc., is there a separate issue tracker for jBPM 5? Thanks, Alan Mark Proctor Sent by: rules-users-boun...@lists.jboss.org 06/04/2011 22:43 Plea

[rules-users] How do I get node ID from workItem?

2010-08-25 Thread Alan . Gairey
In Drools Flow, in a work item handler, I need to get the node ID (from the .rf file) for the given WorkItem instance (using JPA state persistence). Is there a reliable way to do this? Any help gratefully received. Thanks, Alan___ rules-users mailing

[rules-users] How has JPAKnowledgeService changed from 5.1.0.M2 to 5.1.0.FINAL?

2010-08-22 Thread Alan . Gairey
We're using stateful knowledge sessions created by JPAKnowledgeService.newStatefulKnowledgeSession to execute Drools Flow rule flows, mainly consisting of a sequence of work items. With 5.1.0.M2, everything works as expected. However, with 5.1.0 (final release), when the rule flow starts the f

Re: [rules-users] Drools Flow inconsistancies

2010-08-13 Thread Alan . Gairey
Paul, Don't know whether it's relevant or not, but we experienced problems when the id of a Drools Flow process (i.e. the id attribute in the root node of the .rf file) contained a hyphen. This seemed to screw up the classes auto-generated by Drools. We now mandate a naming scheme for process i

Re: [rules-users] Drools 5.1.0.M2

2010-06-09 Thread Alan . Gairey
Steve, Many thanks for the information! Just to let you know, the link on the Drools Downloads page (http://www.jboss.org/drools/downloads.html) still points to the old repository. Regards, Alan Steve Ronderos Sent by: rules-users-boun...@lists.jboss.org 08/06/2010 17:14 Please respond

[rules-users] Drools 5.1.0.M2

2010-06-08 Thread Alan . Gairey
Drools 5.1.0.M2 still isn't available from the JBoss Maven repository (at http://repository.jboss.com/maven2/org/drools/). Any idea when it will be made available? Thanks, Alan___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.

Re: [rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-07 Thread Alan . Gairey
Chris, Anatoly, Mauricio, Thanks for your replies. I had implemented a solution similar to that suggested by Chris; my work item handlers are defined as Spring beans, so as long as they are defined with scope="prototype", the knowledge session can be injected into the handler. I just wondered i

[rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-04 Thread Alan . Gairey
The subject says it all really: is there any way of determining the knowledge session ID from the WorkItem argument (or WorkItemManager argument?) passed in to the executeWorkItem method of an implementation of the WorkItemHandler interface? Any help would be very much appreciated. Thanks, Alan_

Re: [rules-users] Multithreading work items

2010-04-26 Thread Alan . Gairey
Thanks for the quick response. Unfortunately I have an arbitrary number of sub flows, so I don't think I can use a Split and Join. Using the term "sub flow" might be a bit misleading; what I really have is a work item that can launch an arbitrary number of independent processes, each with their

[rules-users] Drools Flow: Problem with constraint in (Wait) State node

2010-04-15 Thread Alan . Gairey
I have a simple rule flow of the form: Start -> Work Item -> Wait State -> Action -> End. The handler for the work item launches a separate thread, and then completes. This thread inserts a number of facts into the (stateful) session's working memory; each fact ('SimpleFact') has a boolean prop

[rules-users] Missing Component types in Drools Flow 5.1 SNAPSHOT Eclipse plugin?

2010-03-05 Thread Alan . Gairey
I've just deployed the latest 5.1 snapshot (revision 3724) of the Drools Eclipse plugin. In the Drools Flow graphical editor, the 'State' and 'For Each' component types are still not present in the Components palette. Presumably these will be added prior to the actual 5.1 release? Also, I've not

[rules-users] Question on use of Timer node in rule flow

2010-02-18 Thread Alan . Gairey
I'm currently experimenting with including a Timer node within a rule flow. My question is: what (if any) runtime state information is persisted by Drools Flow for a Timer node? I can recreate a session via a call to JPAKnowledgeService.loadStatefulKnowledgeSession, but if a process instance w

Re: [rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-11-10 Thread Alan . Gairey
ht become true (if it was false > at > > > the > > > > start). Only constant re-evaluation of the code constraint > > could > > > > achieve this (which would be tremendously inefficient). Could > > you > > > > explain why you would

Re: [rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-30 Thread Alan . Gairey
e a way of setting the value of a process > > variable > > > via > > > the Drools Flow API? > > > > > > Thanks in advance for any help, > > > > > > Alan > > > Tessella plc > > > 26 The Quadrant, Abingdon Science Park, Abingdon, Oxfordshire, &

Re: [rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-26 Thread Alan . Gairey
Kris, After posting my last question, I quickly came to the same conclusion as you, so I'm now using a rule-based constraint in my EventWait node. This however has presented a different problem. If I create my session from JPAKnowledgeService, then when I try to insert my fact into the session

[rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-22 Thread Alan . Gairey
Can the constraint for an EventWait node in a flow be code-based (rather than rule-based)? The Eclipse plug-in (v 5.0.1) doesn't allow this to be specified, unlike say for a Split node, although the relevant XML can of course be edited. Trying to load such a process flow results in a NullPointer

Re: [rules-users] How do I configure the constraints for a Split node in Drools Flow to test the value of a process variable?

2009-10-20 Thread Alan . Gairey
Kris, Thanks for the fast response - the 'return' statement made all the difference - it's working as expected now. This was code from a simple unit test, so I wasn't initially checking errors after loading the process. After adding the code you suggested, the old process definition (i.e. with

[rules-users] How do I configure the constraints for a Split node in Drools Flow to test the value of a process variable?

2009-10-19 Thread Alan . Gairey
I have a requirement for a simple rule flow containing a "status" process variable; a work item sets the value of this variable via its Result Mapping. Following the work item is an XOR Split node, which can go to one of two following nodes, depending on the value of the status process variable

Re: [rules-users] When is JPAWorkItemManager used in Drools Flow?

2009-08-26 Thread Alan . Gairey
Kris, As far as I can see, JPAWorkItemManager isn't used. When loadStatefulKnowledgeSession is called in class JPAKnowledgeServiceProviderImpl, a new instance of CommandBasedStatefulKnowledgeSession is returned. If you look at the getWorkItemManager method of this class, it returns an instance

[rules-users] When is JPAWorkItemManager used in Drools Flow?

2009-08-26 Thread Alan . Gairey
I've been doing some testing recently with the 5.1 snapshot of Drools (build 3280). The JPA state persistence in Drools Flow appears to be much more solid (no more NullPointerExceptions) - many thanks for this. One question I still have though is with the loading of existing sessions from the da

Re: [rules-users] question on adding manual workitem within floweditor

2009-07-27 Thread Alan . Gairey
Paul, I don't know if the directory structure is significant, but I've attached a screenshot of how the files are configured within my project - with this structure, the work items appear in the RuleFlow editor. (I'm using Eclipse 3.5, but I'm pretty sure this should still work with earlier ve

Re: [rules-users] question on adding manual workitem within flow editor

2009-07-27 Thread Alan . Gairey
You need to make sure that the folder that contains your .conf files is marked as a Source Folder within Eclipse - hopefully it should then work OK. Alan Tessella plc 26 The Quadrant, Abingdon Science Park, Abingdon, Oxfordshire, OX14 3YS E: alan.gai...@tessella.com, T: +44 (0)1235 11, F: +4

Re: [rules-users] Problem with JPA session persistence in Drools Flow (5.0.1)

2009-07-08 Thread Alan . Gairey
Mark, Done: https://jira.jboss.org/jira/browse/JBRULES-2199 - thanks for the quick response. Regards, Alan Mark Proctor Sent by: rules-users-boun...@lists.jboss.org 08/07/2009 13:49 Please respond to Rules Users List To Rules Users List cc Subject Re: [rules-users] Problem with JPA s

[rules-users] Problem with JPA session persistence in Drools Flow (5.0.1)

2009-07-07 Thread Alan . Gairey
I'm currently using Drools Flow with JPA session persistence enabled as described in section 5.1 of the User Guide. As a process executes, session information is saved to the H2 database correctly. The problem comes if a process only executes part way through, and I then try to finish the proces