AJO Custom Action - ACC v8 Transactional Message: listObject collection stored as empty collection in ctx
Hi all,
I'm sending an object array (listObject) from an AJO custom action to an ACC v8 transactional message. Simple string fields render fine, but the collection is always empty.
AJO payload config:
"orderItems": {
"toBeMapped": true,
"dataType": "listObject",
"label": "orderItems",
"fields": {
"productName": { "dataType": "string" },
"quantity": { "dataType": "string" }
}
}
Event History always shows:
<ctx>
<customerName>John</customerName>
<orderId>ORD-12345</orderId>
<orderItems-collection/>
</ctx>
In AJO the orderItems field is set as Variable with type listObject, and child fields are mapped using currentItem.productName, currentItem.quantity.
String fields work. The array is collapsed to <orderItems-collection/> — items are never stored.
Already tried: schema with unbound="true" ordered="true", re-publish template, verified AJO.
Questions:
- Is this a known limitation when ACC v8 receives JSON arrays via PushEvent from AJO?
- The compiled schema auto-adds a
@idkey withdefault="Gid()"— could the missing@idin the incoming JSON payload cause this? - Has anyone successfully iterated over a collection in ACC transactional templates when triggered from AJO?
- How to map them?