tobydragon / metafora-project

Automatically exported from code.google.com/p/metafora-project
1 stars 0 forks source link

Make Feedback Tool receive new xml #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An XMPP message is sent to the MMFT server (an example included below).  THe 
server must should parse the message, and save the specific XML included in the 
description tag (as a string) in a map with the user's name.

Then, the client should have a new method (much like the "refresh" method of 
the monitoring tool, that when called, checks the user requesting the XML and 
sends the appropriate XML.

The client will need a button to request the update, and then should receive 
the xml and update the feedback options with the new xml received. 

Original issue reported on code.google.com by tdragon1...@gmail.com on 28 Jan 2013 at 1:05

GoogleCodeExporter commented 9 years ago
This idea of the client having a button to press is a temporary fix, due to the 
fact that right now, there is no push technology in this tool, only pull. So, 
there is no way for a server to send a message to the clients. Instead, it must 
wait for a request.

We can talk through work-arounds, like perhaps adding push technology, but for 
now, it would be good to get things working as they are.

Original comment by tdragon1...@gmail.com on 28 Jan 2013 at 1:07

GoogleCodeExporter commented 9 years ago
The buttons will be in the "XML" tab, ('repopulate', 'send', 'update').

Original comment by almer.bo...@gmail.com on 28 Jan 2013 at 1:24

GoogleCodeExporter commented 9 years ago
Example XML, you can see the xml string for the tool is wrapped in the CDATA 
for the description:

<action time="1359369976465">
    <actiontype type="SUGGESTED_MESSAGES" classification="create" logged="false"/>
    <user id="Manolis" role="receiver"/>
    <user id="Toby" role="receiver"/>
    <content>
        <description> <![CDATA[ 
            <suggestions>
                <messages>
                    <set id="Planning">
                        <message style= "bold">Does your work on the challenge match your plan? If not consider revising the plan to show what you have done.</message>
                        <message style= "bold">Do you need to revise/adjust your plan?</message>
                        <message> Your plan seems to be splitting in different directions. Consider eventually bringing your outcomes together</message>
                    <set id="Collaboration">
                        <message>Are you having difficulties?  Do you need to ask for help from others or from the teacher?</message>
                    </set>
                    <set id="Discussion">
                        <message>Please use the drop-down menus on LASAD contributions to clarify your entries.</message>
                        <message style= "bold">Consider contributing to the LASAD discussion / chat</message>
                        <message>Consider contributing to your group  chat</message>
                        <message>Do not forget that each box should only contain one idea. Try to use more than one card for your long texts</message>
                    </set>
                    <set id="Building">
                        <message>Are you having difficulties? X  model is quite similar so you may want to ask for help?</message>
                        <message>Have you finished? Consider sharing your model with others</message>
                    </set>
                    <set id="Reflecting">
                        <message>Don't forget to reflect on your plan.</message>
                    </set>
                </messages>
            </suggestions>
            ]]> </description>
        <properties>
            <property name="SENDING_TOOL" value="FEEDBACK_CLIENT"/>
            <property name="RECEIVING_TOOL" value="METAFORA_TEST"/>
        </properties>
    </content>
</action>

Original comment by tdragon1...@gmail.com on 28 Jan 2013 at 3:04

GoogleCodeExporter commented 9 years ago

Original comment by almer.bo...@gmail.com on 4 Feb 2013 at 1:44

GoogleCodeExporter commented 9 years ago
I wanted to start with sending an xml message directly to the monitoring tool 
through an xmpp channel. Do the processing and then add processing on the 
server side. As far as I remember, the monitoring tool should listen to 
analysis chat room, not the command_room. I tried to find a piece of code in 
which incoming messages are processed.
Here is what I have found so far:
CfXmppCommunicationBridge.processNewMessage() - is supposed to delegate an 
incoming message to an appropriate agent. But the only agent that is found is 
HistoryRequester that does not process this kind of messages.
Could you forward me some samples on how to process, or where to include my 
processing?

Original comment by almer.bo...@gmail.com on 6 Feb 2013 at 3:33

GoogleCodeExporter commented 9 years ago
Currently the situation is like this:
Monitoring tool can send xml messages like in comment #3 and stores it in the 
map (user, messagesXML).

How to implement the client receiving this messages? He clicks 'Refresh' 
button, how do stored messages arrive to him?

Original comment by almer.bo...@gmail.com on 15 Feb 2013 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by almer.bo...@gmail.com on 27 Feb 2013 at 5:16