cancel
Showing results for 
Search instead for 
Did you mean: 

formProperty variable, how do you pass a execution variable.

cirerenat
Champ in-the-making
Champ in-the-making
Is it possible to pass a value to formProperty from a variable (and vice versa, that is assigning whatever the value entered in the user task to a execution variable).
I have this flow. It has a Script Task and followed by a User Task.
In the script task (groovy) I have this
myName = "Test Name";
execution.setVariable("myName",myName);

And in the user task I have a formProperty defined as this

 <activiti:formProperty id="name" name="Name" variable="${myName}" required="true" readable="true" writable="true">

When I deploy this to activiti-explorer and run it, I expect to see the Form with
Name = "Test Name". 

But it is null.
What am I doing wrong ?
10 REPLIES 10

chesehng
Champ in-the-making
Champ in-the-making
I have the same question about this, is there somebody have idea?
I read JuelExpression.java and found the ElContext is obtained according to the VariableScope.
And can't found which class is responsible for parsing a expression string, even in the activiti-bpmn-model module.
Thanks for any help or hint.