3 task Startup(StartupObject s {initialstate}){
5 Test o = new Test() {A};
7 taskexit(s {!initialstate});
13 System.printString("Inside ONE\n");
14 int i = 100/o.getNumber();
19 task TWO(optional Test o{B}){
20 System.printString("Inside TWO\n");
21 if(false) taskexit(o {!B, C});
22 else taskexit(o {!B, D});
26 /*task THREE(Test o{B}){
32 System.printString("Inside FOUR\n");
38 task FIVE(optional Test o{D}){
39 System.printString("Inside FIVE\n");
45 System.printString("Inside SIX\n");
46 taskexit(o {!E, G, J});
50 task SEVEN(optional Test o{F}){
51 System.printString("Inside SEVEN\n");
52 taskexit(o {!F, G, K});
56 task EIGHT(optional Test o{G}){
57 System.printString("Inside EIGHT\n");
59 if(false) taskexit(o {!G, H});
60 else taskexit(o {!G, I});
64 task NINE(optional Test o{H}){
65 System.printString("Inside NINE\n");
68 task TEN(optional Test o{I}){
69 System.printString("Inside TEN\n");
70 if(true) taskexit(o {!I,L });
71 else taskexit(o {!I,M });