Anatoly, if you can share your generic implementation that would be nice.. because a lot of people is looking for something like that.<br>I prefer custom and domain specific implementation, but it seams that a lot of people is looking for something generic that can be reused.<br>
I can blog about that generic idea too to spread the word and also mention the different situations and the perspective of having decoupled and coupled applications to the work items.<br><br><div class="gmail_quote">On Tue, May 4, 2010 at 11:16 AM, tolitius <span dir="ltr">&lt;<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>&gt;</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>
@Alan,<br>
<br>
    Implementation of WorkItemHandler is a custom ( &quot;your&quot; ) component. This<br>
means that this implementation may have anything injected ( set as property<br>
or at construction time ).<br>
<br>
    Let&#39;s say you implement &quot;YourCustomWorkItemHandler&quot; to take a &quot;session<br>
id&quot; at the construction time ( good choice :) ), then to start the process<br>
you would:<br>
<br>
                session = create a newStatefulKnowledgeSession()<br>
<br>
                session.getWorkItemManager().registerWorkItemHandler(<br>
                                &quot;WorkItemName&quot;, new YourCustomWorkItemHandler( session.getId() ) );<br>
<br>
                session.startProcess( &quot;process-name&quot; );<br>
<br>
/Anatoly<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-how-to-get-knowledge-session-ID-from-WorkItem-tp775649p776358.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-how-to-get-knowledge-session-ID-from-WorkItem-tp775649p776358.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
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> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>