Command Rules for the Parent/Child Element
One example of the operation ParticipantRequest
is described in the Command Rule Example for the Parent/Child Element, where the Parent element UPDATEParticipantREQ
is highlighted in Italic, and the children (or grand children) are highlighted in Bold.
Command Rule Example for the Parent/Child Element
<UPDATEParticipantREQ>
<Participant name=”partner1” type=”Partner”>
<Locations>
<Location name=”loc1” addr1=”newaddr” />
<Contacts>
<Contact name=”Mark” command=”INSERT”
/>
<Contact name=”Mary” command=”DELETE”
/>
<Contact name=”John” />
</Contacts>
</Location>
<Locations>
</Participant>
</UPDATEParticipantREQ>
Rules that follow the commands performed on the Parent and Child elements are described in Command Rules for the Parent/Child Element.
Commands |
INSERT |
UPSERT |
UPDATE |
DELETE |
Commands on Parent Element |
|
|
|
|
INSERT |
Only this operation is allowed when the parent or root element are executing the |
Not allowed for children when the parent executes the |
Not allowed for children when the parent executes the |
Not allowed for children when the parent executes the |
UPSERT |
Allowed. Inserting a child element adds the contents specified while the parent is executing the |
Allowed. |
Allowed. |
Allowed. |
UPDATE |
Allowed. Inserting a child element adds the contents specified while the parent is executing an
|
Allowed. |
Allowed. |
Allowed. |
DELETE |
Not recommended for the category children when the parent does the |
Not recommended for the category children when the parent does the |
Not recommended for children when the parent does the |
Allowed |