Search in sources :

Example 1 with ActionGlobalCollectionAdd

use of org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd in project drools by kiegroup.

the class RuleModelDRLPersistenceUnmarshallingTest method testGlobalCollectionAdd.

@Test
public void testGlobalCollectionAdd() {
    // BZ-1013682
    String drl = "package org.mortgages;\n" + "\n" + "import org.mortgages.LoanApplication;\n" + "\n" + "rule \"Bankruptcy history\"\n" + "  dialect \"mvel\"\n" + "  when\n" + "    a : LoanApplication( )\n" + "  then\n" + "    keke.add( a );\n" + "end";
    HashMap<String, String> globals = new HashMap<>();
    globals.put("keke", "java.util.ArrayList");
    when(dmo.getPackageGlobals()).thenReturn(globals);
    RuleModel m = RuleModelDRLPersistenceImpl.getInstance().unmarshal(drl, Collections.emptyList(), dmo);
    assertTrue(m.rhs[0] instanceof ActionGlobalCollectionAdd);
    ActionGlobalCollectionAdd actionGlobalCollectionAdd = (ActionGlobalCollectionAdd) m.rhs[0];
    assertEquals("keke", actionGlobalCollectionAdd.getGlobalName());
    assertEquals("a", actionGlobalCollectionAdd.getFactName());
}
Also used : HashMap(java.util.HashMap) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) ActionGlobalCollectionAdd(org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd) Test(org.junit.Test)

Example 2 with ActionGlobalCollectionAdd

use of org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd in project drools by kiegroup.

the class RuleModelDRLPersistenceImpl method parseRhs.

private void parseRhs(final RuleModel m, final String rhs, final boolean isJavaDialect, final Map<String, String> boundParams, final ExpandedDRLInfo expandedDRLInfo, final PackageDataModelOracle dmo, final Collection<RuleModelIActionPersistenceExtension> extensions) throws RuleModelDRLPersistenceException {
    PortableWorkDefinition pwd = null;
    Map<String, List<String>> setStatements = new HashMap<String, List<String>>();
    Map<String, Integer> setStatementsPosition = new HashMap<String, Integer>();
    Map<String, String> factsType = new HashMap<String, String>();
    String modifiedVariable = null;
    String modifiers = null;
    int lineCounter = -1;
    String[] lines = rhs.split("\n");
    for (String line : lines) {
        lineCounter++;
        line = line.trim();
        List<RuleModelIActionPersistenceExtension> matchingExtensions = getMatchingExtensionsForLine(line, extensions);
        if (matchingExtensions.isEmpty()) {
        // Continue with hardcoded parsers
        } else if (matchingExtensions.size() > 1) {
            throw new RuleModelDRLPersistenceException("Ambiguous RuleModelIActionPersistenceExtension implementations (" + matchingExtensions + ") found for line " + line);
        } else {
            unmarshalUsingExtension(m, matchingExtensions.get(0), line);
            continue;
        }
        if (expandedDRLInfo.hasDsl) {
            String dslLine = expandedDRLInfo.dslStatementsInRhs.get(lineCounter);
            while (dslLine != null) {
                List<RuleModelIActionPersistenceExtension> matchingExtensionsDslLine = getMatchingExtensionsForLine(dslLine, extensions);
                if (matchingExtensionsDslLine.isEmpty()) {
                    m.addRhsItem(toDSLSentence(expandedDRLInfo.rhsDslPatterns, dslLine));
                } else if (matchingExtensionsDslLine.size() > 1) {
                    throw new RuleModelDRLPersistenceException("Ambiguous RuleModelIActionPersistenceExtension implementations (" + matchingExtensionsDslLine + ") found for line " + line);
                } else {
                    unmarshalUsingExtension(m, matchingExtensionsDslLine.get(0), dslLine);
                }
                dslLine = expandedDRLInfo.dslStatementsInRhs.get(++lineCounter);
            }
        }
        if (modifiedVariable != null) {
            int modifyBlockEnd = line.lastIndexOf('}');
            if (modifiers == null) {
                modifiers = modifyBlockEnd > 0 ? line.substring(line.indexOf('{') + 1, modifyBlockEnd).trim() : line.substring(line.indexOf('{') + 1).trim();
            } else if (modifyBlockEnd != 0) {
                modifiers += modifyBlockEnd > 0 ? line.substring(0, modifyBlockEnd).trim() : line;
            }
            if (modifyBlockEnd >= 0) {
                ActionUpdateField action = new ActionUpdateField();
                action.setVariable(modifiedVariable);
                m.addRhsItem(action);
                addModifiersToAction(modifiers, action, modifiedVariable, boundParams, dmo, m, isJavaDialect);
                modifiedVariable = null;
                modifiers = null;
            }
        } else if (line.startsWith("insertLogical")) {
            String fact = unwrapParenthesis(line);
            String type = getStatementType(fact, factsType);
            if (type != null) {
                boundParams.put(fact, type);
                ActionInsertLogicalFact action = new ActionInsertLogicalFact(type);
                m.addRhsItem(action);
                if (factsType.containsKey(fact)) {
                    action.setBoundName(fact);
                    addSettersToAction(setStatements, fact, action, boundParams, dmo, m, isJavaDialect);
                }
            }
        } else if (line.startsWith("insert")) {
            String fact = unwrapParenthesis(line);
            String type = getStatementType(fact, factsType);
            if (type != null) {
                boundParams.put(fact, type);
                ActionInsertFact action = new ActionInsertFact(type);
                m.addRhsItem(action);
                if (factsType.containsKey(fact)) {
                    action.setBoundName(fact);
                    addSettersToAction(setStatements, fact, action, boundParams, dmo, m, isJavaDialect);
                }
            }
        } else if (line.startsWith("update")) {
            String variable = unwrapParenthesis(line);
            ActionUpdateField action = new ActionUpdateField();
            action.setVariable(variable);
            m.addRhsItem(action);
            addSettersToAction(setStatements, variable, action, boundParams, dmo, m, isJavaDialect);
        } else if (line.startsWith("modify")) {
            int modifyBlockEnd = line.lastIndexOf('}');
            if (modifyBlockEnd > 0) {
                String variable = line.substring(line.indexOf('(') + 1, line.indexOf(')')).trim();
                ActionUpdateField action = new ActionUpdateField();
                action.setVariable(variable);
                m.addRhsItem(action);
                addModifiersToAction(line.substring(line.indexOf('{') + 1, modifyBlockEnd).trim(), action, variable, boundParams, dmo, m, isJavaDialect);
            } else {
                modifiedVariable = line.substring(line.indexOf('(') + 1, line.indexOf(')')).trim();
                int modifyBlockStart = line.indexOf('{');
                if (modifyBlockStart > 0) {
                    modifiers = line.substring(modifyBlockStart + 1).trim();
                }
            }
        } else if (line.startsWith("retract") || line.startsWith("delete")) {
            String variable = unwrapParenthesis(line);
            m.addRhsItem(new ActionRetractFact(variable));
        } else if (line.startsWith("org.drools.core.process.instance.impl.WorkItemImpl wiWorkItem")) {
            ActionExecuteWorkItem awi = new ActionExecuteWorkItem();
            pwd = new PortableWorkDefinition();
            pwd.setName("WorkItem");
            awi.setWorkDefinition(pwd);
            m.addRhsItem(awi);
        } else if (line.startsWith("wiWorkItem.getParameters().put")) {
            String statement = line.substring("wiWorkItem.getParameters().put".length());
            statement = unwrapParenthesis(statement);
            int commaPos = statement.indexOf(',');
            String name = statement.substring(0, commaPos).trim();
            String value = statement.substring(commaPos + 1).trim();
            pwd.addParameter(buildPortableParameterDefinition(name, value, boundParams));
        } else if (line.startsWith("wim.internalExecuteWorkItem") || line.startsWith("wiWorkItem.setName")) {
        // ignore
        } else {
            int dotPos = line.indexOf('.');
            int argStart = line.indexOf('(');
            if (dotPos > 0 && argStart > dotPos) {
                String variable = line.substring(0, dotPos).trim();
                if (boundParams.containsKey(variable) || factsType.containsKey(variable) || expandedDRLInfo.hasGlobal(variable)) {
                    if (isJavaIdentifier(variable)) {
                        String methodName = line.substring(dotPos + 1, argStart).trim();
                        if (isJavaIdentifier(methodName)) {
                            if (getSettedField(m, methodName, boundParams.get(variable), dmo) != null) {
                                List<String> setters = setStatements.get(variable);
                                if (setters == null) {
                                    setters = new ArrayList<String>();
                                    setStatements.put(variable, setters);
                                }
                                if (!setStatementsPosition.containsKey(variable)) {
                                    setStatementsPosition.put(variable, lineCounter);
                                }
                                setters.add(line);
                            } else if (methodName.equals("add") && expandedDRLInfo.hasGlobal(variable)) {
                                String factName = line.substring(argStart + 1, line.lastIndexOf(')')).trim();
                                ActionGlobalCollectionAdd actionGlobalCollectionAdd = new ActionGlobalCollectionAdd();
                                actionGlobalCollectionAdd.setGlobalName(variable);
                                actionGlobalCollectionAdd.setFactName(factName);
                                m.addRhsItem(actionGlobalCollectionAdd);
                            } else {
                                m.addRhsItem(getActionCallMethod(m, isJavaDialect, boundParams, dmo, line, variable, methodName));
                            }
                            continue;
                        }
                    }
                }
            }
            int eqPos = line.indexOf('=');
            boolean addFreeFormLine = line.trim().length() > 0;
            if (eqPos > 0) {
                String field = line.substring(0, eqPos).trim();
                if ("java.text.SimpleDateFormat sdf".equals(field) || "org.drools.core.process.instance.WorkItemManager wim".equals(field)) {
                    addFreeFormLine = false;
                }
                String[] split = field.split(" ");
                if (split.length == 2) {
                    factsType.put(split[1], split[0]);
                    addFreeFormLine &= !isInsertedFact(lines, lineCounter, split[1]);
                }
            }
            if (addFreeFormLine) {
                FreeFormLine ffl = new FreeFormLine();
                ffl.setText(line);
                m.addRhsItem(ffl);
            }
        }
    }
    // variable they are modifying was recorded as Free Format DRL and hence the "sets" need to be Free Format DRL too.
    for (Map.Entry<String, List<String>> entry : setStatements.entrySet()) {
        if (boundParams.containsKey(entry.getKey())) {
            ActionSetField action = new ActionSetField(entry.getKey());
            addSettersToAction(entry.getValue(), action, entry.getKey(), boundParams, dmo, m, isJavaDialect);
            m.addRhsItem(action, setStatementsPosition.get(entry.getKey()));
        } else {
            FreeFormLine action = new FreeFormLine();
            StringBuilder sb = new StringBuilder();
            for (String setter : entry.getValue()) {
                sb.append(setter).append("\n");
            }
            action.setText(sb.toString());
            m.addRhsItem(action, setStatementsPosition.get(entry.getKey()));
        }
    }
    if (expandedDRLInfo.hasDsl) {
        String dslLine = expandedDRLInfo.dslStatementsInRhs.get(++lineCounter);
        while (dslLine != null) {
            m.addRhsItem(toDSLSentence(expandedDRLInfo.rhsDslPatterns, dslLine));
            dslLine = expandedDRLInfo.dslStatementsInRhs.get(++lineCounter);
        }
    }
}
Also used : HashMap(java.util.HashMap) ActionRetractFact(org.drools.workbench.models.datamodel.rule.ActionRetractFact) ActionUpdateField(org.drools.workbench.models.datamodel.rule.ActionUpdateField) PortableWorkDefinition(org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition) ArrayList(java.util.ArrayList) StringUtils.splitArgumentsList(org.drools.core.util.StringUtils.splitArgumentsList) List(java.util.List) ActionFieldList(org.drools.workbench.models.datamodel.rule.ActionFieldList) ActionExecuteWorkItem(org.drools.workbench.models.datamodel.rule.ActionExecuteWorkItem) RuleModelDRLPersistenceException(org.drools.workbench.models.commons.backend.rule.exception.RuleModelDRLPersistenceException) FieldConstraint(org.drools.workbench.models.datamodel.rule.FieldConstraint) ConnectiveConstraint(org.drools.workbench.models.datamodel.rule.ConnectiveConstraint) CompositeFieldConstraint(org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint) SingleFieldConstraint(org.drools.workbench.models.datamodel.rule.SingleFieldConstraint) BaseSingleFieldConstraint(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint) FreeFormLine(org.drools.workbench.models.datamodel.rule.FreeFormLine) ActionSetField(org.drools.workbench.models.datamodel.rule.ActionSetField) ActionInsertFact(org.drools.workbench.models.datamodel.rule.ActionInsertFact) ActionGlobalCollectionAdd(org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd) Map(java.util.Map) HashMap(java.util.HashMap) ActionInsertLogicalFact(org.drools.workbench.models.datamodel.rule.ActionInsertLogicalFact)

Example 3 with ActionGlobalCollectionAdd

use of org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd in project drools by kiegroup.

the class RuleModelDRLPersistenceTest method testBasics2.

@Test
public void testBasics2() {
    final RuleModelPersistence p = RuleModelDRLPersistenceImpl.getInstance();
    final RuleModel m = new RuleModel();
    m.addLhsItem(new FactPattern("Person"));
    m.addLhsItem(new FactPattern("Accident"));
    m.addAttribute(new RuleAttribute("no-loop", "true"));
    m.addRhsItem(new ActionInsertFact("Report"));
    ActionGlobalCollectionAdd ag = new ActionGlobalCollectionAdd();
    ag.setFactName("x");
    ag.setGlobalName("g");
    m.addRhsItem(ag);
    m.name = "my rule";
    final String drl = p.marshal(m);
    assertTrue(drl.indexOf("Person( )") > -1);
    assertTrue(drl.indexOf("Accident( )") > -1);
    assertTrue(drl.indexOf("no-loop true") > -1);
    assertTrue(drl.indexOf("org.kie") == -1);
    assertTrue(drl.indexOf("g.add( x );") > -1);
    PackageDataModelOracle dmo = mock(PackageDataModelOracle.class);
    RuleModel rm_ = RuleModelDRLPersistenceImpl.getInstance().unmarshal(drl, Collections.EMPTY_LIST, dmo);
    assertEquals(2, rm_.rhs.length);
}
Also used : ActionInsertFact(org.drools.workbench.models.datamodel.rule.ActionInsertFact) RuleAttribute(org.drools.workbench.models.datamodel.rule.RuleAttribute) PackageDataModelOracle(org.kie.soup.project.datamodel.oracle.PackageDataModelOracle) 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) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) ActionGlobalCollectionAdd(org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd) Test(org.junit.Test)

Example 4 with ActionGlobalCollectionAdd

use of org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd in project drools-wb by kiegroup.

the class RuleModelCloneVisitor method visitActionGlobalCollectionAdd.

private ActionGlobalCollectionAdd visitActionGlobalCollectionAdd(ActionGlobalCollectionAdd agca) {
    ActionGlobalCollectionAdd clone = new ActionGlobalCollectionAdd();
    clone.setFactName(agca.getFactName());
    clone.setGlobalName(agca.getGlobalName());
    return clone;
}
Also used : ActionGlobalCollectionAdd(org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd)

Example 5 with ActionGlobalCollectionAdd

use of org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd in project drools-wb by kiegroup.

the class RuleModelCloneVisitorTest method testRuleModelCloning.

@Test
public void testRuleModelCloning() {
    RuleModel model = new RuleModel();
    // --------------------------------------------------------------------------------------------------------------
    // LHS
    // --------------------------------------------------------------------------------------------------------------
    // 
    RuleAttribute attribute = new RuleAttribute("att1_name", "att1_val");
    model.addAttribute(attribute);
    RuleMetadata metadata = new RuleMetadata("meta1_name", "meta1_val");
    model.addMetadata(metadata);
    FactPattern f1 = buildFactPattern();
    FactPattern f2 = new FactPattern();
    f2.setBoundName("$f2");
    f2.setFactType("Fact2");
    f2.addConstraint(buildCompositeFieldConstraint());
    CompositeFactPattern composite = new CompositeFactPattern();
    composite.setType(CompositeFactPattern.COMPOSITE_TYPE_EXISTS);
    composite.addFactPattern(f1);
    composite.addFactPattern(f2);
    model.addLhsItem(composite);
    model.addLhsItem(buildFromAccumulateCompositeFactPattern());
    model.addLhsItem(buildFromCollectCompositeFactPattern());
    model.addLhsItem(buildFromCompositeFactPattern());
    model.addLhsItem(buildFreeFormLine());
    model.addLhsItem(buildDslSentence());
    ActionGlobalCollectionAdd addGlobal = new ActionGlobalCollectionAdd();
    addGlobal.setFactName("MyFact");
    addGlobal.setGlobalName("glist");
    model.addRhsItem(addGlobal);
    // --------------------------------------------------------------------------------------------------------------
    // RHS
    // --------------------------------------------------------------------------------------------------------------
    // 
    ActionInsertFact aif = new ActionInsertFact();
    aif.setBoundName("$f");
    aif.setFactType("FactType");
    aif.addFieldValue(buildActionFieldValue());
    aif.addFieldValue(buildActionFieldValue());
    model.addRhsItem(aif);
    ActionUpdateField auf = new ActionUpdateField();
    auf.setVariable("$var");
    auf.addFieldValue(buildActionFieldValue());
    auf.addFieldValue(buildActionFieldValue());
    model.addRhsItem(auf);
    ActionSetField asf = new ActionSetField();
    asf.setVariable("$var");
    asf.addFieldValue(buildActionFieldValue());
    asf.addFieldValue(buildActionFieldValue());
    model.addRhsItem(asf);
    ActionRetractFact arf = new ActionRetractFact();
    arf.setVariableName("$f");
    model.addRhsItem(arf);
    ActionCallMethod callMethod1 = new ActionCallMethod();
    callMethod1.setVariable("var1");
    callMethod1.setMethodName("testMethod1 ");
    callMethod1.setState(ActionCallMethod.TYPE_DEFINED);
    callMethod1.addFieldValue(new ActionFieldFunction("field1", "value1", "type1"));
    model.addRhsItem(callMethod1);
    ActionCallMethod callMethod2 = new ActionCallMethod();
    callMethod2.setVariable("var2");
    callMethod2.setMethodName("testMethod2 ");
    callMethod2.setState(ActionCallMethod.TYPE_UNDEFINED);
    callMethod2.addFieldValue(new ActionFieldFunction("field2", "value2", "type2"));
    model.addRhsItem(callMethod2);
    model.addRhsItem(buildFreeFormLine());
    // --------------------------------------------------------------------------------------------------------------
    // Clone and verify
    // --------------------------------------------------------------------------------------------------------------
    // 
    RuleModel clone = new RuleModelCloneVisitor().visitRuleModel(model);
    assertArrayEquals(model.attributes, clone.attributes);
    int attIndex = 0;
    for (RuleAttribute att : model.attributes) {
        assertNotSame(att, clone.attributes[attIndex++]);
    }
    assertArrayEquals(model.metadataList, clone.metadataList);
    int metIndex = 0;
    for (RuleMetadata met : model.metadataList) {
        assertNotSame(met, clone.metadataList[metIndex++]);
    }
    assertArrayEquals(model.lhs, clone.lhs);
    int lhsIndex = 0;
    for (IPattern pattern : model.lhs) {
        assertNotSame(pattern, clone.lhs[lhsIndex++]);
    }
    assertArrayEquals(model.rhs, clone.rhs);
    int rhsIndex = 0;
    for (IAction action : model.rhs) {
        assertNotSame(action, clone.rhs[rhsIndex++]);
    }
}
Also used : IPattern(org.drools.workbench.models.datamodel.rule.IPattern) IAction(org.drools.workbench.models.datamodel.rule.IAction) ActionCallMethod(org.drools.workbench.models.datamodel.rule.ActionCallMethod) IFactPattern(org.drools.workbench.models.datamodel.rule.IFactPattern) FactPattern(org.drools.workbench.models.datamodel.rule.FactPattern) FromAccumulateCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern) CompositeFactPattern(org.drools.workbench.models.datamodel.rule.CompositeFactPattern) FromCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern) FromCollectCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern) FromAccumulateCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern) CompositeFactPattern(org.drools.workbench.models.datamodel.rule.CompositeFactPattern) FromCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern) FromCollectCompositeFactPattern(org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern) ActionFieldFunction(org.drools.workbench.models.datamodel.rule.ActionFieldFunction) RuleModel(org.drools.workbench.models.datamodel.rule.RuleModel) CompositeFieldConstraint(org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint) SingleFieldConstraint(org.drools.workbench.models.datamodel.rule.SingleFieldConstraint) BaseSingleFieldConstraint(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint) ActionRetractFact(org.drools.workbench.models.datamodel.rule.ActionRetractFact) ActionUpdateField(org.drools.workbench.models.datamodel.rule.ActionUpdateField) ActionSetField(org.drools.workbench.models.datamodel.rule.ActionSetField) ActionInsertFact(org.drools.workbench.models.datamodel.rule.ActionInsertFact) RuleAttribute(org.drools.workbench.models.datamodel.rule.RuleAttribute) RuleMetadata(org.drools.workbench.models.datamodel.rule.RuleMetadata) ActionGlobalCollectionAdd(org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd) Test(org.junit.Test)

Aggregations

ActionGlobalCollectionAdd (org.drools.workbench.models.datamodel.rule.ActionGlobalCollectionAdd)11 ActionInsertFact (org.drools.workbench.models.datamodel.rule.ActionInsertFact)6 CompositeFactPattern (org.drools.workbench.models.datamodel.rule.CompositeFactPattern)6 FactPattern (org.drools.workbench.models.datamodel.rule.FactPattern)6 RuleModel (org.drools.workbench.models.datamodel.rule.RuleModel)6 Test (org.junit.Test)6 FromAccumulateCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromAccumulateCompositeFactPattern)5 FromCollectCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromCollectCompositeFactPattern)5 FromCompositeFactPattern (org.drools.workbench.models.datamodel.rule.FromCompositeFactPattern)5 FromEntryPointFactPattern (org.drools.workbench.models.datamodel.rule.FromEntryPointFactPattern)4 RuleAttribute (org.drools.workbench.models.datamodel.rule.RuleAttribute)4 ActionRetractFact (org.drools.workbench.models.datamodel.rule.ActionRetractFact)3 ActionSetField (org.drools.workbench.models.datamodel.rule.ActionSetField)3 Command (com.google.gwt.user.client.Command)2 HashMap (java.util.HashMap)2 List (java.util.List)2 ActionCallMethod (org.drools.workbench.models.datamodel.rule.ActionCallMethod)2 ActionUpdateField (org.drools.workbench.models.datamodel.rule.ActionUpdateField)2 BaseSingleFieldConstraint (org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint)2 CompositeFieldConstraint (org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint)2