} else if (currentNode instanceof RuleSetNode) {
testCode +=
" ksession.fireAllRules();\n";
return processNodes(name, ((NodeImpl) currentNode).getTo().getTo(), testCode, cases, ongoingCases);
} else if (currentNode instanceof SubProcessNode) {
SubProcessNode subProcessNode = (SubProcessNode) currentNode;
if (subProcessNode.isWaitForCompletion()) {
testCode +=
" // invoking subprocess " + subProcessNode.getProcessId() + ", if necessary make sure it is completed\n";
}
return processNodes(name, ((NodeImpl) currentNode).getTo().getTo(), testCode, cases, ongoingCases);
} else if (currentNode instanceof FaultNode) {
FaultNode faultNode = (FaultNode) currentNode;
testCode +=