There are some restrictions on the use of the batch stereotype:
- There may be only one operation in a process class that uses the batch stereotype.
- The operation may take only one parameter which must be a struct.
- The struct parameter must be "flat". i.e. it must not aggregate any other structs.
- The operation return type should be void. Non-void return types are ignored i.e. treated as void.