<div dir="ltr">
<p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Hi,</span></p><p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><br></p><p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif">Missed to mention "Subject" in the previous mail. Sending the same again with "Subject"<br></p><p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span></span></span></p>
<p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">It would be great if I get some
support regarding the RPC for reading the slot values of the chunk in the goal
buffer.<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">I have a chunk in the goal buffer
which has 3 slots and values defined for each of the slots.<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Via command line I can read using
(goal-focus) and I get the output<span></span></span></p>
<p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><b><span style="font-size:7pt;color:black">(goal-focus)
NAVIGATION-BEGIN-0
NAVIGATIONSTART "state-1"
NAVIGATIONEND "state-16"
NAVIGATIONCURRENT "state-2"<span></span></span></b></pre>
<p class="MsoNormal" style="margin:0in;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">There are 3 slots and values
(state-1,state-16,state-2) for each of the slots.<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">I was trying to read these values
via RPC in my java application<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Java code:<span></span></span></p>
<pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:navy">static void </span><span style="font-size:7pt;color:black">getGoalFocus() {
<span> </span>JSONArray jsonArray = </span><span style="font-size:7pt;color:navy">new </span><span style="font-size:7pt;color:black">JSONArray();
<span> </span>jsonArray.put(</span><span style="font-size:7pt;color:green">"{</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">method</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">:</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">evaluate</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">,"</span><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><span style="font-size:7pt;color:green">"</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">params</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">:"</span><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><span style="font-size:7pt;color:green">"[</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">goal-focus</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">,</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">cmn</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">],"</span><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><span style="font-size:7pt;color:green">"</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">id</span><span style="font-size:7pt;color:navy">\"</span><span style="font-size:7pt;color:green">:1}"</span><span style="font-size:7pt;color:black">);
<span> </span><i>print</i>(jsonArray.getString(</span><span style="font-size:7pt;color:blue">0</span><span style="font-size:7pt;color:black">)
<span> </span>+ jsonArray.getString(</span><span style="font-size:7pt;color:blue">1</span><span style="font-size:7pt;color:black">) + jsonArray.getString(</span><span style="font-size:7pt;color:blue">2</span><span style="font-size:7pt;color:black">)
<span> </span>+ jsonArray.getString(</span><span style="font-size:7pt;color:blue">3</span><span style="font-size:7pt;color:black">));
}<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span></span></pre>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">But I get only the name of the chunk
in the goal buffer as output shown below<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><br>
</span><b><span style="font-size:7pt;font-family:"Courier New";color:black">{"result":
["NAVIGATION-BEGIN-0"], "error": null, "id": 1}</span></b><b><span style="font-size:12pt;font-family:"Times New Roman",serif"><br>
</span></b><b><span style="font-size:7pt;font-family:"Courier New";color:black">Result:
NAVIGATION-BEGIN-0</span></b><b><span style="font-size:12pt;font-family:"Times New Roman",serif"><span></span></span></b></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">I was trying to read the values of
the slots of the goal buffer also (state-1,state-16,state-2), not only the chunk
name.<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">I tried using the other command buffer-chunk
((buffer-chunk goal)) also but still not getting the slot values in the goal
buffer via RPC (Getting full output via command line but not via RPC).<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif"><span> </span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Command line:<span></span></span></p>
<pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black">1 > (buffer-chunk goal)<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black">GOAL: NAVIGATION-BEGIN-0<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black">NAVIGATION-BEGIN-0<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span>NAVIGATIONSTART<span> </span>"state-1"<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span>NAVIGATIONEND<span> </span>"state-16"<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span>NAVIGATIONCURRENT<span> </span>"state-2"<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span></span></pre>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Java Code:<span></span></span></p>
<pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><b><span style="font-size:7pt;color:navy">static void </span></b><span style="font-size:7pt;color:black">getBufferChunk() {
<span> </span>JSONArray jsonArray = </span><b><span style="font-size:7pt;color:navy">new </span></b><span style="font-size:7pt;color:black">JSONArray();
<span> </span>jsonArray.put(</span><b><span style="font-size:7pt;color:green">"{</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">method</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">:</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">evaluate</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">,"</span></b><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><b><span style="font-size:7pt;color:green">"</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">params</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">:"</span></b><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><b><span style="font-size:7pt;color:green">"[</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">buffer-chunk</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">,</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">goal</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">],"</span></b><span style="font-size:7pt;color:black">);
<span> </span>jsonArray.put(</span><b><span style="font-size:7pt;color:green">"</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">id</span></b><b><span style="font-size:7pt;color:navy">\"</span></b><b><span style="font-size:7pt;color:green">:1}"</span></b><span style="font-size:7pt;color:black">);
<span> </span><i>print</i>(jsonArray.getString(</span><span style="font-size:7pt;color:blue">0</span><span style="font-size:7pt;color:black">)
<span> </span>+ jsonArray.getString(</span><span style="font-size:7pt;color:blue">1</span><span style="font-size:7pt;color:black">) + jsonArray.getString(</span><span style="font-size:7pt;color:blue">2</span><span style="font-size:7pt;color:black">)
<span> </span>+ jsonArray.getString(</span><span style="font-size:7pt;color:blue">3</span><span style="font-size:7pt;color:black">));
}<span></span></span></pre><pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span></span></pre>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Could you please let me know how to
get the values of the slots of the goal buffer via RPC?<span></span></span></p>
<pre style="background:white none repeat scroll 0% 0%;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New""><span style="font-size:7pt;color:black"><span> </span></span></pre>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Thanks & Regards,<span></span></span></p>
<p class="MsoNormal" style="margin:0in;text-align:justify;line-height:normal;font-size:11pt;font-family:"Calibri",sans-serif"><span style="font-size:12pt;font-family:"Times New Roman",serif">Arun<span><br></span></span></p>
</div>