public ProcessServiceBase(ProcessService processService, DefinitionService definitionService, RuntimeDataService runtimeDataService, KieServerRegistry context) { this.processService = processService; this.definitionService = definitionService; this.runtimeDataService = runtimeDataService; this.marshallerHelper = new MarshallerHelper(context); this.context = context; }
@Override public BaseQueryFilterSpec getQueryFilterSpec() { return marshallerHelper.unmarshal(payload, marshallingType, ProcessInstanceQueryFilterSpec.class); } };
public String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, ContainerLocatorProvider.get().getLocator()); }
public ProcessAdminServiceBase(ProcessInstanceMigrationService processInstanceMigrationService, ProcessInstanceAdminService processInstanceAdminService, KieServerRegistry context) { this.processInstanceMigrationService = processInstanceMigrationService; this.processInstanceAdminService = processInstanceAdminService; this.marshallerHelper = new MarshallerHelper(context); this.context = context; }
@Override public BaseQueryFilterSpec getQueryFilterSpec() { return marshallerHelper.unmarshal(payload, marshallingType, TaskQueryFilterSpec.class); }
public CaseAdminServiceBase(CaseInstanceMigrationService caseInstanceMigrationService, KieServerRegistry context) { this.caseInstanceMigrationService = caseInstanceMigrationService; this.marshallerHelper = new MarshallerHelper(context); this.context = context; }
public void updateRequestData(long requestId, String containerId, String payload, String marshallingType) { Map<String, Object> data = null; if (containerId != null && !containerId.isEmpty()) { logger.debug("About to unmarshal job data from payload: '{}' using container {} marshaller", payload, containerId); data = marshallerHelper.unmarshal(containerId, payload, marshallingType, Map.class); } else { logger.debug("About to unmarshal job data from payload: '{}' using server marshaller", payload); data = marshallerHelper.unmarshal(payload, marshallingType, Map.class); } logger.debug("About to update job's ( with id {}) data {}", requestId, data); executorService.updateRequestData(requestId, data); }
public CommandResource(KieContainerCommandService delegate, KieServerRegistry registry) { this.delegate = delegate; this.registry = registry; this.marshallerHelper = new MarshallerHelper(registry); }
public void signal(String containerId, String signalName, String eventPayload, String marshallingType) { logger.debug("About to unmarshal event from payload: '{}'", eventPayload); Object event = marshallerHelper.unmarshal(containerId, eventPayload, marshallingType, Object.class); logger.debug("Calling signal '{}' on container {} and event {}", signalName, containerId, event); processService.signalEvent(containerId, signalName, event); }
public QueryDataServiceBase(QueryService queryService, KieServerRegistry context) { this.queryService = queryService; this.context = context; this.marshallerHelper = new MarshallerHelper(context); }
public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); }
public ExecutorServiceBase(ExecutorService executorService, KieServerRegistry context) { this.executorService = executorService; this.marshallerHelper = new MarshallerHelper(context); this.context = context; }
public void closeCaseInstance(String containerId, String caseId, String payload, String marshallingType) { verifyContainerId(containerId, caseId); logger.debug("About to unmarshal task name from payload: '{}'", payload); String comment = marshallerHelper.unmarshal(containerId, payload, marshallingType, String.class); logger.debug("Closing case with id {} inside container {} with comment {}", caseId, containerId, comment); caseService.closeCase(caseId, comment); }
public UserTaskAdminServiceBase(UserTaskAdminService userTaskAdminService, KieServerRegistry context) { this.userTaskAdminService = userTaskAdminService; this.marshallerHelper = new MarshallerHelper(context); this.context = context; }
public MigrationReportInstanceList migrateProcessInstances(String containerId, List<Long> processInstancesId, String targetContainerId, String targetProcessId, String payload, String marshallingType) { Map<String, String> nodeMapping = Collections.emptyMap(); if (payload != null) { logger.debug("About to unmarshal node mapping from payload: '{}' using container {} marshaller", payload, containerId); nodeMapping = marshallerHelper.unmarshal(containerId, payload, marshallingType, Map.class); } logger.debug("About to migrate process instances with ids {} from container '{}' to container '{}' and process id '{}' with node mapping {}", processInstancesId, containerId, targetContainerId, targetProcessId, nodeMapping); List<MigrationReport> reports = processInstanceMigrationService.migrate(containerId, convert(processInstancesId), targetContainerId, targetProcessId, nodeMapping); logger.debug("Migration of process instances {} finished with reports {}", processInstancesId, reports); return convertMigrationReports(reports); }
public DocumentServiceBase(DocumentStorageService documentStorageService, KieServerRegistry context) { this.documentStorageService = documentStorageService; this.marshallerHelper = new MarshallerHelper(context); }
public ModelEvaluatorServiceBase(KieServerRegistry context) { this.context = context; this.marshallerHelper = new MarshallerHelper(context); }
public DocumentServiceBase(KieServerRegistry context) { this.marshallerHelper = new MarshallerHelper(context); }
public OptaplannerCommandServiceImpl( KieServerRegistry context, SolverServiceBase solverService) { this.context = context; this.solverService = solverService; this.marshallerHelper = new MarshallerHelper(solverService.getKieServerRegistry()); }
public UserTaskServiceBase(UserTaskService userTaskService, KieServerRegistry context) { this.userTaskService = userTaskService; this.context = context; this.identityProvider = context.getIdentityProvider(); this.marshallerHelper = new MarshallerHelper(context); this.bypassAuthUser = Boolean.parseBoolean(context.getConfig().getConfigItemValue(KieServerConstants.CFG_BYPASS_AUTH_USER, "false")); }