<font size=2 face="sans-serif">Hi..</font>
<br>
<br><font size=2 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 size=2 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 size=2 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
&nbsp;-&gt; select -&gt; start </font>
<br>
<br><font size=2 face="sans-serif">Please Let me know is there any way
to do it.</font>
<br>
<br><font size=2 face="sans-serif">Please do the Needful.</font>
<br>
<br><font size=2 face="sans-serif">Thanks&amp;Regards,<br>
G. Suresh Naidu<br>
Tata Consultancy Services<br>
Cell:- 8019844574<br>
Mailto: gs.naidu@tcs.com<br>
Website: </font><a href=http://www.tcs.com/><font size=2 face="sans-serif">http://www.tcs.com</font></a><font size=2 face="sans-serif"><br>
____________________________________________<br>
Experience certainty. &nbsp; &nbsp; &nbsp; &nbsp;IT Services<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;Business Solutions<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;Outsourcing<br>
____________________________________________</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Mauricio Salatino &lt;salaboy@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">gs.naidu@tcs.com</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">jbpm-users@lists.jboss.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">08/13/2012 03:09 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [jbpm-users] Identification Of the
User who started the Process in JBPM</font></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 &nbsp;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. &nbsp; &nbsp; &nbsp; &nbsp;IT Services<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;Business Solutions<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;Outsourcing<br>
____________________________________________</font><font size=3> <br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=11%><font size=1 color=#5f5f5f face="sans-serif">From:</font><font size=3>
</font>
<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>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font><font size=3>
</font>
<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>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font><font size=3>
</font>
<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>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">08/10/2012 10:49 PM</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">Re: [jbpm-users] Identification Of the
User who started the Process in JBPM</font></table>
<br><font size=3><br>
</font>
<hr noshade>
<br><font size=3><br>
<br>
<br>
Yes, <br>
that'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>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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
&nbsp;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. &nbsp; &nbsp; &nbsp; &nbsp;IT Services<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;Business Solutions<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;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>
&nbsp;- 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>
&nbsp;- 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>
&nbsp;- 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>
&nbsp;<br>
&nbsp;- Salatino &quot;Salaboy&quot; Mauricio - <br>
<br>
</font>
<br><font size=3><br>
</font>
<br>
<br><font size=3>-- <br>
&nbsp;- 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>&nbsp;- 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>
&nbsp;- 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>
&nbsp;<br>
&nbsp;- Salatino &quot;Salaboy&quot; Mauricio -</font>
<br>
<br>
<br>