cancel
Showing results for 
Search instead for 
Did you mean: 

Display workflow starter in form

isshin
Champ in-the-making
Champ in-the-making
Hi,
I am very new to alfresco and I am trying to display the user that started a workflow in a task form.

Is there a way to do it in the form definition the same way a taskOwner is displayed?
1 REPLY 1

jmiranda
Champ in-the-making
Champ in-the-making
Hi

You can define a new property in your workflow model (e.g: "wf_username"), read "initiator.properties.userName" and assign it to the property:

In javascript:

executionContext.setVariable("wf_username",initiator.properties.userName);

But I think you can't do it in the start state, you have to do it when the workflow has been created.