return (Fork) getNode();
}
public void execute(NodeInstance from, String type) {
Collection<String> transitionNames = null;
Script script = getFork().getScript();
if (script == null) {
transitionNames = getNode().getOutgoingConnections().keySet();
} else {
Map<String, Object> outputMap = null;
try {
outputMap = script.eval(new JpdlExecutionContext());
} catch (Exception e) {
this.raiseException(e);
}
if (outputMap.size() == 1) {
Object result = outputMap.values().iterator().next();