Fixed typo.
[kic.git] / enrolment_status_seq.pic
blob3f5a9696c0760ef3a1e8537edeb924ddb8c504ab
2 .PS
3 copy "sequence.pic";
5 movewid = 1;
6 maxpsht = 15;
7 maxpswid = 15;
8 spacing = 0.2;
10 # 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,"create courselink");
20   message(Moodle,ECS,"POST:cc/courselinks"); active(Moodle); active(ECS); step(); inactive(Moodle); inactive(ECS);
21   message(Mahara,ECS,"*POST:sys/events/fifo"); active(Mahara); active(ECS); step(); inactive(Mahara); inactive(ECS);
22   message(Mahara,ECS,"GET:cc/courselinks/<id>"); active(Mahara); active(ECS); step(); inactive(ECS);
23   message(Mahara,Mahara,"create courselinks"); inactive(Mahara); step();
24 end_frame(A,F);
25 step();
26 begin_frame(Moodle,F,"consume courselink");
27   message(A,Mahara,"click courselink"); active(Mahara);step(); inactive(Mahara);
28   message(Mahara,ECS,"hash:=POST:sys/auths");active(Mahara);active(ECS);step();inactive(Mahara);inactive(ECS);
29   message(A,Moodle,"redirect(params)"); active(Moodle);step();
30   message(Moodle,ECS,"auth:=DELETE:sys/auths/<hash>");active(ECS);step();inactive(ECS);
31   message(Moodle,Moodle,"check auth token"); step();
32   message(Moodle,Moodle,"check security hash");
33   message(A,Moodle,"confirm enrolment to course"); step();
34   message(Moodle,Moodle,"enrole user to course"); step();
35   active(Moodle);
36     message(Moodle,A,"*provide course");step();
37   inactive(Moodle);step();
38 end_frame(A,F);
39 step();
40 begin_frame(Moodle,F,"send status");
41   step();
42   message(Moodle,ECS,"POST:cc/enrolment_status"); active(ECS); step(); inactive(ECS); inactive(Moodle);
43   message(Mahara,ECS,"*POST:sys/events/fifo"); active(Mahara); active(ECS); step(); inactive(Mahara); inactive(ECS);
44   message(Mahara,ECS,"DELETE:cc/enrolement_status/<id>"); active(Mahara); active(ECS); step(); inactive(ECS);
45   message(Mahara,Mahara,"update status"); inactive(Mahara); step();
46 end_frame(A,F);
48 # Complete the lifelines
50 complete(Moodle);
51 complete(ECS);
52 complete(Mahara);
53 complete(A);
54 .PE