Changed subsequent enrolment status sequence.
[kic.git] / enrolment_status_seq.pic
blob9f357d75360fc065b7565d14014af0fcb2b9a322
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(A,Moodle,"redirect"); active(Moodle);step();
29 message(Moodle,ECS,"auth:=DELETE:sys/auths/<hash>");active(ECS)step();inactive(ECS);
30 message(Moodle,Moodle,"check auth token"); step();
31 message(Moodle,Moodle,"check security hash");
32 message(A,Moodle,"confirm enrolment to course"); step();
33 message(Moodle,Moodle,"enrole user to course"); step();
34 end_frame(A,F);
35 step();
36 begin_frame(Moodle,F,"create enrolm. stat.");
37 step();
38 message(Moodle,ECS,"POST:cc/enrolment_status"); active(ECS); step(); inactive(ECS); inactive(Moodle);
39 message(Mahara,ECS,"*POST:sys/events/fifo"); active(Mahara); active(ECS); step(); inactive(Mahara); inactive(ECS);
40 message(Mahara,ECS,"DELETE:cc/enrolement_status/<id>"); active(Mahara); active(ECS); step(); inactive(ECS);
41 message(Mahara,Mahara,"update status"); inactive(Mahara); step();
42 end_frame(A,F);
44 # Complete the lifelines
46 complete(Moodle);
47 complete(ECS);
48 complete(Mahara);
49 complete(A);
50 .PE