Examples of ActionUpdateField


Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_LITERAL );
        afv1.setField( "field2" );
        afv1.setValue( "bar" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_LITERAL );
        afv1.setField( "field2" );
        afv1.setValue( "bar" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_LITERAL );
        afv0.setField( "field1" );
        afv0.setValue( "foo" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_LITERAL );
        afv0.setField( "field1" );
        afv0.setValue( "foo" );
        auf1.addFieldValue( afv0 );
        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );

        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        ActionFieldValue afv2 = new ActionFieldValue();
        afv2.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv2.setField( "field3" );
        afv2.setValue( "$f3" );
        auf1.addFieldValue( afv2 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );

        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        ActionFieldValue afv2 = new ActionFieldValue();
        afv2.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv2.setField( "field3" );
        afv2.setValue( "$f3" );
        auf1.addFieldValue( afv2 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );

        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        ActionFieldValue afv2 = new ActionFieldValue();
        afv2.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv2.setField( "field3" );
        afv2.setValue( "$f3" );
        auf1.addFieldValue( afv2 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.ActionUpdateField

        FactPattern fp = new FactPattern( "Person" );
        fp.setBoundName( "$p" );
        m.addLhsItem( fp );

        ActionUpdateField auf1 = new ActionUpdateField( "$p" );
        ActionFieldValue afv0 = new ActionFieldValue();
        afv0.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv0.setField( "field1" );
        afv0.setValue( "$f1" );
        auf1.addFieldValue( afv0 );

        ActionFieldValue afv1 = new ActionFieldValue();
        afv1.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv1.setField( "field2" );
        afv1.setValue( "$f2" );
        auf1.addFieldValue( afv1 );

        ActionFieldValue afv2 = new ActionFieldValue();
        afv2.setNature( FieldNatureType.TYPE_TEMPLATE );
        afv2.setField( "field3" );
        afv2.setValue( "$f3" );
        auf1.addFieldValue( afv2 );

        m.addRhsItem( auf1 );

        String expected = "rule \"r1_0\"\n" +
                "dialect \"mvel\"\n" +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.