@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final long startTime) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, startTime); }
@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num, final Status status) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, skip, num, status); }
@Override public List<ExecutableFlow> fetchFlowHistory(final String projContain, final String flowContains, final String userNameContains, final int status, final long startTime, final long endTime, final int skip, final int num) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projContain, flowContains, userNameContains, status, startTime, endTime, skip, num); }
@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, skip, num); }
@Test public void fetchFlowHistory() throws Exception { final ExecutableFlow flow = createTestFlow(); this.executionFlowDao.uploadExecutableFlow(flow); final List<ExecutableFlow> flowList1 = this.executionFlowDao.fetchFlowHistory(0, 2); assertThat(flowList1.size()).isEqualTo(1); final List<ExecutableFlow> flowList2 = this.executionFlowDao .fetchFlowHistory(flow.getProjectId(), flow.getId(), 0, 2); assertThat(flowList2.size()).isEqualTo(1); final ExecutableFlow fetchFlow = this.executionFlowDao.fetchExecutableFlow(flow.getExecutionId()); assertTwoFlowSame(flowList1.get(0), flowList2.get(0)); assertTwoFlowSame(flowList1.get(0), fetchFlow); }
@Test public void testAdvancedFilter() throws Exception { createTestProject(); final ExecutableFlow flow = createTestFlow(); this.executionFlowDao.uploadExecutableFlow(flow); final List<ExecutableFlow> flowList1 = this.executionFlowDao .fetchFlowHistory("exectest1", "", "", 0, -1, -1, 0, 16); assertThat(flowList1.size()).isEqualTo(1); final ExecutableFlow fetchFlow = this.executionFlowDao.fetchExecutableFlow(flow.getExecutionId()); assertTwoFlowSame(flowList1.get(0), fetchFlow); }
this.executionFlowDao.uploadExecutableFlow(flow4); final List<ExecutableFlow> flowList = this.executionFlowDao.fetchFlowHistory (flow1.getProjectId(), flow1.getFlowId(), dateUtil.dateStrToLong("2018-09-01 09:00:00")); final List<ExecutableFlow> expected = new ArrayList<>();
@Override public List<ExecutableFlow> fetchFlowHistory(final String projContain, final String flowContains, final String userNameContains, final int status, final long startTime, final long endTime, final int skip, final int num) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projContain, flowContains, userNameContains, status, startTime, endTime, skip, num); }
@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final long startTime) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, startTime); }
@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num, final Status status) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, skip, num, status); }
@Override public List<ExecutableFlow> fetchFlowHistory(final int projectId, final String flowId, final int skip, final int num) throws ExecutorManagerException { return this.executionFlowDao.fetchFlowHistory(projectId, flowId, skip, num); }