Advanced usage
Input arrays
An application might require arrays of inputs, whose exact sizes are specified by the user when creating the job. This is supported by GRIA using the minOccurs, maxOccurs and defaultSize attributes on DataStager elements.
For example, if your application took between 2 and 8 images as input, you might use the following XML:
<DataStager type="input" name="inputImage" minOccurs="2" maxOccurs="8" defaultSize="2"> <Description>Input image</Description> <MimeType>image</MimeType></DataStager>
You can use the defaultSize attribute to support older clients that do not know how to specify the desired size of arrays.