Hi guys<br>I prefer to have the WorkItems related to sessions, so you can configure multiple sessions running multiple process different or not with different work item handlers.<br>The idea in drools is to keep everything knowledge oriented.<br>
Just my two cents.. <br><br><div class="gmail_quote">On Mon, Jul 26, 2010 at 6:23 PM, tolitius <span dir="ltr"><<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
that is interesting:<br>
<br>
<drools:work-item-handlers><br>
<drools:work-item-handler name="handlername" ref="handlerid" /><br>
</drools:work-item-handlers><br>
<br>
I already implemented it via simple <util:map>, and have a team of ~ 50<br>
developers already using it for the last three months ( did not know it was<br>
coming with namespace support ). Although as I think about it, since we have<br>
processes and sub-processes, I would rather keep workitem handlers process<br>
oriented rather than session oriented. Two reasons:<br>
<br>
1. "Workitem" is a process oriented entity<br>
2. Sub-Process configuration can be de-coupled, and hence painlessly<br>
modified / reused<br>
<br>
But all the namespace additions are truly a great addition to the Drools<br>
portfolio.<br>
<br>
I have a question about this new approach though:<br>
<br>
>>> Using JPAKnowledgeServiceBean, anytime I needed to create a new<br>
Session, I could:<br>
<br>
StatefulKnowledgeSession knowledgeSession =<br>
knowledgeProvider.newStatefulKnowledgeSession();<br>
<br>
>>> Using JPAKnowledgeServiceBean, anytime I needed to reload a<br>
Session, I could:<br>
<br>
knowledgeSession =<br>
knowledgeProvider.loadStatefulKnowledgeSession( sessionId );<br>
<br>
I always have one Session to one Business Process mapping ( there are<br>
multiple reasons for that outside of the scope of this question ).<br>
<br>
What is the new way you have in mind? [ I have ideas, I just want to make<br>
sure I don't double work you again ]<br>
<br>
Thank you Mark,<br>
/Anatoly<br>
<br>
P.S. All Sessions / Processes + RuleGroupsFlowsAgendas... are persistent [<br>
JPA ]<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/5-1-0-CR1-Drools-Spring-Configuration-Changed-tp997130p997552.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/5-1-0-CR1-Drools-Spring-Configuration-Changed-tp997130p997552.html</a><br>
</font><div class="im">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a> <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -<br>