@Test public void testShouldStartWorkflow() { when(workflowRepository.startWorkflow(Matchers.any(MarriageRegnRequest.class))) .thenReturn(getProcessInstance()); mrWorkflowService.startWorkflow(MarriageRegnRequest.builder().marriageRegn(getMarriageRegn().get(0)) .requestInfo(new RequestInfo()).build()); }
public void startWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService startWorkflow marriageRegnRequest"+marriageRegnRequest); ProcessInstance processInstanceResponse = workflowRepository.startWorkflow(marriageRegnRequest); log.info("the processInstanceresponse from workflow statrt : " + processInstanceResponse); }
MRWorkflowService { public void startWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService startWorkflow marriageRegnRequest"+marriageRegnRequest); ProcessInstance processInstanceResponse = workflowRepository.startWorkflow(marriageRegnRequest); log.info("the processInstanceresponse from workflow statrt : " + processInstanceResponse); } }
MRWorkflowService { public void startWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService startWorkflow marriageRegnRequest"+marriageRegnRequest); ProcessInstance processInstanceResponse = workflowRepository.startWorkflow(marriageRegnRequest); log.info("the processInstanceresponse from workflow statrt : " + processInstanceResponse); }  }
MRWorkflowService { public void startWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService startWorkflow marriageRegnRequest"+marriageRegnRequest); ProcessInstance processInstanceResponse = workflowRepository.startWorkflow(marriageRegnRequest); log.info("the processInstanceresponse from workflow statrt : " + processInstanceResponse); }  void startWorkflow(MarriageRegnRequest marriageRegnRequest); void updateWorkflow(MarriageRegnRequest marriageRegnRequest); }
MRWorkflowService { public void startWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService startWorkflow marriageRegnRequest"+marriageRegnRequest); ProcessInstance processInstanceResponse = workflowRepository.startWorkflow(marriageRegnRequest); log.info("the processInstanceresponse from workflow statrt : " + processInstanceResponse); }  void startWorkflow(MarriageRegnRequest marriageRegnRequest); void updateWorkflow(MarriageRegnRequest marriageRegnRequest);  }