Create a workflow with two service tasks, one for creating a collection, and the other for adding items to the collection.

For both tasks, one could now specify global workflow parameters as input that might be input parameters for that workflow. However, these would be simple parameter types such as String, as the tasks do not have input parameters of type JSON.