public void checkWorkflows(String defId, String... expectedIds) { List<WorkflowInstance> workflows = workflowService.getWorkflows(defId); checkWorkflows(workflows, expectedIds); }
workflows = workflowService.getCompletedWorkflows(fakeDefId); assertTrue(workflows.isEmpty()); workflows = workflowService.getWorkflows(fakeDefId); assertTrue(workflows.isEmpty()); workflows = workflowService.getCompletedWorkflows(defId); assertTrue(workflows.isEmpty()); workflows = workflowService.getWorkflows(defId); assertTrue(workflows.isEmpty()); checkWorkflowsContains(workflowService.getCompletedWorkflows(), instance1); checkWorkflowsDontContain(workflowService.getCompletedWorkflows(), instance2); checkWorkflowsContains(workflowService.getWorkflows(), instance1, instance2);