Search in sources :

Example 1 with ModelMetaDataEnhancer

use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.

the class ReceiverTest method testInit.

@Test
public void testInit() throws Exception {
    final GuidedDecisionTable52 table1 = analyzerProvider.makeAnalyser().withPersonAgeColumn(">").withPersonApprovedActionSetField().withData(DataBuilderProvider.row(0, true).end()).buildTable();
    receiver.received(new Initialize("testUUID", table1, new ModelMetaDataEnhancer(table1).getHeaderMetaData(), analyzerProvider.getFactTypes(), "dd-MMM-yyyy"));
    verify(poster).post(issuesArgumentCaptor.capture());
}
Also used : GuidedDecisionTable52(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52) ModelMetaDataEnhancer(org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer) Initialize(org.drools.workbench.services.verifier.plugin.client.api.Initialize) Test(org.junit.Test)

Example 2 with ModelMetaDataEnhancer

use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.

the class AnalyzerUpdateTestBase method appendActionColumn.

protected void appendActionColumn(final int columnNumber, final ActionSetFieldCol52 actionSetField, final Comparable... cellValues) throws BuildException {
    table52.getActionCols().add(actionSetField);
    for (int i = 0; i < cellValues.length; i++) {
        table52.getData().get(i).add(new DTCellValue52(cellValues[i]));
    }
    updateManager.newColumn(table52, new ModelMetaDataEnhancer(table52).getHeaderMetaData(), analyzerProvider.getFactTypes(), columnNumber);
}
Also used : ModelMetaDataEnhancer(org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer) DTCellValue52(org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)

Example 3 with ModelMetaDataEnhancer

use of org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer in project drools-wb by kiegroup.

the class AnalyzerUpdateTestBase method insertConditionColumn.

protected void insertConditionColumn(final int columnNumber, final BRLConditionColumn brlConditionColumn, final Comparable... cellValues) throws BuildException {
    table52.getConditions().add(brlConditionColumn);
    for (int i = 0; i < cellValues.length; i++) {
        table52.getData().get(i).add(new DTCellValue52(cellValues[i]));
    }
    updateManager.newColumn(table52, new ModelMetaDataEnhancer(table52).getHeaderMetaData(), analyzerProvider.getFactTypes(), columnNumber);
}
Also used : ModelMetaDataEnhancer(org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer) DTCellValue52(org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)

Aggregations

ModelMetaDataEnhancer (org.drools.workbench.services.verifier.plugin.client.builders.ModelMetaDataEnhancer)3 DTCellValue52 (org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)2 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)1 Initialize (org.drools.workbench.services.verifier.plugin.client.api.Initialize)1 Test (org.junit.Test)1