Search in sources :

Example 6 with PortableFloatParameterDefinition

use of org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition in project drools by kiegroup.

the class GuidedDTDRLPersistenceTest method testRHSExecuteWorkItemWithBindings.

@Test
public void testRHSExecuteWorkItemWithBindings() {
    GuidedDTDRLPersistence p = new GuidedDTDRLPersistence();
    String[] row = new String[] { "1", "desc", "true" };
    List<BaseColumn> allColumns = new ArrayList<BaseColumn>();
    allColumns.add(new RowNumberCol52());
    allColumns.add(new DescriptionCol52());
    List<ActionCol52> cols = new ArrayList<ActionCol52>();
    ActionWorkItemCol52 awi = new ActionWorkItemCol52();
    PortableWorkDefinition pwd = new PortableWorkDefinition();
    pwd.setName("work-item");
    awi.setWorkItemDefinition(pwd);
    PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition();
    p1.setName("BooleanParameter");
    p1.setValue(Boolean.TRUE);
    p1.setBinding("$b");
    pwd.addParameter(p1);
    PortableFloatParameterDefinition p2 = new PortableFloatParameterDefinition();
    p2.setName("FloatParameter");
    p2.setValue(123.456f);
    p2.setBinding("$f");
    pwd.addParameter(p2);
    PortableIntegerParameterDefinition p3 = new PortableIntegerParameterDefinition();
    p3.setName("IntegerParameter");
    p3.setValue(123);
    p3.setBinding("$i");
    pwd.addParameter(p3);
    PortableStringParameterDefinition p4 = new PortableStringParameterDefinition();
    p4.setName("StringParameter");
    p4.setValue("hello");
    p4.setBinding("$s");
    pwd.addParameter(p4);
    cols.add(awi);
    RuleModel rm = new RuleModel();
    allColumns.addAll(cols);
    List<DTCellValue52> rowData = DataUtilities.makeDataRowList(row);
    TemplateDataProvider rowDataProvider = new GuidedDTTemplateDataProvider(allColumns, rowData);
    p.doActions(allColumns, cols, rowDataProvider, rowData, rm);
    assertEquals(1, rm.rhs.length);
    // Examine RuleModel action
    ActionExecuteWorkItem aw = (ActionExecuteWorkItem) rm.rhs[0];
    assertNotNull(aw);
    PortableWorkDefinition mpwd = aw.getWorkDefinition();
    assertNotNull(mpwd);
    assertEquals(4, mpwd.getParameters().size());
    PortableBooleanParameterDefinition mp1 = (PortableBooleanParameterDefinition) mpwd.getParameter("BooleanParameter");
    assertNotNull(mp1);
    assertEquals(Boolean.TRUE, mp1.getValue());
    assertEquals("$b", mp1.getBinding());
    PortableFloatParameterDefinition mp2 = (PortableFloatParameterDefinition) mpwd.getParameter("FloatParameter");
    assertNotNull(mp2);
    assertEquals(new Float(123.456f), mp2.getValue());
    assertEquals("$f", mp2.getBinding());
    PortableIntegerParameterDefinition mp3 = (PortableIntegerParameterDefinition) mpwd.getParameter("IntegerParameter");
    assertNotNull(mp3);
    assertEquals(new Integer(123), mp3.getValue());
    assertEquals("$i", mp3.getBinding());
    PortableStringParameterDefinition mp4 = (PortableStringParameterDefinition) mpwd.getParameter("StringParameter");
    assertNotNull(mp4);
    assertEquals("hello", mp4.getValue());
    assertEquals("$s", mp4.getBinding());
}
Also used : PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition) ActionWorkItemCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemCol52) ActionCol52(org.drools.workbench.models.guided.dtable.shared.model.ActionCol52) ArrayList(java.util.ArrayList) GuidedDTTemplateDataProvider(org.drools.workbench.models.guided.dtable.backend.util.GuidedDTTemplateDataProvider) DTCellValue52(org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) DescriptionCol52(org.drools.workbench.models.guided.dtable.shared.model.DescriptionCol52) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) BaseColumn(org.drools.workbench.models.guided.dtable.shared.model.BaseColumn) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition) ActionExecuteWorkItem(org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem) RowNumberCol52(org.drools.workbench.models.guided.dtable.shared.model.RowNumberCol52) GuidedDTTemplateDataProvider(org.drools.workbench.models.guided.dtable.backend.util.GuidedDTTemplateDataProvider) TemplateDataProvider(org.drools.workbench.models.guided.dtable.backend.util.TemplateDataProvider) Test(org.junit.Test)

Example 7 with PortableFloatParameterDefinition

use of org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition in project drools-wb by kiegroup.

the class WorkItemsEditorServiceImpl method convertWorkItemParameters.

private Set<PortableParameterDefinition> convertWorkItemParameters(final Set<ParameterDefinition> parameters) {
    final Set<PortableParameterDefinition> pps = new HashSet<PortableParameterDefinition>();
    for (ParameterDefinition pd : parameters) {
        final DataType pdt = pd.getType();
        PortableParameterDefinition ppd = null;
        if (pdt instanceof BooleanDataType) {
            ppd = new PortableBooleanParameterDefinition();
        } else if (pdt instanceof FloatDataType) {
            ppd = new PortableFloatParameterDefinition();
        } else if (pdt instanceof IntegerDataType) {
            ppd = new PortableIntegerParameterDefinition();
        } else if (pdt instanceof ObjectDataType) {
            ppd = new PortableObjectParameterDefinition();
            final PortableObjectParameterDefinition oppd = (PortableObjectParameterDefinition) ppd;
            final ObjectDataType odt = (ObjectDataType) pdt;
            oppd.setClassName(odt.getClassName());
        } else if (pd.getType() instanceof StringDataType) {
            ppd = new PortableStringParameterDefinition();
        }
        if (ppd != null) {
            ppd.setName(pd.getName());
            pps.add(ppd);
        }
    }
    return pps;
}
Also used : PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) FloatDataType(org.jbpm.process.core.datatype.impl.type.FloatDataType) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition) IntegerDataType(org.jbpm.process.core.datatype.impl.type.IntegerDataType) PortableObjectParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableObjectParameterDefinition) PortableParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableParameterDefinition) ObjectDataType(org.jbpm.process.core.datatype.impl.type.ObjectDataType) PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) StringDataType(org.jbpm.process.core.datatype.impl.type.StringDataType) DataType(org.jbpm.process.core.datatype.DataType) StringDataType(org.jbpm.process.core.datatype.impl.type.StringDataType) ObjectDataType(org.jbpm.process.core.datatype.impl.type.ObjectDataType) IntegerDataType(org.jbpm.process.core.datatype.impl.type.IntegerDataType) FloatDataType(org.jbpm.process.core.datatype.impl.type.FloatDataType) BooleanDataType(org.jbpm.process.core.datatype.impl.type.BooleanDataType) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition) BooleanDataType(org.jbpm.process.core.datatype.impl.type.BooleanDataType) HashSet(java.util.HashSet) PortableObjectParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableObjectParameterDefinition) ParameterDefinition(org.jbpm.process.core.ParameterDefinition) PortableParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableParameterDefinition) PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition) PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition)

Example 8 with PortableFloatParameterDefinition

use of org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition in project drools by kiegroup.

the class RuleModelDRLPersistenceImpl method buildPortableParameterDefinition.

private PortableParameterDefinition buildPortableParameterDefinition(final String name, final String value, final Map<String, String> boundParams) {
    PortableParameterDefinition paramDef;
    String type = boundParams.get(value);
    if (type != null) {
        if (type.equals("Boolean")) {
            paramDef = new PortableBooleanParameterDefinition();
        } else if (type.equals("String")) {
            paramDef = new PortableStringParameterDefinition();
        } else if (type.equals("Float")) {
            paramDef = new PortableBooleanParameterDefinition();
        } else if (type.equals("Integer")) {
            paramDef = new PortableIntegerParameterDefinition();
        } else {
            paramDef = new PortableObjectParameterDefinition();
        }
        ((HasBinding) paramDef).setBinding(value);
    } else if (value.equals("true") || value.equals("false") || value.equals("Boolean.TRUE") || value.equals("Boolean.FALSE")) {
        paramDef = new PortableBooleanParameterDefinition();
        boolean b = value.equals("true") || value.equals("Boolean.TRUE");
        ((PortableBooleanParameterDefinition) paramDef).setValue(b);
    } else if (value.startsWith("\"")) {
        paramDef = new PortableStringParameterDefinition();
        ((PortableStringParameterDefinition) paramDef).setValue(value.substring(1, value.length() - 1));
    } else if (Character.isDigit(value.charAt(0))) {
        if (value.endsWith("f")) {
            paramDef = new PortableFloatParameterDefinition();
            ((PortableFloatParameterDefinition) paramDef).setValue(Float.parseFloat(value));
        } else {
            paramDef = new PortableIntegerParameterDefinition();
            ((PortableIntegerParameterDefinition) paramDef).setValue(Integer.parseInt(value));
        }
    } else {
        throw new RuntimeException("Unknown parameter " + value);
    }
    paramDef.setName(name.substring(1, name.length() - 1));
    return paramDef;
}
Also used : PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition) PortableObjectParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableObjectParameterDefinition) PortableParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableParameterDefinition) HasBinding(org.drools.workbench.models.datamodel.workitems.HasBinding) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition)

Example 9 with PortableFloatParameterDefinition

use of org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition in project drools by kiegroup.

the class RuleModelDRLPersistenceTest method testRHSExecuteWorkItemWithBindings.

@Test
public // populated in the RHS if the Pattern is bound to the same variable
void testRHSExecuteWorkItemWithBindings() {
    RuleModel m = new RuleModel();
    m.name = "WorkItem";
    FactPattern fp1 = new FactPattern("Person");
    fp1.setBoundName("$p");
    SingleFieldConstraint con1 = new SingleFieldConstraint();
    con1.setFieldType(DataType.TYPE_STRING);
    con1.setFieldName("name");
    con1.setOperator("==");
    con1.setValue("Michael");
    con1.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp1.addConstraint(con1);
    m.addLhsItem(fp1);
    FactPattern fp2 = new FactPattern("Boolean");
    fp2.setBoundName("$b");
    SingleFieldConstraint con2 = new SingleFieldConstraint();
    con2.setFieldType(DataType.TYPE_BOOLEAN);
    con2.setFieldName("this");
    con2.setOperator("==");
    con2.setValue("true");
    con2.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp2.addConstraint(con2);
    m.addLhsItem(fp2);
    FactPattern fp3 = new FactPattern("Float");
    fp3.setBoundName("$f");
    SingleFieldConstraint con3 = new SingleFieldConstraint();
    con3.setFieldType(DataType.TYPE_NUMERIC_FLOAT);
    con3.setFieldName("this");
    con3.setOperator("==");
    con3.setValue("123.456f");
    con3.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp3.addConstraint(con3);
    m.addLhsItem(fp3);
    FactPattern fp4 = new FactPattern("Integer");
    fp4.setBoundName("$i");
    SingleFieldConstraint con4 = new SingleFieldConstraint();
    con4.setFieldType(DataType.TYPE_NUMERIC_INTEGER);
    con4.setFieldName("this");
    con4.setOperator("==");
    con4.setValue("123");
    con4.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp4.addConstraint(con4);
    m.addLhsItem(fp4);
    FactPattern fp5 = new FactPattern("String");
    fp5.setBoundName("$s");
    SingleFieldConstraint con5 = new SingleFieldConstraint();
    con5.setFieldType(DataType.TYPE_STRING);
    con5.setFieldName("this");
    con5.setOperator("==");
    con5.setValue("hello");
    con5.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp5.addConstraint(con5);
    m.addLhsItem(fp5);
    ActionExecuteWorkItem awi = new ActionExecuteWorkItem();
    PortableWorkDefinition pwd = new PortableWorkDefinition();
    pwd.setName("WorkItem");
    awi.setWorkDefinition(pwd);
    PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition();
    p1.setName("BooleanParameter");
    p1.setBinding("$b");
    p1.setValue(Boolean.TRUE);
    pwd.addParameter(p1);
    PortableFloatParameterDefinition p2 = new PortableFloatParameterDefinition();
    p2.setName("FloatParameter");
    p2.setBinding("$f");
    p2.setValue(123.456f);
    pwd.addParameter(p2);
    PortableIntegerParameterDefinition p3 = new PortableIntegerParameterDefinition();
    p3.setName("IntegerParameter");
    p3.setBinding("$i");
    p3.setValue(123);
    pwd.addParameter(p3);
    PortableStringParameterDefinition p4 = new PortableStringParameterDefinition();
    p4.setName("StringParameter");
    p4.setBinding("$s");
    p4.setValue("hello");
    pwd.addParameter(p4);
    m.addRhsItem(awi);
    String result = RuleModelDRLPersistenceImpl.getInstance().marshal(m);
    assertTrue(result.indexOf("org.drools.core.process.instance.WorkItemManager wim = (org.drools.core.process.instance.WorkItemManager) drools.getWorkingMemory().getWorkItemManager();") != -1);
    assertTrue(result.indexOf("org.drools.core.process.instance.impl.WorkItemImpl wiWorkItem = new org.drools.core.process.instance.impl.WorkItemImpl();") != -1);
    assertTrue(result.indexOf("wiWorkItem.getParameters().put( \"BooleanParameter\", $b );") != -1);
    assertTrue(result.indexOf("wiWorkItem.getParameters().put( \"FloatParameter\", $f );") != -1);
    assertTrue(result.indexOf("wiWorkItem.getParameters().put( \"IntegerParameter\", $i );") != -1);
    assertTrue(result.indexOf("wiWorkItem.getParameters().put( \"StringParameter\", $s );") != -1);
    assertTrue(result.indexOf("wim.internalExecuteWorkItem( wiWorkItem );") != -1);
    checkMarshalling(null, m);
}
Also used : SingleFieldConstraint(org.drools.workbench.models.datamodel.rule.SingleFieldConstraint) BaseSingleFieldConstraint(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint) PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) FromEntryPointFactPattern(org.drools.workbench.models.datamodel.rule.FromEntryPointFactPattern) CompositeFactPattern(org.drools.workbench.models.datamodel.rule.CompositeFactPattern) FromCollectCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern) FactPattern(org.drools.workbench.models.datamodel.rule.FactPattern) FromAccumulateCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern) FromCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition) ActionExecuteWorkItem(org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) Test(org.junit.Test)

Example 10 with PortableFloatParameterDefinition

use of org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition in project drools by kiegroup.

the class RuleModelDRLPersistenceTest method testRHSExecuteWorkItemWithMissingBindings1.

@Test
public // populated in the RHS if the Pattern is *NOT* bound to the same variable
void testRHSExecuteWorkItemWithMissingBindings1() {
    RuleModel m = new RuleModel();
    m.name = "WorkItem";
    FactPattern fp1 = new FactPattern("Person");
    fp1.setBoundName("$p");
    SingleFieldConstraint con1 = new SingleFieldConstraint();
    con1.setFieldType(DataType.TYPE_STRING);
    con1.setFieldName("name");
    con1.setOperator("==");
    con1.setValue("Michael");
    con1.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp1.addConstraint(con1);
    m.addLhsItem(fp1);
    FactPattern fp2 = new FactPattern("Boolean");
    fp2.setBoundName("$b1");
    SingleFieldConstraint con2 = new SingleFieldConstraint();
    con2.setFieldType(DataType.TYPE_BOOLEAN);
    con2.setFieldName("this");
    con2.setOperator("==");
    con2.setValue("true");
    con2.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp2.addConstraint(con2);
    m.addLhsItem(fp2);
    FactPattern fp3 = new FactPattern("Float");
    fp3.setBoundName("$f1");
    SingleFieldConstraint con3 = new SingleFieldConstraint();
    con3.setFieldType(DataType.TYPE_NUMERIC_FLOAT);
    con3.setFieldName("this");
    con3.setOperator("==");
    con3.setValue("123.456f");
    con3.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp3.addConstraint(con3);
    m.addLhsItem(fp3);
    FactPattern fp4 = new FactPattern("Integer");
    fp4.setBoundName("$i1");
    SingleFieldConstraint con4 = new SingleFieldConstraint();
    con4.setFieldType(DataType.TYPE_NUMERIC_INTEGER);
    con4.setFieldName("this");
    con4.setOperator("==");
    con4.setValue("123");
    con4.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp4.addConstraint(con4);
    m.addLhsItem(fp4);
    FactPattern fp5 = new FactPattern("String");
    fp5.setBoundName("$s1");
    SingleFieldConstraint con5 = new SingleFieldConstraint();
    con5.setFieldType(DataType.TYPE_STRING);
    con5.setFieldName("this");
    con5.setOperator("==");
    con5.setValue("hello");
    con5.setConstraintValueType(SingleFieldConstraint.TYPE_LITERAL);
    fp5.addConstraint(con5);
    m.addLhsItem(fp5);
    ActionExecuteWorkItem awi = new ActionExecuteWorkItem();
    PortableWorkDefinition pwd = new PortableWorkDefinition();
    pwd.setName("WorkItem");
    awi.setWorkDefinition(pwd);
    PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition();
    p1.setName("BooleanParameter");
    p1.setBinding("$b");
    p1.setValue(Boolean.TRUE);
    pwd.addParameter(p1);
    PortableFloatParameterDefinition p2 = new PortableFloatParameterDefinition();
    p2.setName("FloatParameter");
    p2.setBinding("$f");
    p2.setValue(123.456f);
    pwd.addParameter(p2);
    PortableIntegerParameterDefinition p3 = new PortableIntegerParameterDefinition();
    p3.setName("IntegerParameter");
    p3.setBinding("$i");
    p3.setValue(123);
    pwd.addParameter(p3);
    PortableStringParameterDefinition p4 = new PortableStringParameterDefinition();
    p4.setName("StringParameter");
    p4.setBinding("$s");
    p4.setValue("hello");
    pwd.addParameter(p4);
    m.addRhsItem(awi);
    String result = RuleModelDRLPersistenceImpl.getInstance().marshal(m);
    assertTrue(result.indexOf("org.drools.core.process.instance.WorkItemManager wim = (org.drools.core.process.instance.WorkItemManager) drools.getWorkingMemory().getWorkItemManager();") != -1);
    assertTrue(result.indexOf("org.drools.core.process.instance.impl.WorkItemImpl wiWorkItem = new org.drools.core.process.instance.impl.WorkItemImpl();") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"BooleanParameter\", $b1 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"FloatParameter\", $f1 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"IntegerParameter\", $i1 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"StringParameter\", $s1 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"BooleanParameter\", $b2 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"FloatParameter\", $f2 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"IntegerParameter\", $i2 );") != -1);
    assertFalse(result.indexOf("wiWorkItem.getParameters().put( \"StringParameter\", $s2 );") != -1);
    assertTrue(result.indexOf("wim.internalExecuteWorkItem( wiWorkItem );") != -1);
    checkMarshalling(null, m);
}
Also used : SingleFieldConstraint(org.drools.workbench.models.datamodel.rule.SingleFieldConstraint) BaseSingleFieldConstraint(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint) PortableStringParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition) PortableIntegerParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition) PortableFloatParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) FromEntryPointFactPattern(org.drools.workbench.models.datamodel.rule.FromEntryPointFactPattern) CompositeFactPattern(org.drools.workbench.models.datamodel.rule.CompositeFactPattern) FromCollectCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern) FactPattern(org.drools.workbench.models.datamodel.rule.FactPattern) FromAccumulateCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern) FromCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern) PortableBooleanParameterDefinition(org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition) ActionExecuteWorkItem(org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) Test(org.junit.Test)

Aggregations

PortableFloatParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableFloatParameterDefinition)16 PortableBooleanParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableBooleanParameterDefinition)15 PortableWorkDefinition (org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition)14 ActionExecuteWorkItem (org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem)13 RuleModel (org.drools.workbench.models.datamodel.rule.RuleModel)13 PortableIntegerParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableIntegerParameterDefinition)13 PortableStringParameterDefinition (org.drools.workbench.models.datamodel.workitems.PortableStringParameterDefinition)13 Test (org.junit.Test)13 ActionWorkItemCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemCol52)7 ArrayList (java.util.ArrayList)6 ActionWorkItemFieldValue (org.drools.workbench.models.datamodel.rule.ActionWorkItemFieldValue)6 CompositeFactPattern (org.drools.workbench.models.datamodel.rule.CompositeFactPattern)6 FactPattern (org.drools.workbench.models.datamodel.rule.FactPattern)6 FromAccumulateCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern)6 FromCollectCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern)6 FromCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern)6 FromEntryPointFactPattern (org.drools.workbench.models.datamodel.rule.FromEntryPointFactPattern)6 GuidedDTTemplateDataProvider (org.drools.workbench.models.guided.dtable.backend.util.GuidedDTTemplateDataProvider)6 TemplateDataProvider (org.drools.workbench.models.guided.dtable.backend.util.TemplateDataProvider)6 ActionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionCol52)6