[rules-users] Decision tables - multiple params to function over multiple columns
Hi, Currently I've got a consequence on a decision table that works like this: callHelperFunction( $1, $2, $handleFromConditions); where the first two parameters are strings, $1 being a code, $2 a description. which means that you get the table holding things like: DC X223,This is the description text which can be fairly wordy That works just fine! However: For ease of maintenance, the risk analysts want the input split over two columns, so is there any way of doing this? I'm trying to avoid inserting a temporary fact then cleaning it up after, if possible, as I can't see that being particularly good for performance. Thank you, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CSV Issues - Decision table
Did you try this with the ... described by Michal? And you may not be able to use vertically joined cells. -W On 28 March 2011 10:00, jkb balachandar.jayakan...@ingdirect.co.uk wrote: We recently started using Drools 5.1 and exploring the possibility of .csv for decision tables. The CSV support for decision tables seems to be quite not the same as that of xls. Documentation/books cover a few things (eg: work-around cell merging - http://www.packtpub.com/article/human-readable-rules-with-drools-jboss-rules-part1). While .xls file works fine, the .csv version of the same behaves in a bizarre way. When same facts are passed in to both, the csv one wont fire any rules. http://drools-java-rules-engine.46999.n3.nabble.com/file/n2742295/ExcelScreenShot.jpg http://drools-java-rules-engine.46999.n3.nabble.com/file/n2742295/CSVScreenShot.jpg Find attached both .xls and the .csv versions, please let me know if I got something fundamentally wrong. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/CSV-Issues-Decision-table-tp2742295p2742295.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rule storage
Hi all, Thanks for your inputs Manstis and Mister X. Out of pure gratitude, I will make sure your name remains unspoken :-). This is my second attempt to write a reply, some weird thing happened during the previous one. I hope it does not suddenly show up on the message board. There surely is something in the DSL approach. Using DSL that way, you copuld actually replace variables by a possibly more flexible alternative. However, there are some drawbacks as well, as there will still be some manageablility issues. Suppose prices go up by 5% in year X and by another 2% in year Y. This would mean you have to do some calculations in order to get your DSL straight. Also, you would need to know which groups could be bulk updated in the future. If there are some corss-overs, that might complicate things as well. Providing you can control versioning, I guess a more direct approach might be the way to go. But no need to worry about that, you helped me a lot gaining more insight, especially the silent one. Thanks, Frank -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp2742515p2747204.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Decision tables - multiple params to function over multiple columns
I think this is more a Java question of how to call a method in instalments. One option is to set a temporary from the 1st column, and call from the 2nd: The first column might be String code = $param; and the next column would callHelperFunction( code, $param, $handleFromConditions); and the next column would Alternatively, you can do startHelperFunction( $handle, $param ); execHelperFunction( $param ); also with each statement coming from a column of its own. With non-statics, also chained calls would be possible. -W 2011/3/29 travis_sm...@bnz.co.nz: Hi, Currently I've got a consequence on a decision table that works like this: callHelperFunction( $1, $2, $handleFromConditions); where the first two parameters are strings, $1 being a code, $2 a description. which means that you get the table holding things like: DC X223,This is the description text which can be fairly wordy That works just fine! However: For ease of maintenance, the risk analysts want the input split over two columns, so is there any way of doing this? I'm trying to avoid inserting a temporary fact then cleaning it up after, if possible, as I can't see that being particularly good for performance. Thank you, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] The update function inside a rule
Hi Marc, Your rules do not immediately reveal anything remarkable to me, so I do not have an explanation or solution just yet. Here is what I would do to narrow down on the problem: Add an output in your rules that print the internal end date and the current date in each RHS of the rules. It is unlikely that the WM is not updated at all, that would cause internalEndDate to remain unchanged and rules wouldn't be fired anymore. Regards, Frank Marc Strabin wrote: Hello, I've 2 rules which should be similar but the result is different and I can't understand why : I insert an object Message() into drools with the following rule : rule quot;rule_aquot; timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // SimpleClock give the current time (set by a java timer and an update) m : Message ( internalEndDate lt; d ) then System.out.println( quot;rule aquot;); m.setInternalEndDate (d + 1); * retract (m);* * insert (m);* end gt; the result is fine : a message every 10. If I replace the rule_a by the rule_b : (because an update should be better than an retract/insert I guess) rule quot;rule_bquot; timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // Simple slock give the current time (set by a java timer and an update) m : Message ( internalEndDate lt; d ) then System.out.println( quot;rule bquot;); m.setInternalEndDate (d + 1); * update (m);* end gt; the result is bad : a message every 1 second. It act as if the attibute message.internalEndDate wasn't updated in the drools engine. Could someone explain me if/why this behaviour is normal ? Thanks in advance Marc ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/The-update-function-inside-a-rule-tp2747484p2747740.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] The update function inside a rule
I'm sorry, that didn't make any sense. An un-updated internal enddate would indeed cause the LHS condition to remain true, and the timer will cause it to fire each second. My bad... FrankVhh wrote: Hi Marc, Your rules do not immediately reveal anything remarkable to me, so I do not have an explanation or solution just yet. Here is what I would do to narrow down on the problem: Add an output in your rules that print the internal end date and the current date in each RHS of the rules. It is unlikely that the WM is not updated at all, that would cause internalEndDate to remain unchanged and rules wouldn't be fired anymore. Regards, Frank Marc Strabin wrote: Hello, I've 2 rules which should be similar but the result is different and I can't understand why : I insert an object Message() into drools with the following rule : rule quot;rule_aquot; timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // SimpleClock give the current time (set by a java timer and an update) m : Message ( internalEndDate lt; d ) then System.out.println( quot;rule aquot;); m.setInternalEndDate (d + 1); * retract (m);* * insert (m);* end gt; the result is fine : a message every 10. If I replace the rule_a by the rule_b : (because an update should be better than an retract/insert I guess) rule quot;rule_bquot; timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // Simple slock give the current time (set by a java timer and an update) m : Message ( internalEndDate lt; d ) then System.out.println( quot;rule bquot;); m.setInternalEndDate (d + 1); * update (m);* end gt; the result is bad : a message every 1 second. It act as if the attibute message.internalEndDate wasn't updated in the drools engine. Could someone explain me if/why this behaviour is normal ? Thanks in advance Marc ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/The-update-function-inside-a-rule-tp2747484p2747755.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] The update function inside a rule
I think there is an open JIRA for a very similar issue: JBRULES-2825 rule with timer and CE not keeps firing after turning false I have added these two rules as a comment. However, the timer isn't necessary in this here case. Since the SimpleClock fact is updated periodically, the engine will fire the rule as soon as dateInMillisec exceeds the clock value in the Message fact. Both rules work correctly, if written without the timer. Actuallay, the timer doesn't have any effect (except wasting a few cycles). If the LHS becomes true, it delays the first firing by 1s, and then the LHS is made false by changing the Message object. This stops the timer! But then, eventually, the LHS becomes true again, and *another timer *is started, delays 1s, fires, and terminates. -W 2011/3/29 Marc Strabin marc.stra...@gmail.com: Hello, I've 2 rules which should be similar but the result is different and I can't understand why : I insert an object Message() into drools with the following rule : rule rule_a timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // SimpleClock give the current time (set by a java timer and an update) m : Message ( internalEndDate d ) then System.out.println( rule a); m.setInternalEndDate (d + 1); retract (m); insert (m); end the result is fine : a message every 10. If I replace the rule_a by the rule_b : (because an update should be better than an retract/insert I guess) rule rule_b timer (int:1s 1s) when SimpleClock ( d : dateInMillisec != 0 ) // Simple slock give the current time (set by a java timer and an update) m : Message ( internalEndDate d ) then System.out.println( rule b); m.setInternalEndDate (d + 1); update (m); end the result is bad : a message every 1 second. It act as if the attibute message.internalEndDate wasn't updated in the drools engine. Could someone explain me if/why this behaviour is normal ? Thanks in advance Marc ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Pass user Credentials through URL
Hi Is there any way to pass the user credential through URL to BRMS-Guvnor for authentication and not to use login window. If it is possible what will be URL ? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Pass-user-Credentials-through-URL-tp2748067p2748067.html Sent from the Drools - User mailing list archive at Nabble.com.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Fwd: [rules-dev] Query on drools
Moved to correct mailing list Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Mar 29, 2011 at 10:12 AM, praveen p p.prave...@gmail.com wrote: Hi, We need to make a decision on whether to use Jboss drools for our project, please help me out on this. We are planning to develop a tool which generates random test data based on some conditions. These conditions can be something like age1860, 6 lettered string containing only first four letters of an alphabet, Amount=Price*quantity. We are planning to store these conditions in drools rule engine and generate data based on them. The java application has to connect to drools, fetch the rule associated with a property, get back to java layer and generate some output based on these rules. Is this possible using drools? Please let me know the possibility and provide some clarity on it. Regards, Praveen. ___ rules-dev mailing list rules-...@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-dev ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using Drools to model and solve a production scheduling problem with changeovers
Andrei, You should take a look at Drools Planner, which is designed to provide a framework for solving NP-hard problems using local search. I don't know how user-friendly you would consider it to be and there's no GUI, but it sounds like it may be a good fit for you. David Faulkner david.faulk...@amentra.commailto:david.faulk...@amentra.com From: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] On Behalf Of Andrei Neboian [andrei.nebo...@googlemail.com] Sent: Monday, March 28, 2011 5:03 PM To: rules-users@lists.jboss.org Subject: [rules-users] Using Drools to model and solve a production scheduling problem with changeovers Dear All, I am looking for a user-friendly platform which would allow me to model and solve a production scheduling problem with changeover times. Since it's an NP-Hard problem, I am getting convinced that a CP formulation would be most appropriate. Later on, a GUI should be designed to allow a user to interact with the model. Is drools a proper platform for this? Are there any examples of this type of problem solved with Drools? I need to tackle a problem with 4 parallel machines, over 100 jobs and 100 changeovertypes (sequence dependant setup times between each job). I would appreciate any help on this! Thanks Kind Regards, Andrei ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] The update function inside a rule
Thanks, The JBRULES-2825 seems to be a similar issue indeed ! The timer is necessary: When change the value of SimpleClock and I only do an update (obj), without calling fireAllRules(). That way the rule doesn't fire... Is-it an other problem ?? If I do a update + fireAllRulles() when I change the timer, the rule_b fire fine every 10 seconds. (without timer in the rule..) I think there is an open JIRA for a very similar issue: JBRULES-2825 quot;rule with timer and CE not keeps firing after turning falsequot; I have added these two rules as a comment. However, the timer isn't necessary in this here case. Since the SimpleClock fact is updated periodically, the engine will fire the rule as soon as dateInMillisec exceeds the clock value in the Message fact. Both rules work correctly, if written without the timer. Actuallay, the timer doesn't have any effect (except wasting a few cycles). If the LHS becomes true, it delays the first firing by 1s, and then the LHS is made false by changing the Message object. This stops the timer! But then, eventually, the LHS becomes true again, and *another timer *is started, delays 1s, fires, and terminates. -W -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/The-update-function-inside-a-rule-tp2747484p2749346.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] The update function inside a rule
On 29 March 2011 19:04, marc marc.stra...@gmail.com wrote: Thanks, The JBRULES-2825 seems to be a similar issue indeed ! The timer is necessary: When change the value of SimpleClock and I only do an update (obj), without calling fireAllRules(). That way the rule doesn't fire... Is-it an other problem ?? If I do a update + fireAllRulles() when I change the timer, the rule_b fire fine every 10 seconds. (without timer in the rule..) Sorry, but I do not understand what you mean by any of these two scenarios. -W I think there is an open JIRA for a very similar issue: JBRULES-2825 quot;rule with timer and CE not keeps firing after turning falsequot; I have added these two rules as a comment. However, the timer isn't necessary in this here case. Since the SimpleClock fact is updated periodically, the engine will fire the rule as soon as dateInMillisec exceeds the clock value in the Message fact. Both rules work correctly, if written without the timer. Actuallay, the timer doesn't have any effect (except wasting a few cycles). If the LHS becomes true, it delays the first firing by 1s, and then the LHS is made false by changing the Message object. This stops the timer! But then, eventually, the LHS becomes true again, and *another timer *is started, delays 1s, fires, and terminates. -W -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/The-update-function-inside-a-rule-tp2747484p2749346.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Decision tables - multiple params to function over multiple columns
Thank you for the reply Wolfgang, For some reason I had a mental blank when I asked that question - was thinking Can't create variables like that. Thanks! -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) Wolfgang Laun wolfgang.l...@gmail.com Sent by: rules-users-boun...@lists.jboss.org 29/03/2011 08:21 p.m. Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject Re: [rules-users] Decision tables - multiple params to function over multiple columns I think this is more a Java question of how to call a method in instalments. One option is to set a temporary from the 1st column, and call from the 2nd: The first column might be String code = $param; and the next column would callHelperFunction( code, $param, $handleFromConditions); and the next column would Alternatively, you can do startHelperFunction( $handle, $param ); execHelperFunction( $param ); also with each statement coming from a column of its own. With non-statics, also chained calls would be possible. -W 2011/3/29 travis_sm...@bnz.co.nz: Hi, Currently I've got a consequence on a decision table that works like this: callHelperFunction( $1, $2, $handleFromConditions); where the first two parameters are strings, $1 being a code, $2 a description. which means that you get the table holding things like: DC X223,This is the description text which can be fairly wordy That works just fine! However: For ease of maintenance, the risk analysts want the input split over two columns, so is there any way of doing this? I'm trying to avoid inserting a temporary fact then cleaning it up after, if possible, as I can't see that being particularly good for performance. Thank you, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Introduction Documentation --
Hi, Sorry I feel silly but want to know 1). How we can create our own template files (.ftl) for our usertask (humantask) node in jbpm process. I need to create two simple .ftl or .html (whatever) i). One is for the manager who log in with his username and password and then creates a Task for his developer ii). Then second developer log in where he see his task and then view it where he submits his no. of hours worked. Is their a way where we can easily creates and test these things before we can hooked them in our jbpm process? --isg On Mon, Mar 21, 2011 at 3:37 AM, Mauricio Salatino sala...@gmail.comwrote: Hi, you are probably missing the drools runtime configuration. Check in your setting tab and look for the Drools settings to see if you have it configured. Greetings. 2011/3/20 Imaad Ghouri imaad.gho...@gmail.com Hi, Thanks all for the response. I have started with examples and having an issue while I copied drl-files from drools-examples in eclipse. I see a red cross sign with .drl files. Can someone please explain whats I have missed. Thanks, Imaad 2011/3/18 Michael Anstis michael.ans...@gmail.com Hi, Binaries are available from http://www.jboss.org/drools/downloads(Drools Binaries). You won't need SVN anymore (we migrated to GIT over Christmas: https://github.com/droolsjbpm, although the binaries will probably be enough for you for now). Roadmap would be read the Drools Expert documents and look at the examples really :) With kind regards, Mike 2011/3/18 Imaad Ghouri imaad.gho...@gmail.com Hi, Thanks for the reply. There is no reason why i started building from the source. I just started with the drools introduction. Section 3.1 http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduction/html_single/index.html#d0e1934 I would certainly go with the easiest way to get started with drools. Kindly tell me from where I can download the binary distribution. I am not able to find it. This is what I have done so far: 1). Installed Eclipse GEF. 2). Installed drools plugin 3). Installed svn, maven and ant. Added bin's in PATH variable (java, ant maven). 4). Check out drools source code through svn http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/ Also, I will appreciate if some one tell me the road map for newbies. Or staring with given drools documentation is just fine ? Thanks in advance, isg 2011/3/17 Wolfgang Laun wolfgang.l...@gmail.com Is there any reason why you don't start with the binary distributions? Building from the source requires some experience. The message indicates that some tests failed; the reason(s) can be found in files at the indicated location. You could try the build with skipping the tests, add -DskipTests to the mvn call. -W 2011/3/18 Imaad Ghouri imaad.gho...@gmail.com Hi All, I am a newbie and have just started with drools with documentation: http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduction/html_single/index.html 1). I am at section 3.4 and got the attached exception while I run the maven command: mvn -Declipse -Ddocumentation clean install -DlocalEclipseDrop=/folder/jboss-drools/local-Eclipse-drop-mirror 2). I am new in the community so i appreciate if some one guide me how to start other than drools documentation so I can start in a right fashion. -- Regards, Imaad Ghouri ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Regards, Imaad Ghouri ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Regards, Imaad Ghouri ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- Regards, Imaad Ghouri ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem with CommandFactory.newStartProcess in 5.2 M1
Ok, I finally got setup to use git and look at the latest drools code. In that repository, the code for CommandFactory.newStartProcess looks like this: public static Command newStartProcess(String processId, MapString, Object parameters) { return getCommandFactoryProvider().newStartProcess( processId ); } Apparently, there's some discrepancy from the 'master' repository you're looking at and the repository at github. I'm looking at: droolsjbpm-knowledge/knowledge-api/src/main/java/org/drools/command/Comm andFactory lines 254-257 Dan ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] FAIL - getProcessInstances() from persisted StatefulKnowledgeSession
Hi everybody. I configured the session persistence and persisted an instantiated process. When I get the session from the database and use the method getProcessInstances(), it returns an empty collection. But, when I call getProcessInstance(1), and 1 is the InstanceId of the ProcessInstanceInfo (table that contains the process instance), I get the correct process instance. Is this a bug? See the code below. statefulSession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, knowledgeBase, null, environment); CollationProcessInstance processInstances = statefulSession.getProcessInstances(); // FAIL - return empty collection ProcessInstance processInstance = statefulSession.getProcessInstance(1); // OK - return the process instance Regards, Anderson ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users