Hi,
Query 1 -
You need to create a collection and add objects in it. You can use java script or Free marker to store data in collection.
To create collection GoTo--> Project--> New--> Collection
In order to push data into collection using free marker. Use.Use below code -
<#assign my_object>
{
"location": [{"latitude":"45.123","longitude":"47.232"}],
"cars": [
{"model": "Bentley","year":"1973","value":"100000"},{"model":"Rolls Royce","year":"1965","value":"330000"}
]
}
</#assign>
${save_object(my_object,"collection_name")}
where my_object is a JSON object.
Query 2 -
Yes, you can get process variable in Reports. You need to add a custom measure in the process "Measures" tab for each variable you want to see in report. In Reports you can select respective column to see all records.
Please refer screenshot for better understanding.
Hope this helps you.
Thanks,
Sweta