Configure the updater extension file
The REST endpoint generator automatically adds the following updaters to claim_ext-1.0.updater.json file:
- Incident
description
lossParty
severity
valueResolver
- Risk unit
RUnumber
description
- Damageable
- (none)
Configuring the incident
This is the syntax for a foreign key from a custom incident to a custom damageable.
This updater is more complex than normal because it must provide information for two cases:
- The foreign key from incident to damageable (where it is possible to create a
new damageable)
- This case makes use of the
create
andupdaterRef
attributes.
- This case makes use of the
- The foreign key from risk unit to damageable (where you must resolve to
damageable on the policy)
- This case makes use of the
valueResolver
attribute.
- This case makes use of the
For example, suppose you have a custom incident named
TowableIncident_Ext
that has a foreign key field to
Towable_Ext
. The updater property for the foreign key would
be:
If the incident has additional business fields you wish to make writeable, you must add them to the file manually. For most fields, you can find information on how to add them to a schema in Endpoint architecture.
Configuring the risk unit
This is the syntax for a foreign key from a custom risk unit to a custom damageable.
For example, suppose you have a custom risk unit named TowableRU_Ext
that has a foreign key field to Towable_Ext
. The updater property
for the foreign key would be:
If the risk unit has additional business fields you wish to make writeable, you must add them to the file manually. For most fields, you can find information on how to add them to a schema in Endpoint architecture.
Configuring the damageable
All fields in the damageable updater must be added manually.
An entity's DisplayName
field is not writeable. Therefore, there is
no need to provide an updater for the damageable's displayName
field.
As an example of a damageable updater, suppose you have a custom damageable named
Towable_Ext
that has the following writeable fields:
PolicyTowable
LicensePlate
(a business field)
The updater for the damageable would be: