Yes. You’d create an array of IData objects. Review the API documentation for the IData* classes.
You can use Developer to create the Java service skeleton. Define an output parameter for the service, referencing the TaskSearchQueryTerm document type. Save the service (empty body). Then select Tools | Generate Code. This will create Java code in the clipboard. Paste it to the service body. Edit the code to create the query terms. Be sure to make the array large enough and call IDataFactory.create to create an object in each array position.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods