[获取REST适配器返回值]v_3.1
<p><strong>方法签名:</strong> </p>
<p><code>getRestResult(document)</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取REST适配器返回值</li>
<li>REST会尝试将返回值转换成为Document对象,如果返回值不符合Document对象格式,那么就需要使用该方法来获取返回值</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">document</td>
<td style="text-align: left;">com.seeyon.v3x.dee.Document</td>
<td style="text-align: left;">当前DEE任务的Document对象,脚本中已经内置该参数,一般不需要改变</td>
</tr>
</tbody>
</table>
<p><strong>返回值说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Object</td>
<td style="text-align: left;">REST适配器返回值</td>
</tr>
</tbody>
</table>
<p><strong>使用例子</strong></p>
<pre><code>getRestResult(document);//直接获取REST适配器返回值
</code></pre>
<p><strong>输出结果</strong></p>
<pre><code></code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>无</li>
</ul>