@Override
  public SearchResult<String> searchWorkflows(
      String workflowName, String status, int start, int count, List<String> options) {
    return withMetricLogError(
        () ->
            getSearchIds(
                GET_WORKFLOW_INSTANCE_IDS_STATEMENT_TEMPLATE,
                workflowName,
                status,
                start,
                count,
                options),
        "searchWorkflows",
        "Failed searching workflows by workflow name {} with status {}",
        workflowName,
        status);
  }
@Test
  public void searchWorkflowsTest() {
    SearchResult<String> result = dao.searchWorkflows(TEST_WORKFLOW_NAME, "RUNNING", 0, 10, null);
    assertEquals(1, result.getTotalHits());
    assertEquals(TEST_WORKFLOW_ID, result.getResults().get(0));
    result = dao.searchWorkflows(TEST_WORKFLOW_ID, "RUNNING", 1, 10, null);
    assertEquals(0, result.getTotalHits());
  }