cancel
Showing results for 
Search instead for 
Did you mean: 

Reset form values

b_schnarr
Champ in-the-making
Champ in-the-making
Hello at all,

I have a simple use case but I do not succeed in getting it work:

How can I reset a string form value using the expression form property? I have a string form variable named "nope". I tried to use ${execution.setVariable('nope', '')} in the Expression property but I get the following error: Cannot set value of a non-lvalue expression 'execution.setVariable('nope', '')'

Thanks and best regards
Ben
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Ben,

I tried the java API call in the jUnit test. The test has passed. Could you create jUnit test with your process definition please? (http://forums.activiti.org/content/sticky-how-write-unit-test)

Regards
Martin

b_schnarr
Champ in-the-making
Champ in-the-making
When executing this in a Skript Task, it works fine. When trying to execute this in the "Expression"-field of a form property, this error occurs. I solved it by using a skript task.

Thanks for verifying and best regards
Ben