AnsweredAssumed Answered

Error in getValue from Expression

Question asked by nandoztx on Feb 9, 2012
Latest reply on Feb 29, 2012 by ronald.van.kuijk
Hi everyone!
I have a problem in getValue from Expression attrib in JavaDeletegate implemented class.
When Expression attrib don't has value, so, attrib.getValue(execution) throw an exception like as:
org.activiti.engine.ActivitiException: Unknown property used in expression.

My example:
in service:
private Expression nome;
in bpmn20.xml
<activiti:field name="name" expression="${nome}" />

my application thrown an exception only when my name attrib is empty…
but.. why?
my expression "name" is not empty:


String nameValue = null;
      if(name != null) {
         nameValue = (String) name.getValue(execution);
         person.setName(nameValue);
      }

Thank's in advance!

Outcomes