Fixed typo.
[kic.git] / subsequent_enrolment_status_seq.pic
blob4cbc87e9e1acbe026c6e018ed5554c0d5063bd3b
1 .PS
2 copy "sequence.pic";
4 movewid = 1;
5 maxpsht = 15;
6 maxpswid = 15;
7 spacing = 0.2;
9 # Define objects
11 object(Moodle,"Moodle:LMS");
12 object(ECS,":ECS");
13 object(Mahara,"Mahara:PLE");
14 actor(A,"");
15 step();step();
17 # Message sequences
19 begin_frame(Moodle,F,"consume courselink");
20   message(A,Mahara,"click courselink"); active(Mahara);step(); inactive(Mahara);
21   message(Mahara,ECS,"hash:=POST:sys/auths");active(Mahara);active(ECS);step();inactive(Mahara);inactive(ECS);
22   message(A,Moodle,"redirect(params)"); active(Moodle);step();
23   message(Moodle,ECS,"auth:=DELETE:sys/auths/<hash>");active(ECS);step();inactive(ECS);
24   message(Moodle,Moodle,"check auth token"); step();
25   message(Moodle,Moodle,"check security hash"); step();
26   active(Moodle);
27     message(Moodle,A,"*provide course");step();
28   inactive(Moodle);step();
29 end_frame(A,F);
30 step();
31 begin_frame(Moodle,F,"send status");
32   step();
33   #
34   message(Moodle,ECS,"POST:cc/enrolment_status");
35   comment(ECS,C1,down 0.5 left 0.3, wid 1.8 ht .5 "we always POST here" "because we DELETE" "there (nonpersistent)");
36   active(ECS); step(); inactive(ECS); inactive(Moodle);
37   #
38   message(Mahara,ECS,"*POST:sys/events/fifo"); active(Mahara); active(ECS); step(); inactive(Mahara); inactive(ECS);
39   #
40   message(Mahara,ECS,"DELETE:cc/enrolement_status/<id>");
41   connect_to_comment(ECS,C1);
42   active(Mahara); active(ECS); step(); inactive(ECS);
43   #
44   message(Mahara,Mahara,"update status"); inactive(Mahara); step();
45 end_frame(A,F);
47 # Complete the lifelines
49 complete(Moodle);
50 complete(ECS);
51 complete(Mahara);
52 complete(A);
53 .PE