AnsweredAssumed Answered

write and read a variable from an object

Question asked by tomi87 on Feb 1, 2013
Latest reply on Feb 21, 2013 by frederikheremans1
I don't know why it's doesn't work, to write the variable in the object and then to read it.

   <userTask id="chooseAddName" name="Choose add Name" activiti:candidateGroups="st">
            <activiti:formProperty id="addName" name="Add name" expression="#{stAppInfo.addName}" required="true" />

I test it with this input:

StAppInfo stInfo= new StAppInfo ();
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("stAppInfo ", stInfo);
variables.put("addName", "Bernd Hauch");

If I ask which addName is inside it gives me null:
assertEquals("Bernd Hauch", stInfo.getAddName());