Oh so, is a jbpm console question and not an API question...<div>I don&#39;t know how to get the logged user from the jbpm console session, you can always fill it as a process variable.</div><div>The jBPM console will display the first form to start the process and that&#39;s where you can fill the name.</div>

<div>Cheers<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 10:59 AM,  <span dir="ltr">&lt;<a href="mailto:gs.naidu@tcs.com" target="_blank">gs.naidu@tcs.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<font face="sans-serif">Hi..</font>
<br>
<br><font face="sans-serif">Actually i have created bpmn process.In
that i have a script task and a user task and i have uploaded the same
to Guvnor and i builded the package successfully.I need to assign the human
task with the person who logged in to jbpm console and started the process.</font>
<br>
<br><font face="sans-serif">Example: Suppose if john logged in to
jbpm console and starts the process then the actorId of the HumanTask process
is john.</font>
<br>
<br><font face="sans-serif">I dont know the person who logged in
and starts the process.So i need to do it dynamically.So i need to know
who started the process in jbpm console from Processes -&gt;Process Overview
 -&gt; select -&gt; start </font>
<br>
<br><font face="sans-serif">Please Let me know is there any way
to do it.</font>
<br><div class="im">
<br><font face="sans-serif">Please do the Needful.</font>
<br>
<br><font face="sans-serif">Thanks&amp;Regards,<br>
G. Suresh Naidu<br>
Tata Consultancy Services<br>
Cell:- <a href="tel:8019844574" value="+18019844574" target="_blank">8019844574</a><br>
Mailto: <a href="mailto:gs.naidu@tcs.com" target="_blank">gs.naidu@tcs.com</a><br>
Website: </font><a href="http://www.tcs.com/" target="_blank"><font face="sans-serif">http://www.tcs.com</font></a><font face="sans-serif"><br>
____________________________________________<br>
Experience certainty.        IT Services<br>
                
       Business Solutions<br>
                
       Outsourcing<br>
____________________________________________</font>
<br>
<br>
<br>
</div><table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:gs.naidu@tcs.com" target="_blank">gs.naidu@tcs.com</a></font>
</td></tr><tr>
<td valign="top"><font size="1" color="#5f5f5f" face="sans-serif">Cc:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:jbpm-users@lists.jboss.org" target="_blank">jbpm-users@lists.jboss.org</a></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">08/13/2012 03:09 PM</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: [jbpm-users] Identification Of the
User who started the Process in JBPM</font></td></tr></tbody></table>
<br>
<hr noshade>
<br>
<br>
<br><font size="3">You are getting a null where?</font>
<br><font size="3">You should start your process and initialize the initiator
variable, are you doing that?</font>
<br>
<br><font size="3">ksession.startProcess(&lt;id&gt;, &lt;params&gt;); where
params is a Map&lt;String, Object&gt; and you have a key called &quot;initiator&quot;
filled with the user who is calling startProcess.</font>
<br>
<br><font size="3">Cheers</font>
<br><font size="3"><br>
</font>
<br><font size="3">On Mon, Aug 13, 2012 at 8:05 AM, &lt;</font><a href="mailto:gs.naidu@tcs.com" target="_blank"><font size="3" color="blue"><u>gs.naidu@tcs.com</u></font></a><font size="3">&gt;
wrote:</font>
<br><font size="3" face="sans-serif">Thanks Mauricio for replying,</font><font size="3">
<br>
</font><font size="3" face="sans-serif"><br>
Actually i have written the following  code in script task and i want
to assign the name value to an actor in userTask.Iam getting null value
with the following code.</font><font size="3"> <br>
</font><font size="1" face="Tahoma"><br>
String lstrUSerId=(String)kcontext.getVariable(</font><font size="1" color="#008000" face="Tahoma">&quot;initiator&quot;</font><font size="1" face="Tahoma">);</font><font size="3">
</font><font size="1" face="Tahoma"><br>
System.out.println(</font><font size="1" color="#008000" face="Tahoma">&quot;lstrUSerId&quot;</font><font size="1" face="Tahoma">+lstrUSerId);</font><font size="3">
</font><font size="1" face="Tahoma"><br>
kcontext.setVariable(</font><font size="1" color="#008000" face="Tahoma">&quot;name&quot;</font><font size="1" face="Tahoma">,lstrUSerId);</font><font size="3">
<br>
</font><font size="1" face="Tahoma"><br>
Please do the Needful.</font><font size="3"> </font>
<br><font size="3" face="sans-serif"><br>
Thanks&amp;Regards,<br>
G. Suresh Naidu<br>
Tata Consultancy Services<br>
Cell:- </font><a href="tel:8019844574" target="_blank"><font size="3" color="blue" face="sans-serif"><u>8019844574</u></font></a><font size="3" face="sans-serif"><br>
Mailto: </font><a href="mailto:gs.naidu@tcs.com" target="_blank"><font size="3" color="blue" face="sans-serif"><u>gs.naidu@tcs.com</u></font></a><font size="3" face="sans-serif"><br>
Website: </font><a href="http://www.tcs.com/" target="_blank"><font size="3" color="blue" face="sans-serif"><u>http://www.tcs.com</u></font></a><font size="3" face="sans-serif"><br>
____________________________________________<br>
Experience certainty.        IT Services<br>
                     
 Business Solutions<br>
                     
 Outsourcing<br>
____________________________________________</font><font size="3"> <br>
<br>
</font>
<table width="100%">
<tbody><tr valign="top">
<td width="11%"><font size="1" color="#5f5f5f" face="sans-serif">From:</font><font size="3">
</font>
</td><td width="88%"><font size="1" face="sans-serif">Mauricio Salatino &lt;</font><a href="mailto:salaboy@gmail.com" target="_blank"><font size="1" color="blue" face="sans-serif"><u>salaboy@gmail.com</u></font></a><font size="1" face="sans-serif">&gt;</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font><font size="3">
</font>
</td><td><a href="mailto:gs.naidu@tcs.com" target="_blank"><font size="1" color="blue" face="sans-serif"><u>gs.naidu@tcs.com</u></font></a><font size="3">
</font>
</td></tr><tr>
<td valign="top"><font size="1" color="#5f5f5f" face="sans-serif">Cc:</font><font size="3">
</font>
</td><td><a href="mailto:jbpm-users@lists.jboss.org" target="_blank"><font size="1" color="blue" face="sans-serif"><u>jbpm-users@lists.jboss.org</u></font></a><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font><font size="3">
</font>
</td><td><font size="1" face="sans-serif">08/10/2012 10:49 PM</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font><font size="3">
</font>
</td><td><font size="1" face="sans-serif">Re: [jbpm-users] Identification Of the
User who started the Process in JBPM</font></td></tr></tbody></table>
<br><font size="3"><br>
</font>
<hr noshade>
<br><font size="3"><br>
<br>
<br>
Yes, <br>
that&#39;s easy to do, the one calling startProcess() can insert a process
variable called: initiator and then use that to assign the task. <br>
<br>
Cheers<br>
<br>
On Fri, Aug 10, 2012 at 2:34 PM, &lt;</font><a href="mailto:gs.naidu@tcs.com" target="_blank"><font size="3" color="blue"><u>gs.naidu@tcs.com</u></font></a><font size="3">&gt;
wrote: </font><font size="3" face="sans-serif"><br>
Dear Sir,</font><font size="3"> </font><font size="3" face="sans-serif"><br>
<br>
                  Actually
Iam developing Workflow for my project.In that workflow i need to assign
the task to the person who started the Process.Please let me if there is
 a way to do it.</font><font size="3"> <br>
<br>
</font><font size="3" face="sans-serif"><br>
<br>
Thanks&amp;Regards,<br>
G. Suresh Naidu<br>
Tata Consultancy Services<br>
Cell:- </font><a href="tel:8019844574" target="_blank"><font size="3" color="blue" face="sans-serif"><u>8019844574</u></font></a><font size="3" face="sans-serif"><br>
Mailto: </font><a href="mailto:gs.naidu@tcs.com" target="_blank"><font size="3" color="blue" face="sans-serif"><u>gs.naidu@tcs.com</u></font></a><font size="3" face="sans-serif"><br>
Website: </font><a href="http://www.tcs.com/" target="_blank"><font size="3" color="blue" face="sans-serif"><u>http://www.tcs.com</u></font></a><font size="3" face="sans-serif"><br>
____________________________________________<br>
Experience certainty.        IT Services<br>
                     
 Business Solutions<br>
                     
 Outsourcing<br>
____________________________________________</font><font size="3"> <br>
=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you <br>
<br>
_______________________________________________<br>
jbpm-users mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:jbpm-users@lists.jboss.org" target="_blank"><font size="3" color="blue"><u>jbpm-users@lists.jboss.org</u></font></a><font size="3" color="blue"><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/jbpm-users" target="_blank"><font size="3" color="blue"><u>https://lists.jboss.org/mailman/listinfo/jbpm-users</u></font></a><font size="3"><br>
<br>
<br>
<br>
<br>
-- <br>
 - MyJourney @ </font><a href="http://salaboy.wordpress.com/" target="_blank"><font size="3" color="blue"><u>http://salaboy.wordpress.com</u></font></a><font size="3">
<br>
 - Co-Founder @ </font><a href="http://www.jugargentina.org/" target="_blank"><font size="3" color="blue"><u>http://www.jugargentina.org</u></font></a><font size="3"><br>
 - Co-Founder @ </font><a href="http://www.jbug.com.ar/" target="_blank"><font size="3" color="blue"><u>http://www.jbug.com.ar</u></font></a><font size="3"><br>
 <br>
 - Salatino &quot;Salaboy&quot; Mauricio - <br>
<br>
</font>
<br><font size="3"><br>
</font>
<br>
<br><font size="3">-- <br>
 - MyJourney @ </font><a href="http://salaboy.wordpress.com/" target="_blank"><font size="3" color="blue"><u>http://salaboy.wordpress.com</u></font></a>
<br><font size="3"> - Co-Founder @ </font><a href="http://www.jugargentina.org/" target="_blank"><font size="3" color="blue"><u>http://www.jugargentina.org</u></font></a><font size="3"><br>
 - Co-Founder @ </font><a href="http://www.jbug.com.ar/" target="_blank"><font size="3" color="blue"><u>http://www.jbug.com.ar</u></font></a><font size="3"><br>
 <br>
 - Salatino &quot;Salaboy&quot; Mauricio -</font>
<br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>

 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div><br>
</div>