Get the Metadata Available to Map to
The response from a GetMetadata request determines the possible mapping options for a policy model which uses that web service connection. The GetMetadata response represents the metadata describing the entire abstract layer. That is:
- Each table can potentially be selected as the Global entity for input or output. For more information, see Select the Root Tables to Map to the Global Entity.
- Each table can potentially accept attachments. For more information, see Accept the Attachment of Files and Forms.
- A table may be linked to many other tables as defined by each link. For more information, see Define Relationships between Tables.
- Each field defines:
- the name as it will appear in Policy Modeling. For more information, see Name Tables, Fields and Links.
- the type of data the field represents. For more information, see Choose the Data Type for Each Field.
- whether the field can be mapped as a data input or output for the interview. For more information, see Select the Tables to Map to Other Entities.
- whether the policy modeler is forced to output map a Policy Modeling attribute to this field. For more information, see Define Which Fields Are Required.
- The response may also indicate that the web service will support checkpoints. For more information, see Support Checkpoints.
A response describing a fictional and very simple abstract layer is provided below:
<get-metadata-response xmlns="http://xmlns.oracle.com/policyautomation/hub/12.2.13/metadata/types">
<Table name="Vehicles" can-be-input="true" can-be-output="false" accepts-attachments="false">
<Link name="Cars" target="Car" cardinality="C_1M"/>
</Table>
<Table name="Car" can-be-input="false" can-be-output="false" accepts-attachments="false">
<Field name="Model" type="STRING" can-be-input="true" can-be-output="false" is-required="false"/>
<Field name="Price" type="DECIMAL" can-be-input="true" can-be-output="false" is-required="false"/>
<Field name="Color" type="STRING" can-be-input="true" can-be-output="false" is-required="false"/>
</Table>
<Table name="Car Request" can-be-input="false" can-be-output="true" accepts-attachments="true">
<Field name="Request ID" type="DECIMAL" can-be-input="true" can-be-output="false" is-required="true"/>
<Field name="Selected Model" type="STRING" can-be-input="false" can-be-output="true" is-required="true"/>
<Field name="Contact Name" type="STRING" can-be-input="false" can-be-output="true" is-required="true"/>
<Link name="Customer's Phone Numbers" target="Customer's Phone Number" cardinality="C_1M"/>
</Table>
<Table name="Customer's Phone Number" can-be-input="false" can-be-output="false" accepts-attachments="false">
<Field name="Phone Number" type="STRING" can-be-input="false" can-be-output="true" ="true" is-required="true"/>
<Field name="Is Preferred Number" type="BOOLEAN" can-be-input="false" can-be-output="true" is-required="true"/>
</Table>
</get-metadata-response>