Hi all,
I need to know if it is possible to pass more than one value to the input when doing a post request call to the DMN. For example, I have a screen as an input and the value for the screen is let say screen1 and screen 2 and they each have different output. So I am trying to send the request body as
> {
> "variables":{
> "Screen":{"value":"Screen1","type":"String"},
> "Screen":{"value":"Screen2","type":"String"}
> }
>
> }
So is there a way to send the Screen1 and Screen2 in the same Screen object.
Thanks in Advance
@Kishan_R you have to pass it as list object.
@aravindhrs
Can you please share some example of them in DMN table.
Thanks
@Kishan_R refer the below post,
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 valu…
Json value is the variable that is updated in each iteration of the multi-instance. Look at the BPMN files and see the listeners on the multi-instance.
Values is just a generic property name i used within the json. Each object result of the mulit-instance integration is added into the json in the “values” property’s array.
combined result is a json variable that is updated on each iteration. See the listeners as discussed above.
See the DMN file and the dmn_output variable. It is …