<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY 
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space" 
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thank you, Rob!&nbsp; I really appreciate 
it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Bill</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Rob@AgileConsultingLLC.com 
  href="mailto:Rob@AgileConsultingLLC.com">Rob Biedenharn</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=bill.walton@charter.net 
  href="mailto:bill.walton@charter.net">Bill Walton</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, October 17, 2006 1:38 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Backgroundrb-devel] 
  accessing args in worker</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV>
  <DIV>On Oct 17, 2006, at 2:15 PM, Bill Walton wrote:</DIV><BR 
  class=Apple-interchange-newline>
  <BLOCKQUOTE type="cite">
    <DIV><FONT face=Arial size=2>If, in the controller, I start a worker and 
    pass in an argument like this:</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>session[:job_key] = MiddleMan.new_worker(:class 
    =&gt; 
    :foo_worker,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    :args =&gt; {:emrec_id =&gt; @emrec.id})</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>How do I access the value in the worker?&nbsp; 
    I can't seem to figure it out ;-p</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
    <DIV><FONT face=Arial size=2>Bill</FONT></DIV><FONT face=Arial 
  size=2></FONT></BLOCKQUOTE></DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>def do_work(args)
  <DIV>&nbsp; @emred_id = args[:emrec_id]</DIV>
  <DIV>&nbsp; # ... do more stuff ...</DIV>
  <DIV>end</DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>-Rob</DIV>
  <DIV><BR>
  <DIV><SPAN class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN 
  class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2">
  <DIV>Rob Biedenharn<SPAN class=Apple-tab-span style="WHITE-SPACE: pre"><SPAN 
  class=Apple-style-span style="WHITE-SPACE: pre"> </SPAN></SPAN><A 
  href="http://agileconsultingllc.com">http://agileconsultingllc.com</A></DIV>
  <DIV><A 
  href="mailto:Rob@AgileConsultingLLC.com">Rob@AgileConsultingLLC.com</A></DIV>
  <DIV><BR class=khtml-block-placeholder></DIV><BR 
  class=Apple-interchange-newline></SPAN></SPAN></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>