def randomVariable = Math.abs(new Random().nextInt() % 2)
def modes = ["Yes", "No"]
//def userInput = modes[randomVariable]
- // TODO: We
//def modes = metaData['options']
+ if (metaData['options'] != null)
+ modes = metaData['options']
+ else // If it is not named 'options' then it is captured as 'metadata'
+ modes = metaData['metadata']
def userInput = modes[0]
if (enumVariables == 0) {
def ExtractEvents(extractedEvents):
global eventMap
- #extractedEvents.write("while(true) {\n")
- extractedEvents.write("for(int i=0; i<100; i++) {\n")
+ extractedEvents.write("while(true) {\n")
extractedEvents.write("\tdef eventNumber = Verify.getInt(0,%d)\n" % (len(eventMap) - 1))
extractedEvents.write("\tswitch(eventNumber) {\n")
for i in range(len(eventMap)):