The Context is Business Rules in BTP Cloud Foundry environment, expression language 2.0.
I'm trying to check if this service supports a payload where one of the component is an array. I understand that arrays can be passed directly as input. However, what I'm trying to check is support for something like the one below. The vocabulary part of the payload would look like this.
{
"RuleServiceId": "a123f567...",
"RuleServiceVersion": "000001",
"RuleServiceRevision": "000000000000000000",
"Vocabulary": [{
"I_Quote": {
"Header": {
"QuoteId": "789"
},
"Items": [{
"ProductName": "PRD810",
"ProductType": "Service",
"Quantity": 10,
"Value": 2500,
"CustomerRate": 10
}
]
}
}
]
}
The vocabulary structure I_Quote has two components "Header" (structure) and "Items" (table). The service throws an invalid payload error (no specific details offered).
It specifically seems to have a problem with included components of type table. If I remove or rename the "Items" node in the payload, then it accepts the input. This indicates that it has a problem dealing with inner components of table type.
Modifying the service to accept the items array as direct input works without any problems. I'm just trying to see is the mentioned complex type is supported as well...
Is this a known limitation, or am I missing something? Does anyone know? Thanks a lot!
Best Regards,
Arun Prakash