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">
<extensionElements>
<activiti:formProperty id="addName" name="Add name" expression="#{stAppInfo.addName}" required="true" />
</extensionElements>
</userTask>
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());Why?