12-09-2011 05:02 AM
<userTask id="usertask1" name="Task 1"" activiti:candidateGroups="Group">
<extensionElements>
<activiti:formProperty id="someProperty" name="Some Property" type="boolean" required="true" readable="true" writable="true"></activiti:formProperty>
</extensionElements>
</userTask>
What I would like to do, though, is to initialize the property with a default value in case no variable someProperty has been created in the process context so far.
<userTask id="usertask1" name="Task 1"" activiti:candidateGroups="Group">
<extensionElements>
<activiti:formProperty id="someProperty" name="Some Property" type="boolean" required="true" readable="true" writable="true" expression="${false}"></activiti:formProperty>
</extensionElements>
</userTask>
org.activiti.engine.impl.javax.el.ELException: Cannot set value of a non-lvalue expression 'false'
at org.activiti.engine.impl.juel.AstRightValue.setValue(AstRightValue.java:53)
at org.activiti.engine.impl.juel.AstEval.setValue(AstEval.java:86)
at org.activiti.engine.impl.juel.TreeValueExpression.setValue(TreeValueExpression.java:138)
at org.activiti.engine.impl.delegate.ExpressionSetInvocation.invoke(ExpressionSetInvocation.java:37)
at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
at org.activiti.engine.impl.el.JuelExpression.setValue(JuelExpression.java:69)
… 118 more
Now I thought about adding some kind of default expression that is used to initialize a form property iff the backing variable does not yet exist in the current execution scope.06-23-2014 12:40 PM
02-26-2016 12:31 PM
03-01-2016 03:46 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.