Thank you Kris ! That is perfect.<br><div><br></div><div>I was a bit worried If I was asking wrong questions, since I wasn't getting any answers. </div><div><br></div><div>I have a follow up question though :)<br><br>
I have an asynchronous ruleflow (by asynchronous I mean ruleflow that
has some asynchronous nodes like a human task). Would it be OK to
register a afterRuleFlowCompleted RuleFlowEventListener and dispose the
session (that contains an instance of this asynchronous ruleflow)
there? What is the recommended way to dispose this session? I guess
same questions applies to a CommandService (where is the best place to
call commandService.dispose() method?).<br><br>Best Regards,<br>Michal<br></div><div><br><br><div class="gmail_quote">
On Tue, Dec 2, 2008 at 4:31 PM, Kris Verlaenen <span dir="ltr"><<a href="mailto:kris.verlaenen@cs.kuleuven.be" target="_blank">kris.verlaenen@cs.kuleuven.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Michal,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I'll add a dispose method to the
SingleSessionCommandService. Don't think using a command for this would be
a good idea as it would leave the session in a disposed state so future commands
would fail.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Regarding your earlier question,
SingleSessionCommandService now also has constructors that allow you to pass in
a PlaceholderResolverStrategyFactory.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Kris</font></div>
<div><font size="2" face="Arial"></font> </div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div><div></div><div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="michalbali@gmail.com" href="mailto:michalbali@gmail.com" target="_blank">Michal
Bali</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org" target="_blank">Rules Users List</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Tuesday, December 02, 2008 1:24
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [rules-users] Proper termination
of a CommandService</div>
<div><br></div>Hello,<br>Let's say I have some implementation of a
CommandService (for example StatefulSessionCommandService). After I finish
working with this CommandService, I want to correctly 'destroy' this object.
Since it contains a stateful rule session, I believe this session needs to be
disposed. What is the right way to do it?<br><br>I was thinking about
implementing a DisposeCommand that will simply call session.dispose() in its
execute method. Is this a valid solution?<br><br>Best Regards,<br>Michal<br>
</div></div><p>
</p><hr>
<p></p>_______________________________________________<br>rules-users mailing
list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<p></p></blockquote></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br></div>