Creating an array node in a document instance
A document instance that represents an array of objects can store multiple inputs from processes and connectors in the array. In such a document instance, you can insert an array node at a given index or append it at the end. The node value can be a simple data type or a complex object. You can also remove a node from the given index.
Adding or removing an array element returns an updated document instance. Therefore, you must map this action to some document instance. Ideally, you must map the adding and deleting action to a document instance that you have supplied as input.
Example
A user wants to update his home address on an online shopping portal. He also wants to add his office address in his profile, on the same portal. He goes to his profile, updates the existing address, and adds his new office address.
Before you begin
Ensure that you have created a document instance with the following JSON:
For more information, see Creating-a-document-instance.