Rename Entity Instance IDs to Match Identifying Key Values

When data is submitted for the first time from a Create interview, row IDs for each table (Policy Modeling entity instance) are generated by the interview service. These IDs do not yet correspond with real data, but after the connector has inserted the data into an underlying application, it may be more convenient to specify the IDs that the interview service uses for each entity instance. If a subsequent Save request is sent, the connector can then look up the previously inserted row to update the data. To achieve this, the Save response needs to set the orig-id attribute as the value of the request's id, and the new identifying value in the id attribute for each row.

In the following example, an original id of "global" is converted to an id 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>

If the interview is an Update interview, however, mapped entities which are loaded will have row ids which have already been set by the Load response. If new entities are created during the interview they will have generated row ids based on the corresponding entity name in Policy Modeling.