@Service
    public SearchResult<WorkflowSummary> searchWorkflows(int start, int size, String sort, String freeText, String query) {
        return executionService.search(query, freeText, start, size, ServiceUtils.convertStringToList(sort));
    }
@ Service public SearchResult < WorkflowSummary > searchWorkflows ( int start , int size , String sort , String freeText , String query ) { return executionService . search ( query , freeText , start , size , ServiceUtils . convertStringToList ( sort ) ) ; }
Search for workflows based on payload and given parameters. Use sort options as sort ASCor DESC
e.g. sort=name or sort=workflowId:DESC. If order is not specified, defaults to ASC.

@param start    Start index of pagination
@param size     Number of entries
@param sort     Sorting type ASC|DESC
@param freeText Text you want to search
@param query    Query you want to search
@return instance of {@link SearchResult}