11 object(Moodle,"Moodle:LMS");
13 object(Mahara,"Mahara:PLE");
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();
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();
36 message(Moodle,A,"*provide course");step();
37 inactive(Moodle);step();
40 begin_frame(Moodle,F,"send status");
42 message(Moodle,ECS,"POST:cc/member_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/member_status/<id>"); active(Mahara); active(ECS); step(); inactive(ECS);
45 message(Mahara,Mahara,"update status"); inactive(Mahara); step();
48 # Complete the lifelines