cancel
Showing results for 
Search instead for 
Did you mean: 

conditionExpression

sarramaster
Champ in-the-making
Champ in-the-making
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 .

3 REPLIES 3

sarramaster
Champ in-the-making
Champ in-the-making
In BPMN Diagram:

<sequenceFlow id="flow9" name="validate" sourceRef="exclusivegateway1" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[validated=='true']]></conditionExpression>
    </sequenceFlow>

yahekia
Champ in-the-making
Champ in-the-making
Hello sarraMaster,

I assume that you have a variable called validated, so the condition in the flow should be like:

${validate == "true"}

oochellemeyer
Champ in-the-making
Champ in-the-making
well that was easy. Im just a passer by but your tip actually worked. Thanks! Sorry for intruding. Hehe

gnuf