<array>
An array defines a set of additional entities of the same type to associate with the main entity. For example, a Policy entity includes an array of Document entities.
Attributes of <array>
The <array> element contains the following attributes:
|
Description |
Default |
|---|---|---|
|
Required. The name of the entity that makes up the array. |
None |
|
Optional. Name of the field in the array table that is the foreign key back to this table. However, you do not need to define a value if the array entity has exactly one foreign key back to this entity. Note that even if you define only one foreign key explicitly, additional foreign keys may be created implicitly. For example, |
None |
|
If the cascadeDelete attribute is Important: Whether the cascadeDelete attribute is
true or false, if the
entity containing the array is not retireable, deleting an
instance of that entity also deletes the objects inside the
array. This behavior occurs even if the array objects themselves
are retireable in order to preserve the array objects'
referential integrity. For this reason, Guidewire recommends
that you avoid placing an array of retireable objects inside an
entity that is not retireable. |
|
|
If If you deprecate an item, use the description to explain why. See Data entity subelements for more information. |
|
|
A description of the purpose and use of the array. |
None |
|
Unused. |
|
|
See Data objects and scriptability for information. |
|
|
This attribute has complex, non-intuitive interactions with data entity relationships. See Interactions of ignoreForEvents attribute with data entity relationships for information on how to use and configure it. |
|
|
Required. The name of the property corresponding to this array. |
None |
|
If
Important: Whether the
owner attribute is
true or false, if the
entity containing the array is not retireable, deleting an
instance of that entity also deletes the objects inside the
array. This behavior occurs even if the array objects
themselves are retireable in order to preserve the array
objects' referential integrity. For this reason, Guidewire
recommends that you avoid placing an array of retireable
objects inside an entity that is not retireable.Note: The owner attribute must have a value of
true if the
corresponding array permits concurrent changes to its
values. PolicyCenter applies
an optimistic locking approach for concurrent changes to
array values. A true value for the
owner attribute results in PolicyCenter notifying the array of
concurrent changes or additions to the array children. The
notification is in the form of a concurrent data change
exception (CDCE) in the user interface. |
|
|
One of the following values
|
None |
|
See Data objects and scriptability for information. |
|
|
Whether changes to the entity pointed to by this array trigger validation. Changes to the array that trigger validation include:
See the discussion of this attribute that follows this table. |
|
If set to true, the triggersValidation attribute
can trigger additional PolicyCenter processing.
Exactly what happens depends on several different factors:
- If the parent entity for the array is validatable, any modification to the array
triggers the execution of the Preupdate and Validation rules on the parent
entity. Validation occurs whenever PolicyCenter
attempts to commit a bundle that contains the parent entity. For an entity to be
validatable, it must implement the
Validatabledelegate. - If the parent entity has preupdate rules, but no validation rules, then PolicyCenter executes the preupdate rules on the commit
bundle. This is the case only if configuration parameter
UseOldStylePreUpdate is set to
true, which is the default. IfUseOldStylePreUpdateis set tofalse, PolicyCenter invokes theIPreUpdateHandlerplugin on the commit bundle instead. Then, PolicyCenter executes the logic defined in the plugin on the commit bundle. - If the parent entity has validation rules, but no preupdate rules, then PolicyCenter executes the validation rules on the commit bundle.
- If the parent entity has neither preupdate nor validation rules then the following occurs:
- In the case of
UseOldStylePreUpdate=true, PolicyCenter does nothing. - In the case of
UseOldStylePreUpdate=false, PolicyCenter calls theIPreUpdateHandlerplugin on the commit bundle.
Subelements of <array>
The <array> element contains the following subelements:
|
Description |
|---|---|
|
This subelement contains the following attributes:
It also contains the following subelements of its own, each of which can exist, at most, one time:
See Typelist mapping associative arrays for more information. |
|
See <fulldescription>. |
|
This subelement contains the following attributes:
It also contains the following subelements of its own, each of which can exist, at most, one time:
See Subtype mapping associative arrays for more information. |
|
See <tag>. |
