Search in sources :

Example 11 with BRLVariableColumn

use of org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn in project drools-wb by kiegroup.

the class GuidedDecisionTableLHSBuilder method addLiteralColumn.

private List<BRLVariableColumn> addLiteralColumn(final LiteralValueBuilder vb) {
    final List<BRLVariableColumn> variableColumns = new ArrayList<BRLVariableColumn>();
    final BRLConditionVariableColumn parameterColumn = new BRLConditionVariableColumn("", DataType.TYPE_BOOLEAN);
    variableColumns.add(parameterColumn);
    // Store DRL fragment for use by GuidedDecisionTableRHSBuilder
    drlFragments.add(vb.getTemplate());
    return variableColumns;
}
Also used : BRLVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn) ArrayList(java.util.ArrayList) BRLConditionVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLConditionVariableColumn)

Example 12 with BRLVariableColumn

use of org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn in project drools-wb by kiegroup.

the class GuidedDecisionTableRHSBuilder method addBRLFragmentColumn.

private List<BRLVariableColumn> addBRLFragmentColumn(final ParameterizedValueBuilder vb) {
    final List<BRLVariableColumn> variableColumns = new ArrayList<BRLVariableColumn>();
    for (String parameter : vb.getParameters()) {
        final BRLActionVariableColumn parameterColumn = new BRLActionVariableColumn(parameter, DataType.TYPE_OBJECT);
        variableColumns.add(parameterColumn);
    }
    // Store DRL fragment for use by GuidedDecisionTableRHSBuilder
    drlFragments.add(vb.getTemplate());
    return variableColumns;
}
Also used : BRLVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn) ArrayList(java.util.ArrayList) BRLActionVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLActionVariableColumn)

Example 13 with BRLVariableColumn

use of org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn in project drools-wb by kiegroup.

the class GuidedDecisionTableRHSBuilder method addLiteralColumn.

private List<BRLVariableColumn> addLiteralColumn(final LiteralValueBuilder vb) {
    final List<BRLVariableColumn> variableColumns = new ArrayList<BRLVariableColumn>();
    final BRLActionVariableColumn parameterColumn = new BRLActionVariableColumn("", DataType.TYPE_BOOLEAN);
    variableColumns.add(parameterColumn);
    // Store DRL fragment for use by GuidedDecisionTableRHSBuilder
    drlFragments.add(vb.getTemplate());
    return variableColumns;
}
Also used : BRLVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn) ArrayList(java.util.ArrayList) BRLActionVariableColumn(org.drools.workbench.models.guided.dtable.shared.model.BRLActionVariableColumn)

Aggregations

BRLVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn)13 ArrayList (java.util.ArrayList)10 BRLActionVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLActionVariableColumn)6 BRLConditionVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLConditionVariableColumn)6 TreeSet (java.util.TreeSet)3 BaseColumn (org.drools.workbench.models.guided.dtable.shared.model.BaseColumn)3 HashMap (java.util.HashMap)2 InterpolationVariable (org.drools.workbench.models.datamodel.rule.InterpolationVariable)2 RuleModelVisitor (org.drools.workbench.models.datamodel.rule.visitors.RuleModelVisitor)2 BRLActionColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLActionColumn)2 BRLConditionColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLConditionColumn)2 DTCellValue52 (org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)2 GuidedDecisionTableRHSBuilder (org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableRHSBuilder)2 GuidedDecisionTableSourceBuilder (org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableSourceBuilder)2 ParameterizedValueBuilder (org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.ParameterizedValueBuilder)2 List (java.util.List)1 ActionRetractFact (org.drools.workbench.models.datamodel.rule.ActionRetractFact)1 IAction (org.drools.workbench.models.datamodel.rule.IAction)1 IPattern (org.drools.workbench.models.datamodel.rule.IPattern)1 RuleModel (org.drools.workbench.models.datamodel.rule.RuleModel)1