Search in sources :

Example 1 with DataObjectFinderServiceImpl

use of org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFinderServiceImpl in project kie-wb-common by kiegroup.

the class FormGenerationIntegrationTest method init.

@Before
public void init() {
    final String nestedformsUri = getUriOfResource(PREPARED_NESTED_FORMS_FOLDER);
    final String modelUri = getUriOfResource(JAVA_MODEL_FOLDER);
    rootPathWithNestedForms = PathFactory.newPath(DATA_OBJECTS_FOLDER, nestedformsUri);
    rootPathWithoutNestedForms = PathFactory.newPath(DATA_OBJECTS_FOLDER, modelUri);
    finderService = new DataObjectFinderServiceImpl(moduleService, dataModelerService);
    formModelHandlerManager = new TestFormModelHandlerManager(moduleService, moduleClassLoaderHelper, fieldManager, finderService);
    formFinderService = new VFSFormFinderServiceImpl(ioService, moduleService, formSerializer);
    service = new BPMNVFSFormDefinitionGeneratorService(fieldManager, formModelHandlerManager, formFinderService, formSerializer, ioService, commentedOptionFactory, formModelSynchronizationUtil);
    when(moduleService.resolveModule(any())).thenReturn(module);
    when(moduleClassLoaderHelper.getModuleClassLoader(any())).thenReturn(moduleClassLoader);
    generator = new BPMNFormModelGeneratorImpl(moduleService, moduleClassLoaderHelper);
    processFormModel = generator.generateProcessFormModel(formGenerationProcessDefinitions, rootPathWithNestedForms);
    taskFormModels = generator.generateTaskFormModels(formGenerationProcessDefinitions, rootPathWithNestedForms);
}
Also used : VFSFormFinderServiceImpl(org.kie.workbench.common.forms.editor.backend.service.impl.VFSFormFinderServiceImpl) TestFormModelHandlerManager(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.test.TestFormModelHandlerManager) BPMNFormModelGeneratorImpl(org.kie.workbench.common.forms.jbpm.server.service.impl.BPMNFormModelGeneratorImpl) DataObjectFinderServiceImpl(org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFinderServiceImpl) BPMNVFSFormDefinitionGeneratorService(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.impl.authoring.BPMNVFSFormDefinitionGeneratorService) Before(org.junit.Before)

Example 2 with DataObjectFinderServiceImpl

use of org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFinderServiceImpl in project kie-wb-common by kiegroup.

the class GetDataObjectModelsTest method setup.

@BeforeClass
public static void setup() throws Exception {
    dataModelerService = weldContainer.select(DataModelerService.class).get();
    fieldManager = weldContainer.select(FieldManager.class).get();
    finderService = new DataObjectFinderServiceImpl(moduleService, dataModelerService);
    handler = new DataObjectFormModelHandler(moduleService, classLoaderHelper, finderService, fieldManager);
    creationService = new DataObjectFormModelCreationServiceImpl(finderService, handler);
}
Also used : DataObjectFormModelCreationServiceImpl(org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFormModelCreationServiceImpl) DataObjectFormModelHandler(org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFormModelHandler) DataObjectFinderServiceImpl(org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFinderServiceImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

DataObjectFinderServiceImpl (org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFinderServiceImpl)2 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1 DataObjectFormModelCreationServiceImpl (org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFormModelCreationServiceImpl)1 DataObjectFormModelHandler (org.kie.workbench.common.forms.data.modeller.service.impl.DataObjectFormModelHandler)1 VFSFormFinderServiceImpl (org.kie.workbench.common.forms.editor.backend.service.impl.VFSFormFinderServiceImpl)1 BPMNVFSFormDefinitionGeneratorService (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.impl.authoring.BPMNVFSFormDefinitionGeneratorService)1 TestFormModelHandlerManager (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.test.TestFormModelHandlerManager)1 BPMNFormModelGeneratorImpl (org.kie.workbench.common.forms.jbpm.server.service.impl.BPMNFormModelGeneratorImpl)1