Hi,I am working on replacing our proprietary engine, which is configured by xml only. There I need a call to a java service. Then the result should be evaluated to continue.I tried the following: 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?I can't figure out how I pass the execution to the service, too(just like with "activiti:class"). How this is done using the expressions?regards, Michael