Search in sources :

Example 31 with ActionUpdateNode

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

the class EditActionUpdatePopup method cloneNode.

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

Aggregations

ActionUpdateNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode)31 TypeNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.TypeNode)29 ActionUpdateNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionUpdateNodeImpl)28 GuidedDecisionTree (org.drools.workbench.models.guided.dtree.shared.model.GuidedDecisionTree)25 TypeNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.TypeNodeImpl)25 Test (org.junit.Test)25 ActionFieldValueImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionFieldValueImpl)22 BigIntegerValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.BigIntegerValue)17 IntegerValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.IntegerValue)17 ActionRetractNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode)9 BigInteger (java.math.BigInteger)8 ConstraintNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ConstraintNode)8 ActionRetractNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl)6 ActionInsertNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode)5 DateValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.DateValue)5 StringValue (org.drools.workbench.models.guided.dtree.shared.model.values.impl.StringValue)5 Calendar (java.util.Calendar)4 ConstraintNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ConstraintNodeImpl)4 Node (org.drools.workbench.models.guided.dtree.shared.model.nodes.Node)3 Date (java.util.Date)2