cancel
Showing results for 
Search instead for 
Did you mean: 

Optional Properties in Task Forms

mtkunze
Champ in-the-making
Champ in-the-making
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>
</textarea>

JUEL documentation didn't give me any help here.

Btw: using …
test="#{MyVariable}"…
give me a: syntax error at position 327, encountered '#{', expected '${',

using
<c:when …
also does not change anything.

Suggestions? Thanks in advance.
1 REPLY 1

tombaeyens
Champ in-the-making
Champ in-the-making