You are getting a null where?
You should start your process and initialize the initiator variable, are
you doing that?
ksession.startProcess(<id>, <params>); where params is a Map<String,
Object> and you have a key called "initiator" filled with the user who is
calling startProcess.
Cheers
On Mon, Aug 13, 2012 at 8:05 AM, <gs.naidu(a)tcs.com> wrote:
Thanks Mauricio for replying,
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.
String lstrUSerId=(String)kcontext.getVariable("initiator");
System.out.println("lstrUSerId"+lstrUSerId);
kcontext.setVariable("name",lstrUSerId);
Please do the Needful.
Thanks&Regards,
G. Suresh Naidu
Tata Consultancy Services
Cell:- 8019844574
Mailto: gs.naidu(a)tcs.com
Website:
http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Mauricio Salatino <salaboy(a)gmail.com> To: gs.naidu(a)tcs.com Cc:
jbpm-users(a)lists.jboss.org Date: 08/10/2012 10:49 PM Subject: Re:
[jbpm-users] Identification Of the User who started the Process in JBPM
------------------------------
Yes,
that's easy to do, the one calling startProcess() can insert a process
variable called: initiator and then use that to assign the task.
Cheers
On Fri, Aug 10, 2012 at 2:34 PM, <*gs.naidu(a)tcs.com* <gs.naidu(a)tcs.com>>
wrote:
Dear Sir,
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.
Thanks&Regards,
G. Suresh Naidu
Tata Consultancy Services
Cell:- *8019844574* <8019844574>
Mailto: *gs.naidu(a)tcs.com* <gs.naidu(a)tcs.com>
Website: *http://www.tcs.com* <
http://www.tcs.com/>
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
jbpm-users mailing list*
**jbpm-users(a)lists.jboss.org* <jbpm-users(a)lists.jboss.org>*
**https://lists.jboss.org/mailman/listinfo/jbpm-users*<https://lists.jboss.org/mailman/listinfo/jbpm-users>
--
- MyJourney @ *http://salaboy.wordpress.com*<http://salaboy.wordpress.com/>
- Co-Founder @ *http://www.jugargentina.org*<http://www.jugargentina.org/>
- Co-Founder @ *http://www.jbug.com.ar* <
http://www.jbug.com.ar/>
- Salatino "Salaboy" Mauricio -