Search in sources :

Example 11 with ActionRetractNodeImpl

use of org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl in project drools-wb by kiegroup.

the class EditActionRetractPopup method cloneNode.

// Clone node whilst editing to preserve original node should User cancel the edit
private ActionRetractNode cloneNode(final ActionRetractNode node) {
    final ActionRetractNode clone = new ActionRetractNodeImpl(node.getBoundNode());
    clone.setParent(node.getParent());
    return clone;
}
Also used : ActionRetractNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode) ActionRetractNodeImpl(org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl)

Aggregations

ActionRetractNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode)11 ActionRetractNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl)11 TypeNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.TypeNode)9 GuidedDecisionTree (org.drools.workbench.models.guided.dtree.shared.model.GuidedDecisionTree)8 TypeNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.TypeNodeImpl)8 Test (org.junit.Test)8 ActionUpdateNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode)6 ActionUpdateNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionUpdateNodeImpl)6 ActionFieldValueImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionFieldValueImpl)5 BigIntegerValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.BigIntegerValue)5 IntegerValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.IntegerValue)5 ConstraintNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ConstraintNode)3 BigInteger (java.math.BigInteger)2 ActionInsertNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode)2 ActionInsertNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionInsertNodeImpl)2 ConstraintNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ConstraintNodeImpl)2 ArrayList (java.util.ArrayList)1 ActionInsertFact (org.drools.workbench.models.datamodel.rule.ActionInsertFact)1 ActionInsertLogicalFact (org.drools.workbench.models.datamodel.rule.ActionInsertLogicalFact)1 ActionRetractFact (org.drools.workbench.models.datamodel.rule.ActionRetractFact)1