cancel
Showing results for 
Search instead for 
Did you mean: 

Form Properties with expressions

german_tejero
Champ in-the-making
Champ in-the-making
When using properties of forms in user tasks with expressions, when I get the value of the property, this is obtained from the expression. But when sending a new value to the property, this is not propagated back to the expression. Is there any way?

For example:

<activiti: formProperty id = "pname" name = "pname" type = "string" expression = "#{person.name}" />
3 REPLIES 3

yvoswillens
Champ in-the-making
Champ in-the-making
Hi,

Could you please explain what you mean with 'sending a new value to the property'?

Regards,

Yvo

german_tejero
Champ in-the-making
Champ in-the-making
When I run:

Map <String, String> properties = new HasMap <> ();
properties.put ("pname", "test");
formService.submitTaskFormData (taskid, properties);

The value of property "pname" is not propagated to the expression # {person.name}

Sorry for my poor English.

yvoswillens
Champ in-the-making
Champ in-the-making
Could you try and reproduce this behaviour in a unit test?
Because what you're describing should work.
As stated here;
http://www.activiti.org/userguide/#formProperties

"Form property street will be mapped to Java bean property street in process variable address as a String"

Regards,

Yvo