import "flowchartutil.eol"; | |
context Decision { | |
constraint X { | |
check : self.outgoing.size() >= 2 | |
message : "Decisions must have at least two outgoing transitions" | |
fix { | |
title : "Add missing transitions" | |
do { | |
for (i in 1.to(2 - self.outgoing.size())) { | |
self.createTransitionTo("t" + i, "a" + i); | |
} | |
} | |
} | |
} | |
} |