if (state != null && state.trim().length() > 0) {
Node stateRef = getDiagram().getReferencedNode(state);
if (stateRef instanceof IDOMElement) {
for (Activity activity : registry) {
if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
Transition trans = new IfThenTransition(this, activity, transition);
list.add(trans);
}
}
}
}
state = transition.getAttribute(WebFlowSchemaConstants.ATTR_ELSE);
if (state != null && state.trim().length() > 0) {
Node stateRef = getDiagram().getReferencedNode(state);
if (stateRef instanceof IDOMElement) {
for (Activity activity : registry) {
if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
Transition trans = new IfElseTransition(this, activity, transition);
list.add(trans);
}
}
}
}