AnsweredAssumed Answered

Optional Properties in Task Forms

Question asked by mtkunze on Nov 10, 2010
Latest reply on Nov 17, 2010 by tombaeyens
Hi there,

I'd like to have task forms that show properties if they have been defined before, or simply empty values if not. Background is, due to some control flow constructs, some properties may already exist when the task is executed.

Currently, the custom JUEL resolver (org.activiti.engine.impl.juel.RootPropertyResolver#getValue()) throws a PropertyNotFound exception. While this certainly makes sense, I am looking for a way to ask in a form, whether a property exists and if so, make use of its value, e.g.:

<textarea name="MyVariable" cols="100" rows="5" >
  <c:if test="${exists MyVariable}">${MyVariable}</c:if>

JUEL documentation didn't give me any help here.

Btw: using …
give me a: syntax error at position 327, encountered '#{', expected '${',

<c:when …
also does not change anything.

Suggestions? Thanks in advance.