The SearchScope component is used to restrict the set of instances that are returned in a filter (see InstanceFilter). To do this, you must set the statusScope attribute to filter by process instance status and the participantScope attribute to filter by participant roles.
Refer to InstanceFilter for examples.