I am currently using Activiti 5.13 version and trying to create my own expression evaluator which accepts a string expression and DelegateExecution as show below.
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${mybean.evaluate(myExpressionString,execution)}]]>
</conditionExpression>
</sequenceFlow>
class MyBean {
public Boolean evaluate(String expressionString, DelegateExcution execution){
System.out.println(execution.getCurrentActivityId());
return myEvaluator.evaluate(expressionString);
}
}
The method prints out the exclusive gateway id instead of the sequence flow id ( "flow1"). I also have a second sequence flow which printed out the same exclusive gateway id. How do I get hold of the sequence flow id from DelegateExection?Thanks in advance.