09-13-2011 04:54 AM
variables.put("ServiceDelegate", new ServiceDelegate());
<serviceTask id="javaService" name="Read voltage"
activiti:expression="#{ServiceDelegate.readVoltage()}"
activiti:resultVariable="voltage">
<extensionElements>
<activiti:field name="serviceName">
<activiti:string>READ_VOLTAGE</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="theTask1">
<conditionExpression xsi:type="tFormalExpression">{voltage == 12.1}</conditionExpression>
</sequenceFlow>
But it says: "condition expression returns non-Boolean". Why? I cannot find a complete reference to the expression language. Could someone please give me a hint?09-13-2011 05:09 AM
09-13-2011 05:19 AM
the expression language used is JUEL which is mentioned in the docs: http://www.activiti.org/userguide/index.html#apiExpressionsOk, yes. Thanks for the answer. From the EE6 spec I cannot answer this questions:
<conditionExpression xsi:type="tFormalExpression">{voltage == 12.1}</conditionExpression>with:org.activiti.engine.ActivitiException: condition expression returns non-Boolean: {voltage == 12.1} (java.lang.String)09-13-2011 06:18 AM
09-13-2011 06:44 AM
…
- correcting the expression so that it is a valid expression that requires some evaluation instead of being interpreted as a string (as the error mentions)
- Tried setting the debug level of activiti to a higher level and see what actually takes place?
option 2 is the solution btw I think.
<activiti:field name="serviceName">
<activiti:string>READ_VOLTAGE</activiti:string>
</activiti:field>in my service?09-15-2011 09:11 AM
09-15-2011 09:24 AM
The execution object should be usable just there. I can't find an example in your posts where I can see the exact expression you are using to try inject the execution…Thank you for your answer. I understand now how to pass the execution object. The "real" question for us is:
09-15-2011 12:17 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.