// ActionNodes should have just one out transition
checkSingleOutgoingTransition(node);
ActivityEdge edge = node.getOutgoing(null);
ActivityNode target = edge.getTarget();
ActionDecorator actionDec = null;
try {
actionDec = (ActionDecorator) translator.getDecoratorsFactory().getDecorator(node);
} catch (InvalidContextException e) {
throw new TranslationException(this, "Unable to visit node \"" + node.getQualifiedName() + "\"", e);
} catch (ClassNotFoundException e) {
throw new TranslationException(this, "Unable to visit node \"" + node.getQualifiedName() + "\"", e);
}
double outProb = 1d;
double negProb = 0d;
PaStepStub stub = actionDec.getPaStepStub();
if (stub == null) {
throw new TranslationException(this, "Unable to visit node \"" + node.getQualifiedName() + "\" : no PaStep stereotype associated.");
}
outProb = stub.getProb();