AnsweredAssumed Answered

conditionExpression

Question asked by sarramaster on Nov 11, 2013
Latest reply on Nov 14, 2013 by oochellemeyer
Hi,
I 'am beginner in Activiti.I would like to complete a task .So I use  taskService.complete(taskId) but I have this error :
org.activiti.engine.ActivitiException: condition expression returns non-Boolean: validated=='true' (java.lang.String)
   at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:43)
   at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:63)
   at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)
   at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)
   at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:87)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:532)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:527)

In BPMN Diagram:
<sequenceFlow id="flow9" name="validate" sourceRef="exclusivegateway1" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[validated=='true']]></conditionExpression>
    </sequenceFlow>
So how I should correct my conditionExpression ?
Thanks .

Outcomes