Search in sources :

Example 1 with Overview

use of org.guvnor.common.services.shared.metadata.model.Overview in project drools-wb by kiegroup.

the class ScenarioEditorPresenterTest method setUp.

@Before
public void setUp() throws Exception {
    final AsyncPackageDataModelOracleFactory modelOracleFactory = mock(AsyncPackageDataModelOracleFactory.class);
    fakeService = new CallerMock<>(service);
    editor = spy(new ScenarioEditorPresenter(view, user, importsWidget, fakeService, new CallerMock<>(testService), new TestScenarioResourceType(new Others()), modelOracleFactory, settingsPage, auditPage) {

        {
            kieView = ScenarioEditorPresenterTest.this.kieView;
            versionRecordManager = ScenarioEditorPresenterTest.this.versionRecordManager;
            overviewWidget = ScenarioEditorPresenterTest.this.overviewWidget;
            notification = makeNotificationEvent();
            fileMenuBuilder = ScenarioEditorPresenterTest.this.fileMenuBuilder;
            projectController = ScenarioEditorPresenterTest.this.projectController;
            workbenchContext = ScenarioEditorPresenterTest.this.workbenchContext;
            versionRecordManager = ScenarioEditorPresenterTest.this.versionRecordManager;
            alertsButtonMenuItemBuilder = ScenarioEditorPresenterTest.this.alertsButtonMenuItemBuilder;
        }

        @Override
        protected Command getSaveAndRename() {
            return mock(Command.class);
        }
    });
    scenarioRunResult = new Scenario();
    scenario = new Scenario();
    overview = new Overview();
    when(user.getIdentifier()).thenReturn("userName");
    when(workbenchContext.getActiveOrganizationalUnit()).thenReturn(Optional.empty());
    when(workbenchContext.getActiveWorkspaceProject()).thenReturn(Optional.empty());
    final TestScenarioModelContent testScenarioModelContent = new TestScenarioModelContent(scenario, overview, "org.test", new PackageDataModelOracleBaselinePayload());
    when(service.loadContent(any(Path.class))).thenReturn(testScenarioModelContent);
    final TestScenarioResult result = new TestScenarioResult(scenarioRunResult, Collections.EMPTY_SET);
    when(service.runScenario(eq("userName"), any(Path.class), eq(scenario))).thenReturn(result);
    final AsyncPackageDataModelOracle dmo = mock(AsyncPackageDataModelOracle.class);
    when(modelOracleFactory.makeAsyncPackageDataModelOracle(any(Path.class), any(HasImports.class), any(PackageDataModelOracleBaselinePayload.class))).thenReturn(dmo);
    when(alertsButtonMenuItemBuilder.build()).thenReturn(alertsButtonMenuItem);
}
Also used : ObservablePath(org.uberfire.backend.vfs.ObservablePath) Path(org.uberfire.backend.vfs.Path) AsyncPackageDataModelOracle(org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle) Others(org.uberfire.workbench.category.Others) TestScenarioModelContent(org.drools.workbench.screens.testscenario.model.TestScenarioModelContent) TestScenarioResourceType(org.drools.workbench.screens.testscenario.client.type.TestScenarioResourceType) Overview(org.guvnor.common.services.shared.metadata.model.Overview) TestScenarioResult(org.drools.workbench.screens.testscenario.model.TestScenarioResult) Scenario(org.drools.workbench.models.testscenarios.shared.Scenario) AsyncPackageDataModelOracleFactory(org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleFactory) PackageDataModelOracleBaselinePayload(org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleBaselinePayload) HasImports(org.kie.soup.project.datamodel.imports.HasImports) Before(org.junit.Before)

Example 2 with Overview

use of org.guvnor.common.services.shared.metadata.model.Overview in project drools-wb by kiegroup.

the class GlobalsEditorPresenterTest method loadContent.

@Test
public void loadContent() {
    presenter.loadContent();
    verify(view, times(1)).showLoading();
    verify(globalsEditorService, times(1)).loadContent(any(Path.class));
    when(versionRecordManager.getCurrentPath()).thenReturn(mock(ObservablePath.class));
    // Emulate the globals being successfully loaded
    GlobalsEditorContent globalsEditorContent = mock(GlobalsEditorContent.class);
    Overview overview = mock(Overview.class);
    when(overview.getMetadata()).thenReturn(mock(Metadata.class));
    when(globalsEditorContent.getOverview()).thenReturn(overview);
    GlobalsModel globalsModel = mock(GlobalsModel.class);
    when(globalsEditorContent.getModel()).thenReturn(globalsModel);
    presenter.getModelSuccessCallback().callback(globalsEditorContent);
    verify(view, times(1)).setContent(anyListOf(Global.class), anyListOf(String.class), anyBoolean(), anyBoolean());
    verify(view, times(1)).hideBusyIndicator();
}
Also used : Path(org.uberfire.backend.vfs.Path) ObservablePath(org.uberfire.backend.vfs.ObservablePath) GlobalsEditorContent(org.drools.workbench.screens.globals.model.GlobalsEditorContent) GlobalsModel(org.drools.workbench.screens.globals.model.GlobalsModel) Metadata(org.guvnor.common.services.shared.metadata.model.Metadata) Overview(org.guvnor.common.services.shared.metadata.model.Overview) ObservablePath(org.uberfire.backend.vfs.ObservablePath) Global(org.drools.workbench.screens.globals.model.Global) Test(org.junit.Test)

Example 3 with Overview

use of org.guvnor.common.services.shared.metadata.model.Overview in project drools-wb by kiegroup.

the class GuidedDecisionTableEditorServiceImpl method constructContent.

@Override
protected GuidedDecisionTableEditorContent constructContent(Path path, Overview overview) {
    final GuidedDecisionTable52 model = load(path);
    final PackageDataModelOracle oracle = dataModelService.getDataModel(path);
    final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
    // Get FQCN's used by model
    final GuidedDecisionTableModelVisitor visitor = new GuidedDecisionTableModelVisitor(model);
    final Set<String> consumedFQCNs = visitor.getConsumedModelClasses();
    // Get FQCN's used by Globals
    consumedFQCNs.addAll(oracle.getPackageGlobals().values());
    // Get FQCN's of collections defined in project settings
    // they can be used in From Collect expressions
    consumedFQCNs.addAll(oracle.getModuleCollectionTypes().entrySet().stream().filter(entry -> entry.getValue()).map(entry -> entry.getKey()).collect(Collectors.toSet()));
    DataModelOracleUtilities.populateDataModel(oracle, dataModel, consumedFQCNs);
    final Set<PortableWorkDefinition> workItemDefinitions = workItemsService.loadWorkItemDefinitions(path);
    // Signal opening to interested parties
    resourceOpenedEvent.fire(new ResourceOpenedEvent(path, safeSessionInfo));
    return new GuidedDecisionTableEditorContent(model, workItemDefinitions, overview, dataModel);
}
Also used : PackageDataModelOracleBaselinePayload(org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleBaselinePayload) GuidedDecisionTableEditorService(org.drools.workbench.screens.guided.dtable.service.GuidedDecisionTableEditorService) GuidedDecisionTableEditorContent(org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent) ValidationMessage(org.guvnor.common.services.shared.validation.model.ValidationMessage) WorkItemsEditorService(org.drools.workbench.screens.workitems.service.WorkItemsEditorService) PackageDataModelOracle(org.kie.soup.project.datamodel.oracle.PackageDataModelOracle) Metadata(org.guvnor.common.services.shared.metadata.model.Metadata) Files(org.uberfire.java.nio.file.Files) Package(org.guvnor.common.services.project.model.Package) Paths(org.uberfire.backend.server.util.Paths) HashSet(java.util.HashSet) Inject(javax.inject.Inject) PathFactory(org.uberfire.backend.vfs.PathFactory) ExceptionUtilities(org.guvnor.common.services.backend.exceptions.ExceptionUtilities) CommentedOptionFactory(org.guvnor.common.services.backend.util.CommentedOptionFactory) Overview(org.guvnor.common.services.shared.metadata.model.Overview) KieModuleService(org.kie.workbench.common.services.shared.project.KieModuleService) Service(org.jboss.errai.bus.server.annotations.Service) SafeSessionInfo(org.guvnor.common.services.backend.config.SafeSessionInfo) SessionInfo(org.uberfire.rpc.SessionInfo) FileExtensionFilter(org.guvnor.common.services.backend.file.FileExtensionFilter) Named(javax.inject.Named) KieService(org.kie.workbench.common.services.backend.service.KieService) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) RenameService(org.uberfire.ext.editor.commons.service.RenameService) Path(org.uberfire.backend.vfs.Path) DeleteService(org.uberfire.ext.editor.commons.service.DeleteService) Event(javax.enterprise.event.Event) DataModelService(org.kie.workbench.common.services.datamodel.backend.server.service.DataModelService) GuidedDecisionTableEditorGraphModel(org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorGraphModel) SaveAndRenameServiceImpl(org.uberfire.ext.editor.commons.backend.service.SaveAndRenameServiceImpl) GuidedDecisionTable52(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52) DataModelOracleUtilities(org.kie.workbench.common.services.datamodel.backend.server.DataModelOracleUtilities) Set(java.util.Set) Collectors(java.util.stream.Collectors) GuidedDecisionTableGraphEditorService(org.drools.workbench.screens.guided.dtable.service.GuidedDecisionTableGraphEditorService) ResourceOpenedEvent(org.uberfire.workbench.events.ResourceOpenedEvent) GenericValidator(org.guvnor.common.services.backend.validation.GenericValidator) List(java.util.List) VersionRecord(org.uberfire.java.nio.base.version.VersionRecord) PostConstruct(javax.annotation.PostConstruct) IOService(org.uberfire.io.IOService) ApplicationScoped(javax.enterprise.context.ApplicationScoped) FileAlreadyExistsException(org.uberfire.java.nio.file.FileAlreadyExistsException) GuidedDTXMLPersistence(org.drools.workbench.models.guided.dtable.backend.GuidedDTXMLPersistence) GuidedDTableGraphResourceTypeDefinition(org.drools.workbench.screens.guided.dtable.type.GuidedDTableGraphResourceTypeDefinition) VersionRecordService(org.uberfire.ext.editor.commons.backend.version.VersionRecordService) CopyService(org.uberfire.ext.editor.commons.service.CopyService) GuidedDecisionTable52(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52) PackageDataModelOracleBaselinePayload(org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleBaselinePayload) PackageDataModelOracle(org.kie.soup.project.datamodel.oracle.PackageDataModelOracle) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) GuidedDecisionTableEditorContent(org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent) ResourceOpenedEvent(org.uberfire.workbench.events.ResourceOpenedEvent)

Example 4 with Overview

use of org.guvnor.common.services.shared.metadata.model.Overview in project drools-wb by kiegroup.

the class GuidedDecisionTableEditorServiceImplTest method checkConstructContent.

@Test
public void checkConstructContent() {
    final Path path = mock(Path.class);
    final Overview overview = mock(Overview.class);
    final PackageDataModelOracle oracle = mock(PackageDataModelOracle.class);
    when(oracle.getModuleCollectionTypes()).thenReturn(new HashMap<String, Boolean>() {

        {
            put("java.util.List", true);
            put("java.util.Set", true);
            put("java.util.Collection", true);
            put("java.util.UnknownCollection", false);
        }
    });
    final Set<PortableWorkDefinition> workItemDefinitions = new HashSet<>();
    when(path.toURI()).thenReturn("default://project/src/main/resources/mypackage/dtable.gdst");
    when(dataModelService.getDataModel(eq(path))).thenReturn(oracle);
    when(workItemsService.loadWorkItemDefinitions(eq(path))).thenReturn(workItemDefinitions);
    final GuidedDecisionTableEditorContent content = service.constructContent(path, overview);
    verify(resourceOpenedEvent, times(1)).fire(any(ResourceOpenedEvent.class));
    assertNotNull(content.getModel());
    assertNotNull(content.getDataModel());
    assertNotNull(content.getWorkItemDefinitions());
    assertEquals(overview, content.getOverview());
    assertEquals(3, content.getDataModel().getCollectionTypes().size());
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.Collection"));
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.List"));
    assertTrue(content.getDataModel().getCollectionTypes().containsKey("java.util.Set"));
}
Also used : Path(org.uberfire.backend.vfs.Path) PackageDataModelOracle(org.kie.soup.project.datamodel.oracle.PackageDataModelOracle) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) GuidedDecisionTableEditorContent(org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent) Overview(org.guvnor.common.services.shared.metadata.model.Overview) ResourceOpenedEvent(org.uberfire.workbench.events.ResourceOpenedEvent) HashSet(java.util.HashSet) Test(org.junit.Test)

Example 5 with Overview

use of org.guvnor.common.services.shared.metadata.model.Overview in project drools-wb by kiegroup.

the class BaseGuidedDecisionTablePresenterTest method setupPresenter.

protected GuidedDecisionTablePresenter setupPresenter() {
    final GuidedDecisionTablePresenter wrapped = new GuidedDecisionTablePresenter(identity, resourceType, ruleNameServiceCaller, decisionTableSelectedEvent, decisionTableColumnSelectedEvent, decisionTableSelectionsChangedEvent, refreshAttributesPanelEvent, refreshMetaDataPanelEvent, refreshConditionsPanelEvent, refreshActionsPanelEvent, refreshMenusEvent, notificationEvent, gridWidgetCellFactory, gridWidgetColumnFactory, oracleFactory, synchronizer, beanManager, lockManager, linkManager, clipboard, decisionTableAnalyzerProvider, enumLoaderUtilities, pluginHandler, authorizationManager, sessionInfo) {

        @Override
        void initialiseLockManager() {
        // Do nothing for tests
        }

        @Override
        GuidedDecisionTableRenderer makeViewRenderer() {
            return renderer;
        }

        @Override
        GuidedDecisionTableView makeView(final Set<PortableWorkDefinition> workItemDefinitions) {
            return view;
        }

        @Override
        void initialiseAuditLog() {
        // Do nothing for tests
        }

        @Override
        List<BaseColumnConverter> getConverters() {
            final List<BaseColumnConverter> converters = new ArrayList<BaseColumnConverter>();
            converters.add(new ActionInsertFactColumnConverter());
            converters.add(new ActionRetractFactColumnConverter());
            converters.add(new ActionSetFieldColumnConverter());
            converters.add(new ActionWorkItemExecuteColumnConverter());
            converters.add(new ActionWorkItemInsertFactColumnConverter());
            converters.add(new ActionWorkItemSetFieldColumnConverter());
            converters.add(new AttributeColumnConverter());
            converters.add(new BRLActionVariableColumnConverter());
            converters.add(new BRLConditionVariableColumnConverter());
            converters.add(new ConditionColumnConverter());
            converters.add(new DescriptionColumnConverter());
            converters.add(new LimitedEntryColumnConverter());
            converters.add(new MetaDataColumnConverter());
            converters.add(new RowNumberColumnConverter());
            return converters;
        }

        @Override
        List<Synchronizer<? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData>> getSynchronizers() {
            final List<Synchronizer<? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData, ? extends Synchronizer.MetaData>> synchronizers = new ArrayList<>();
            synchronizers.add(new ActionColumnSynchronizer());
            synchronizers.add(new ActionInsertFactColumnSynchronizer());
            synchronizers.add(new ActionRetractFactColumnSynchronizer());
            synchronizers.add(new ActionSetFieldColumnSynchronizer());
            synchronizers.add(new ActionWorkItemExecuteColumnSynchronizer());
            synchronizers.add(new ActionWorkItemInsertFactColumnSynchronizer());
            synchronizers.add(new ActionWorkItemSetFieldColumnSynchronizer());
            synchronizers.add(new AttributeColumnSynchronizer());
            synchronizers.add(new BRLActionColumnSynchronizer());
            synchronizers.add(new BRLConditionColumnSynchronizer());
            synchronizers.add(new ConditionColumnSynchronizer());
            synchronizers.add(new LimitedEntryBRLActionColumnSynchronizer());
            synchronizers.add(new LimitedEntryBRLConditionColumnSynchronizer());
            synchronizers.add(new MetaDataColumnSynchronizer());
            synchronizers.add(new RowSynchronizer());
            return synchronizers;
        }
    };
    GuidedDecisionTablePresenter presenter = spy(wrapped);
    model = new GuidedDecisionTable52();
    final PackageDataModelOracleBaselinePayload dmoBaseline = mock(PackageDataModelOracleBaselinePayload.class);
    final Set<PortableWorkDefinition> workItemDefinitions = Collections.emptySet();
    final Overview overview = mock(Overview.class);
    dtContent = new GuidedDecisionTableEditorContent(model, workItemDefinitions, overview, dmoBaseline);
    when(oracleFactory.makeAsyncPackageDataModelOracle(any(Path.class), any(GuidedDecisionTable52.class), eq(dmoBaseline))).thenReturn(oracle);
    when(view.getLayer()).thenReturn(gridLayer);
    when(modellerPresenter.getView()).thenReturn(modellerView);
    when(modellerView.getGridLayerView()).thenReturn(gridLayer);
    when(presenter.getModellerPresenter()).thenReturn(modellerPresenter);
    presenter.setContent(dtPath, dtPlaceRequest, dtContent, modellerPresenter, false);
    return presenter;
}
Also used : Set(java.util.Set) LimitedEntryBRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLActionColumnSynchronizer) BRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLActionColumnSynchronizer) ActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionColumnSynchronizer) GuidedDecisionTable52(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52) ActionWorkItemInsertFactColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionWorkItemInsertFactColumnConverter) RowSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.RowSynchronizer) ArrayList(java.util.ArrayList) ActionRetractFactColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionRetractFactColumnConverter) ActionRetractFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionRetractFactColumnSynchronizer) AttributeColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.AttributeColumnSynchronizer) ConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ConditionColumnSynchronizer) BRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLConditionColumnSynchronizer) LimitedEntryBRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLConditionColumnSynchronizer) LimitedEntryBRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLActionColumnSynchronizer) LimitedEntryBRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLConditionColumnSynchronizer) ActionInsertFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionInsertFactColumnSynchronizer) MetaDataColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.MetaDataColumnConverter) ActionWorkItemExecuteColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionWorkItemExecuteColumnConverter) ActionWorkItemInsertFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemInsertFactColumnSynchronizer) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) ConditionColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ConditionColumnConverter) DescriptionColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.DescriptionColumnConverter) ActionWorkItemSetFieldColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionWorkItemSetFieldColumnConverter) BaseColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.BaseColumnConverter) BRLConditionVariableColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.BRLConditionVariableColumnConverter) ObservablePath(org.uberfire.backend.vfs.ObservablePath) Path(org.uberfire.backend.vfs.Path) LimitedEntryBRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLActionColumnSynchronizer) ActionWorkItemSetFieldColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemSetFieldColumnSynchronizer) ActionRetractFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionRetractFactColumnSynchronizer) BRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLActionColumnSynchronizer) ConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ConditionColumnSynchronizer) ModelSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.ModelSynchronizer) ActionWorkItemInsertFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemInsertFactColumnSynchronizer) MetaDataColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.MetaDataColumnSynchronizer) BRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLConditionColumnSynchronizer) ActionInsertFactColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionInsertFactColumnSynchronizer) AttributeColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.AttributeColumnSynchronizer) ActionSetFieldColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionSetFieldColumnSynchronizer) Synchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.Synchronizer) LimitedEntryBRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLConditionColumnSynchronizer) ActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionColumnSynchronizer) ActionWorkItemExecuteColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemExecuteColumnSynchronizer) RowSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.RowSynchronizer) ActionWorkItemSetFieldColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemSetFieldColumnSynchronizer) GuidedDecisionTableEditorContent(org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent) MetaDataColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.MetaDataColumnSynchronizer) Overview(org.guvnor.common.services.shared.metadata.model.Overview) ActionInsertFactColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionInsertFactColumnConverter) LimitedEntryBRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLActionColumnSynchronizer) BRLActionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLActionColumnSynchronizer) ActionWorkItemExecuteColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionWorkItemExecuteColumnSynchronizer) ActionSetFieldColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.ActionSetFieldColumnConverter) LimitedEntryColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.LimitedEntryColumnConverter) ActionSetFieldColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ActionSetFieldColumnSynchronizer) PackageDataModelOracleBaselinePayload(org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleBaselinePayload) RowNumberColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.RowNumberColumnConverter) AttributeColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.AttributeColumnConverter) BRLActionVariableColumnConverter(org.drools.workbench.screens.guided.dtable.client.widget.table.model.converters.column.impl.BRLActionVariableColumnConverter) BRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BRLConditionColumnSynchronizer) LimitedEntryBRLConditionColumnSynchronizer(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.LimitedEntryBRLConditionColumnSynchronizer)

Aggregations

Overview (org.guvnor.common.services.shared.metadata.model.Overview)20 Test (org.junit.Test)11 Path (org.uberfire.backend.vfs.Path)11 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)8 Metadata (org.guvnor.common.services.shared.metadata.model.Metadata)8 PackageDataModelOracleBaselinePayload (org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleBaselinePayload)8 GuidedDecisionTableEditorContent (org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent)7 GuidedDecisionTableView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView)6 PackageDataModelOracle (org.kie.soup.project.datamodel.oracle.PackageDataModelOracle)6 ObservablePath (org.uberfire.backend.vfs.ObservablePath)6 Set (java.util.Set)5 PortableWorkDefinition (org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition)5 AsyncPackageDataModelOracle (org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle)5 ResourceOpenedEvent (org.uberfire.workbench.events.ResourceOpenedEvent)5 ArrayList (java.util.ArrayList)3 List (java.util.List)3 Collectors (java.util.stream.Collectors)3 PostConstruct (javax.annotation.PostConstruct)3 ApplicationScoped (javax.enterprise.context.ApplicationScoped)3 Event (javax.enterprise.event.Event)3