How to write dynamic query in bonita studio bdm?

I have five filter fields in my application home page (dashboard -> where I am showing all the records from h2 DB) now I want to filter the records on these fields basis.
It may require 31 (2^5 -1) queries, some are already provided as default queries.

Isn't there a way to write a dynamic query in "custom queries" or somewhere to get the desired result at UI?

Easy way to save multiple documents to Alfresco

Is there an easy way to save multiple documents from Bonita to Alfresco dynamically?
I have found some instructions in the following link, but it didn't work for me.

[RESOLVED] Dynamic destination folder for Alfresco connector

How can I make a dynamic destination folder for Alfresco connector, so that the path is not always the same?
For example, I need to make a new folder in Alfresco whenever the process is started so that the documents for the process would be saved as in tree hierarchy as in /User%20Homes/BPM/Process1, /User%20Homes/BPM/Process2 etc.

Group that can be duplicated, dynamically

My client requirement is that, after selecting an item on a Select list, he can upload files and descriptions according to that selected item. The idea is to dynamically populate a group that can be duplicated, with the requested data. But as I've seen on Bonita, it doesn't seem possible to dynamically change the amount of group items. How can I achieve this? And, is there any way to consume a REST service from Bonita? Thanks.

Also, I can't find anything useful about Iterate (a practical example) on the documentation, is there any example of this?