How to find a the prompt for a (podId, rimName)
this example is using podId, rimName:
dddddddd-6004-0040-0000-000000000000, undefined46
from this curnit:
http://www.telscenter.org/confluence/download/attachments/13003/converted-wise-dev.berkeley.edu-19530.jar?version=20
An example student data is stored here:
http://rails.dev.concord.org/sds/3/workgroup/79
The pod xml file refered to here is attached to this page:
POD_dddddddd-6004-0040-0000-000000000000.xml
open pod xml with pod id
find rim object with the rimName you are looking for:
Find rim object definition
look for the following xml pattern:
<object id="Rim0" class="net.sf.sail.core.entity.Rim"> <void property="beanContext"> <object idref="Pod0"/> </void> <void property="name"> <string>undefined46</string> </void> <void property="shape"> <class>java.lang.String</class> </void> </object>
the key thing to search for is a <object class="net.sf.sail.core.entity.Rim">
which has the following sub elements.
<void property="name">
<string>undefined46</string>
</void>
now record the id="Rim0" value
Find the ResponseDeclatation object definition
find the object definition which has a reference to that rim:
<object class="org.telscenter.pas.steps.domain.ResponseDeclaration"> <void property="identifier"> <string>MasterWorkNote(62288):NOTE_RESPONSE_1</string> </void> <void property="rim"> <object idref="Rim0"/> </void> </object>
again search for elements with the right class:
<object class="org.telscenter.pas.steps.domain.ResponseDeclaration">
and have:
<void property="rim"> <object idref="Rim0"/> </void>
with the <object idref="Rim0"/> which matches the rim id from above.
now record the value: MasterWorkNote(62288):NOTE_RESPONSE_1
from
<void property="identifier">
<string>MasterWorkNote(62288):NOTE_RESPONSE_1</string>
</void>
Find the ExtendedTextInteraction object definition
it needs to have the responseIdentifier that matches the string from above
<object class="org.telscenter.pas.steps.domain.ExtendedTextInteraction"> <void property="expectedLines"> <int>6</int> </void> <void property="prompt"> <string><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy, see www.w3.org" /> <title></title> </head> <body> Is it necessary to have multiple models of car crashes, or is one enough? Explain. </body> </html> </string> </void> <void property="responseIdentifier"> <string>MasterWorkNote(62288):NOTE_RESPONSE_3</string> </void> </object>
So finally the value of the <void property="prompt"><string> is the prompt.