Hi Tarun,
You could submit a variable as a JSON list. In the DMN decision, you then have to use it like a SpinJsonNode that represents a JSON array instead of a single value. For example, in the input expression, you could extract a value from the list.
The request body for sending a JSON serialized list would be
{
"variables" : {
"invoiceCategories": {
"value" : "[{\"key\":\"val\"}, {\"key\":\"val\"}]",
"type" : "json",
"valueInfo" : {}
}
}
}
Note that the value must be an escaped JSON String.
For some background reading:
- Camunda Spin reference documentation
- Documentation on how Camunda Spin integrates with the process engine
Cheers,
Thorben