tobydragon / metafora-project

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

Creating LASAD feedback from XMPP #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to be able to send XMPP messages from outside to create LASAD feedback. 
In CfActionDuringExecution, this will require replacing the call to instantiate 
CreateChatAction with a new class CreateFeedbackAction.

The CASE tool should turn this message into a standard LASAD feedback message 
(see ActionSpecEvent.java) and send to the server.  

The XMPP message might look like the following:

<action time="1349866716497">
  <actiontype type="feedback" classification="create" logged="true" />
  <user id="Toby5" role="originator" />
  <object id="57" type="Afirmación">
    <properties>
      <property name="MAP-ID" value="18" />
    </properties>
  </object>
  <content >
    <description><![CDATA[Do not forget that each box should only contain one idea. Try to use more than one card for your long texts"]]></description>
    <properties>
        <property name="INTERRUPTION_TYPE" value="HIGH_INTERRUPTION" />
        <property name="SENDING_TOOL" value="MMFT"/>
        <property name="RECEIVING_TOOL" value="LASAD_TEST"/>
    </properties>
  </content>
</action>

Original issue reported on code.google.com by tdragon1...@gmail.com on 10 Oct 2012 at 11:28

GoogleCodeExporter commented 9 years ago
Can you write the steps to test sending feedback to LASAD from outside. I 
guess, I have implemented CreateFeedbackAction correctly.

Original comment by almer.bo...@gmail.com on 14 Nov 2012 at 11:38

GoogleCodeExporter commented 9 years ago
Do you have a working xmpp chat tool where you can monitor the xmpp channel? If 
so, you should be able to directly send the appropriate xml message in the 
channel, and should be able to see the feedback created.  An important thing to 
note is that the timestamp must be fairly current on the action (I think the 
default is something like within 5 minutes of current time).

Original comment by tdragon1...@gmail.com on 14 Nov 2012 at 11:52

GoogleCodeExporter commented 9 years ago
I have updated the MonitoringTool project and wanted to send feedback into xmpp 
channel. Toby, as you said, xml structure slightly changed. It lacks map-id 
that is needed to send the feedback to specific map inside LASAD. Here is the 
new structure of an action sent to the command chat room:

<action time="1355302637180">
  <actiontype type="FEEDBACK" classification="create" succeed="UNKOWN" logged="false" />
  <user id="Alan" role="receiver" />
  <object id="0" type="MESSAGE">
    <properties>
      <property name="TEXT" value="Feedback message text" />
      <property name="INTERRUPTION_TYPE" value="no_interruption" />
    </properties>
  </object>
  <content>
    <description />
    <properties>
      <property name="SENDING_TOOL" value="FEEDBACK_CLIENT" />
      <property name="RECEIVING_TOOL" value="Metafora" />
    </properties>
  </content>
</action>

Original comment by almer.bo...@gmail.com on 12 Dec 2012 at 9:02

GoogleCodeExporter commented 9 years ago
A map id is not necessary if the user is currently logged into a map, the Case 
tool will find the current map the user is logged into and add that map id 
before sending the message to the LASAD server. THis behavior is already 
working, so just ensure you join a map with the user to which you want to send 
feedback, and the ID will be added.

Original comment by tdragon1...@gmail.com on 12 Dec 2012 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by tdragon1...@gmail.com on 12 Dec 2012 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by almer.bo...@gmail.com on 22 Jan 2013 at 5:35