@Test public void testInstantiation() { LightProcessRuntimeServiceProvider services = new LightProcessRuntimeServiceProvider(); MyProcess myProcess = new MyProcess(); LightProcessRuntimeContext rtc = new LightProcessRuntimeContext( Collections.singletonList(myProcess.process)); LightProcessRuntime rt = new LightProcessRuntime(rtc, services); rt.startProcess(myProcess.process.getId()); assertEquals("Hello!", myProcess.result); }
public ProcessInstance startProcess(String processId) { return startProcess(processId, null); }
LightProcessRuntime implements InternalProcessRuntime { public ProcessInstance startProcess(String processId) { return startProcess(processId, null); } }
LightProcessRuntime implements InternalProcessRuntime { public ProcessInstance startProcess(String processId) { return startProcess(processId, null); } LightProcessRuntime(ProcessRuntimeContext runtimeContext, ProcessRuntimeServiceProvider services); }
LightProcessRuntime implements InternalProcessRuntime { public ProcessInstance startProcess(String processId) { return startProcess(processId, null); } LightProcessRuntime(ProcessRuntimeContext runtimeContext, ProcessRuntimeServiceProvider services); static LightProcessRuntime ofProcess(Process p); void initStartTimers(); ProcessInstance startProcess(String processId); ProcessInstance startProcess(String processId, Map<String, Object> parameters); ProcessInstance startProcess(String processId, Map<String, Object> parameters, String trigger); ProcessInstance createProcessInstance(String processId, Map<String, Object> parameters); ProcessInstance startProcessInstance(String processInstanceId, String trigger); ProcessInstance startProcessInstance(String processInstanceId); @Override ProcessInstance startProcess(String processId, CorrelationKey correlationKey, Map<String, Object> parameters); @Override ProcessInstance createProcessInstance(String processId, CorrelationKey correlationKey, Map<String, Object> parameters); ProcessInstanceManager getProcessInstanceManager(); JobsService getJobsService(); SignalManager getSignalManager(); Collection<ProcessInstance> getProcessInstances(); ProcessInstance getProcessInstance(String id); ProcessInstance getProcessInstance(String id, boolean readOnly); void removeProcessInstance(ProcessInstance processInstance); void initProcessEventListeners(); void removeProcessEventListeners(); ProcessEventSupport getProcessEventSupport(); void addEventListener(final ProcessEventListener listener); void removeEventListener(final ProcessEventListener listener); List<ProcessEventListener> getProcessEventListeners(); void abortProcessInstance(String processInstanceId); WorkItemManager getWorkItemManager(); @Override UnitOfWorkManager getUnitOfWorkManager(); void signalEvent(String type, Object event); void signalEvent(String type, Object event, String processInstanceId); void setProcessEventSupport(ProcessEventSupport processEventSupport); void dispose(); void clearProcessInstances(); void clearProcessInstancesState(); boolean isActive(); @Override InternalKnowledgeRuntime getInternalKieRuntime(); }
LightProcessRuntime implements InternalProcessRuntime { public ProcessInstance startProcess(String processId) { return startProcess(processId, null); } LightProcessRuntime(ProcessRuntimeContext runtimeContext, ProcessRuntimeServiceProvider services); static LightProcessRuntime ofProcess(Process p); void initStartTimers(); ProcessInstance startProcess(String processId); ProcessInstance startProcess(String processId, Map<String, Object> parameters); ProcessInstance startProcess(String processId, Map<String, Object> parameters, String trigger); ProcessInstance createProcessInstance(String processId, Map<String, Object> parameters); ProcessInstance startProcessInstance(String processInstanceId, String trigger); ProcessInstance startProcessInstance(String processInstanceId); @Override ProcessInstance startProcess(String processId, CorrelationKey correlationKey, Map<String, Object> parameters); @Override ProcessInstance createProcessInstance(String processId, CorrelationKey correlationKey, Map<String, Object> parameters); ProcessInstanceManager getProcessInstanceManager(); JobsService getJobsService(); SignalManager getSignalManager(); Collection<ProcessInstance> getProcessInstances(); ProcessInstance getProcessInstance(String id); ProcessInstance getProcessInstance(String id, boolean readOnly); void removeProcessInstance(ProcessInstance processInstance); void initProcessEventListeners(); void removeProcessEventListeners(); ProcessEventSupport getProcessEventSupport(); void addEventListener(final ProcessEventListener listener); void removeEventListener(final ProcessEventListener listener); List<ProcessEventListener> getProcessEventListeners(); void abortProcessInstance(String processInstanceId); WorkItemManager getWorkItemManager(); @Override UnitOfWorkManager getUnitOfWorkManager(); void signalEvent(String type, Object event); void signalEvent(String type, Object event, String processInstanceId); void setProcessEventSupport(ProcessEventSupport processEventSupport); void dispose(); void clearProcessInstances(); void clearProcessInstancesState(); boolean isActive(); @Override InternalKnowledgeRuntime getInternalKieRuntime();  }