Return value rules

The following rules apply to return values:

  • When only one return value is selected in the importer, and that value is a primitive type (for example, int) or a string. That value is returned without any other syntax. This simplifies mapping, since that value does not require further parsing.
  • When more than one value is returned then the values are decorated with XML tags (as in the above example). To parse this generally requires passing it to another map through a RUN function call.
  • When an object is returned it will always be decorated with XML tags. Its public fields are output, and a unique object reference is returned as an attribute so that this object may be used in subsequent cards.
  • When in the importer the user opted to return the public fields of the object corresponding to the card (the top-level object), then these are returned in the this group of the return values.