AnsweredAssumed Answered

Expression variable names in delegates

Question asked by afshad on Feb 29, 2012
Latest reply on Mar 3, 2012 by afshad
Why is it that the Expression variable names in the delegates have to be exactly the same as in the xml?
The user guide just shows how the delegate is supposed to look like but does not explain why or anything.

for example:
public class HelloWorldDelegate implements JavaDelegate {
    private Expression personName;
    public void execute(DelegateExecution execution) {
        String nameValue = (String)personName.getValue(execution);
    }
}

xml:
        <activiti:field name="personName">
          <activiti:string>Activiti User</activiti:string>
        </activiti:field>

Outcomes