Lists custom states.
The cursor to resume iteration from, otherwise if not provided, then iteration starts from the beginning.
Whether only final states should be filtered.
The maximum number of items.
The list of state names.
The list of state ordinals.
The list of fields to sort the items by and how to sort them.
The custom states.
The cursor to resume iteration from, otherwise if not provided, then iteration starts from the beginning.