How to find the prompt of a Note rim

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>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta name=&quot;generator&quot; content=&quot;HTML Tidy, see www.w3.org&quot; /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
Is it necessary to have multiple models of car crashes, or is one
enough? Explain.
&lt;/body&gt;
&lt;/html&gt;

</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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.