[jboss-user] [JBoss jBPM] - Re: How to know who has started a process ?

dleerob do-not-reply at jboss.com
Thu Sep 6 09:56:52 EDT 2007

Using a swimlane on the start task does work, as Ronald mentioned. Perhaps call it "Initiator", as I've done. Make it a standard on all your processes. Eg, at the top of you processdefinition.xml there should be this:
<swimlane name="Initiator"></swimlane>
That swimlane will be filled with the actorId that started the process, again as Ronald mentioned.

If you have a task on the start node, and you know what the name of that task is, you could get the task instances for the process, and find the one with the name you require, and get the actorId for that task instance.

Whenever I create a new process, I also set a variable on the process called "sys_initiator", with the username/actorId of the currently authenticated user. This way I can always just get the "sys_initiator" variable when I want to know the username of the person who started the process.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081683#4081683

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081683

More information about the jboss-user mailing list