08-21-2014 06:12 PM
<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);
}
}
08-25-2014 01:59 AM
while (outgoingSeqFlow == null && transitionIterator.hasNext()) {
PvmTransition seqFlow = transitionIterator.next();
Condition condition = (Condition) seqFlow.getProperty(BpmnParse.PROPERTYNAME_CONDITION);
if ( (condition == null && (defaultSequenceFlow == null || !defaultSequenceFlow.equals(seqFlow.getId())) )
|| (condition != null && condition.evaluate(execution)) ) {
if (log.isDebugEnabled()) {
log.debug("Sequence flow '{}'selected as outgoing sequence flow.", seqFlow.getId());
}
outgoingSeqFlow = seqFlow;
}
}
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.