Search in sources :

Example 1 with KieServerApplicationComponentsService

use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.

the class JBPMClusterKieServerExtension method getAppComponents.

@Override
public List<Object> getAppComponents(SupportedTransports type) {
    List<Object> appComponentsList = new ArrayList<>();
    Object[] services = { clusterService };
    ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
    for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
        appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
    }
    return appComponentsList;
}
Also used : KieServerApplicationComponentsService(org.kie.server.services.api.KieServerApplicationComponentsService) ArrayList(java.util.ArrayList)

Example 2 with KieServerApplicationComponentsService

use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.

the class DroolsKieServerExtension method getAppComponents.

@Override
public List<Object> getAppComponents(SupportedTransports type) {
    ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
    List<Object> appComponentsList = new ArrayList<Object>();
    Object[] services = { batchCommandService, rulesExecutionService, registry };
    for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
        appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
    }
    return appComponentsList;
}
Also used : KieServerApplicationComponentsService(org.kie.server.services.api.KieServerApplicationComponentsService) ArrayList(java.util.ArrayList)

Example 3 with KieServerApplicationComponentsService

use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.

the class CaseKieServerExtension method getAppComponents.

@Override
public List<Object> getAppComponents(SupportedTransports type) {
    List<Object> appComponentsList = new ArrayList<Object>();
    if (!initialized) {
        return appComponentsList;
    }
    ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
    Object[] services = { caseManagementServiceBase, caseManagementRuntimeDataService, caseAdminServiceBase, registry, advanceCaseRuntimeDataService };
    for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
        appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
    }
    return appComponentsList;
}
Also used : KieServerApplicationComponentsService(org.kie.server.services.api.KieServerApplicationComponentsService) ArrayList(java.util.ArrayList)

Example 4 with KieServerApplicationComponentsService

use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.

the class OptaplannerKieServerExtension method getAppComponents.

@Override
public List<Object> getAppComponents(SupportedTransports type) {
    ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
    List<Object> appComponentsList = new ArrayList<>();
    Object[] services = { solverServiceBase, registry };
    for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
        appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
    }
    return appComponentsList;
}
Also used : KieServerApplicationComponentsService(org.kie.server.services.api.KieServerApplicationComponentsService) ArrayList(java.util.ArrayList)

Example 5 with KieServerApplicationComponentsService

use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.

the class ScenarioSimulationKieServerExtension method getAppComponents.

@Override
public List<Object> getAppComponents(SupportedTransports type) {
    ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
    List<Object> appComponentsList = new ArrayList<>();
    Object[] services = { context, scenarioSimulationService };
    for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
        appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
    }
    return appComponentsList;
}
Also used : KieServerApplicationComponentsService(org.kie.server.services.api.KieServerApplicationComponentsService) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)14 KieServerApplicationComponentsService (org.kie.server.services.api.KieServerApplicationComponentsService)14 Test (org.junit.Test)2 KieServerRegistry (org.kie.server.services.api.KieServerRegistry)2 DefinitionService (org.jbpm.services.api.DefinitionService)1 DeploymentService (org.jbpm.services.api.DeploymentService)1 ProcessService (org.jbpm.services.api.ProcessService)1 RuntimeDataService (org.jbpm.services.api.RuntimeDataService)1 UserTaskService (org.jbpm.services.api.UserTaskService)1 QueryService (org.jbpm.services.api.query.QueryService)1 ExecutorService (org.kie.internal.executor.api.ExecutorService)1 ProcessAdminResource (org.kie.server.remote.rest.jbpm.admin.ProcessAdminResource)1 UserTaskAdminResource (org.kie.server.remote.rest.jbpm.admin.UserTaskAdminResource)1 SolverServiceBase (org.kie.server.services.optaplanner.SolverServiceBase)1