Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Advice on accesing External Tool from LAMS


 
Search: 

6: Re: Re: Re: Advice on accesing External Tool from LAMS
In response to 3 11/11/08 06:20 PM
[ Reply | Forward ]
Hi Alicia,

When flash requests the progress information it makes a call to the backend which looks something like:

http://localhost:8080/lams/monitoring/monitoring.do?method=getAllLearnersProgress&lessonID=34

This returns a wddx packet (in the form of xml) that contains the progress information for all the learners that have started the lesson. I've attached a sample wddx packet to this thread (all_learners_progress.xml) so that you can see the structure of the response.

The two methods that will most likely be of interest are:

public String getAllLearnersProgress(Long lessonID, Integer userID)
public LearnerProgress getLearnerProgress(Integer learnerId, Long lessonId)

These are defined in MonitoringService.java under the lams_montoring project. The first one gets the progress for all started learners and second for an individual learner.

The LearnerProgress class is defined under the lams_common project.

Hope this helps!

Daniel

Posted by Daniel Carlier

Attachments:
9: Re: Re: Re: Re: Advice on accesing External Tool from LAMS
In response to 6 11/12/08 12:30 PM
[ Reply | Forward ]
Hi Daniel,

Thanks a lot for this information. You've saved me lot of time going through the code. The sample of xml progress file that you attached is also very handy.


Thanks again! :)

Alicia.

Posted by Alicia Campos

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum