public Object abortProcessInstances(String containerId, List<Long> processInstanceIds) { processService.abortProcessInstances(containerId, convert(processInstanceIds)); return null; }
@Override protected void configureServices(KieServerImpl kieServer, KieServerRegistry registry) { // all services are injected from JBPMAutoConfigure this.kieContainerCommandService = new JBPMKieContainerCommandServiceImpl(context, deploymentService, new DefinitionServiceBase(definitionService, context), new ProcessServiceBase(processService, definitionService, runtimeDataService, context), new UserTaskServiceBase(userTaskService, context), new RuntimeDataServiceBase(runtimeDataService, context), new ExecutorServiceBase(executorService, context), new QueryDataServiceBase(queryService, context), new DocumentServiceBase(context), new ProcessAdminServiceBase(processInstanceMigrationService, processInstanceAdminService, context), new UserTaskAdminServiceBase(userTaskAdminService, context)); }
new ProcessServiceBase(processService, definitionService, runtimeDataService, context), new UserTaskServiceBase(userTaskService, context), new RuntimeDataServiceBase(runtimeDataService, context), new ExecutorServiceBase(executorService, context), new QueryDataServiceBase(queryService, context), new DocumentServiceBase(context), new ProcessAdminServiceBase(processInstanceMigrationService, processInstanceAdminService, context),
public void signalProcessInstances(String containerId, List<Long> processInstanceIds, String signalName, String marshallingType) { List<Long> ids = convert(processInstanceIds); if (ids.isEmpty()) { return; } containerId = context.getContainerId(containerId, new ByProcessInstanceIdContainerLocator(ids.get(0))); logger.debug("Calling signal '{}' process instances with id {} on container {} and event {}", signalName, processInstanceIds, containerId, null); processService.signalProcessInstances(containerId, convert(processInstanceIds), signalName, null); }
public void signalProcessInstances(String containerId, List<Long> processInstanceIds, String signalName, String eventPayload, String marshallingType) { List<Long> ids = convert(processInstanceIds); if (ids.isEmpty()) { return; } containerId = context.getContainerId(containerId, new ByProcessInstanceIdContainerLocator(ids.get(0))); logger.debug("About to unmarshal event from payload: '{}'", eventPayload); Object event = marshallerHelper.unmarshal(containerId, eventPayload, marshallingType, Object.class); logger.debug("Calling signal '{}' process instances with id {} on container {} and event {}", signalName, processInstanceIds, containerId, event); processService.signalProcessInstances(containerId, ids, signalName, event); }