@Test public void startProcessInstanceCmdExecutorTest() { StartProcessPayload startProcessInstanceCmd = ProcessPayloadBuilder.start() .withProcessDefinitionKey("def key") .withName("name") .withBusinessKey("business key") .build(); ProcessInstance fakeProcessInstance = mock(ProcessInstance.class); given(processAdminRuntime.start(startProcessInstanceCmd)).willReturn(fakeProcessInstance); assertThat(startProcessInstanceCmdExecutor.getHandledType()).isEqualTo(StartProcessPayload.class.getName()); startProcessInstanceCmdExecutor.execute(startProcessInstanceCmd); verify(processAdminRuntime).start(startProcessInstanceCmd); }
public StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime) { this.processAdminRuntime = processAdminRuntime; }
StartProcessInstanceCmdExecutor extends AbstractCommandExecutor<StartProcessPayload> { public StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime) { this.processAdminRuntime = processAdminRuntime; } }
StartProcessInstanceCmdExecutor extends AbstractCommandExecutor<StartProcessPayload> { public StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime) { this.processAdminRuntime = processAdminRuntime; } StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime); }
StartProcessInstanceCmdExecutor extends AbstractCommandExecutor<StartProcessPayload> { public StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime) { this.processAdminRuntime = processAdminRuntime; } StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime); @Override ProcessInstanceResult execute(StartProcessPayload startProcessPayload); }
StartProcessInstanceCmdExecutor extends AbstractCommandExecutor<StartProcessPayload> { public StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime) { this.processAdminRuntime = processAdminRuntime; } StartProcessInstanceCmdExecutor(ProcessAdminRuntime processAdminRuntime); @Override ProcessInstanceResult execute(StartProcessPayload startProcessPayload);  }