resourceType for a filter

Hello
What are the available values for the attribute resourceType when you are creating a filter with the REST API?
How can be created a filter for process instances?

Thanks in advance

@jaxx Filter is applicable only for the entity type/resource type was Task. Filters can’t be applied for process instances.

public FilterDto createFilter(FilterDto filterDto) {
    FilterService filterService = getProcessEngine().getFilterService();

    String resourceType = filterDto.getResourceType();

    Filter filter;

    if (EntityTypes.TASK.equals(resourceType)) {
      filter = filterService.newTaskFilter();
    }else {
      throw new InvalidRequestException(Response.Status.BAD_REQUEST, "Unable to create filter with invalid resource type '" + resourceType + "'");
    }

If resourceType is other than Task, then exception will be thrown.

public ProcessEngineException unsupportedResourceTypeException(String type) {
    return new ProcessEngineException(exceptionMessage("039", "Unsupported resource type '{}'", type));
}

Refer this rest api example: Create Filter | docs.camunda.org