@Test public void wakeUpWorkflowInstance() { List<String> states = asList("abc", "xyz"); service.wakeupWorkflowInstance(99, states); verify(workflowInstanceDao).wakeupWorkflowInstanceIfNotExecuting(99, states); }
@Transactional public boolean wakeupWorkflowInstance(long id, List<String> expectedStates) { return workflowInstanceDao.wakeupWorkflowInstanceIfNotExecuting(id, expectedStates); }
WorkflowInstanceService { @Transactional public boolean wakeupWorkflowInstance(long id, List<String> expectedStates) { return workflowInstanceDao.wakeupWorkflowInstanceIfNotExecuting(id, expectedStates); } }
WorkflowInstanceService { @Transactional public boolean wakeupWorkflowInstance(long id, List<String> expectedStates) { return workflowInstanceDao.wakeupWorkflowInstanceIfNotExecuting(id, expectedStates); } @Inject  WorkflowInstanceService(WorkflowInstanceDao workflowInstanceDao, WorkflowDefinitionService workflowDefinitionService,
      WorkflowInstancePreProcessor workflowInstancePreProcessor); }
WorkflowInstanceService { @Transactional public boolean wakeupWorkflowInstance(long id, List<String> expectedStates) { return workflowInstanceDao.wakeupWorkflowInstanceIfNotExecuting(id, expectedStates); } @Inject  WorkflowInstanceService(WorkflowInstanceDao workflowInstanceDao, WorkflowDefinitionService workflowDefinitionService,
      WorkflowInstancePreProcessor workflowInstancePreProcessor); WorkflowInstance getWorkflowInstance(long id, Set<WorkflowInstanceInclude> includes, Long maxActions); @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "getInitialState().toString() has no cast") long insertWorkflowInstance(WorkflowInstance instance); @Transactional boolean updateWorkflowInstance(WorkflowInstance instance, WorkflowInstanceAction action); @Transactional boolean wakeupWorkflowInstance(long id, List<String> expectedStates); Collection<WorkflowInstance> listWorkflowInstances(QueryWorkflowInstances query); Stream<WorkflowInstance> listWorkflowInstancesAsStream(QueryWorkflowInstances query); Optional<Integer> getSignal(long workflowInstanceId); boolean setSignal(long workflowInstanceId, Optional<Integer> signal, String reason, WorkflowActionType actionType); }
WorkflowInstanceService { @Transactional public boolean wakeupWorkflowInstance(long id, List<String> expectedStates) { return workflowInstanceDao.wakeupWorkflowInstanceIfNotExecuting(id, expectedStates); } @Inject  WorkflowInstanceService(WorkflowInstanceDao workflowInstanceDao, WorkflowDefinitionService workflowDefinitionService,
      WorkflowInstancePreProcessor workflowInstancePreProcessor); WorkflowInstance getWorkflowInstance(long id, Set<WorkflowInstanceInclude> includes, Long maxActions); @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "getInitialState().toString() has no cast") long insertWorkflowInstance(WorkflowInstance instance); @Transactional boolean updateWorkflowInstance(WorkflowInstance instance, WorkflowInstanceAction action); @Transactional boolean wakeupWorkflowInstance(long id, List<String> expectedStates); Collection<WorkflowInstance> listWorkflowInstances(QueryWorkflowInstances query); Stream<WorkflowInstance> listWorkflowInstancesAsStream(QueryWorkflowInstances query); Optional<Integer> getSignal(long workflowInstanceId); boolean setSignal(long workflowInstanceId, Optional<Integer> signal, String reason, WorkflowActionType actionType);  }