Return the Additional Load After Submit Data
A web service connector is responsible for returning the values of the Load after submit fields in the response. These fields typically represent values which are unknown before completion of the interview and provide information about the result of the Save request, such as a calculation result or a reference number. Note that global attributes are currently the only attributes which support Load after submit.
A Save response has:
- A
tableselement containing the list of tables of the response. Eachtableelement has:- a
nameattribute that specifies the name of the table.
- a
- A single
rowelement for the root table. For other tables there may be multiplerowelements. Arowelement has:- For the root table, an
orig-idattribute that holds the original value supplied in the save-request if the id for the instance was changed from the original value. This is so that determination server knows which instance it is. For more information, see Rename Entity Instance IDs to Match Identifying Key Values. - A
fieldelement for each field to be output-mapped from a Policy Modeling attribute. Eachfieldelement has:- a
nameattribute for each field selected to be output-mapped to one or more Policy Modeling attributes. - the returned value
- a
- For the root table, an
The following is an example of a Save response where the Load after submit 'Request ID' field is returned with a value of 3:
<save-response xmlns="http://xmlns.oracle.com/policyautomation/hub/12.2.13/metadata/types">
<tables>
<table name="Car Request">
<row orig-id="global" id="3">
<field name="Request ID">
<number-val>3</number-val>
</field>
</row>
</table>
</tables>
</save-response>
Note that if a Save request includes a table with no output-field elements, then the Save response can exclude the table. This exclusion will not cause problems because the row IDs are not important to update from the connector’s perspective if they are not used. The interview service will send the same generated ID through on subsequent submits as the response did not request them to change.