Package org.drools.ide.common.client.modeldriven.brl

Examples of org.drools.ide.common.client.modeldriven.brl.ActionCallMethod


                               position );
    }

    private void addCallMethod(String itemText,
                                 int position) {
        this.model.addRhsItem( new ActionCallMethod( itemText ),
                               position );
    }
View Full Code Here


        this.model.addRhsItem(new ActionSetField(itemText), position);
        refreshWidget();
    }

    protected void addCallMethod(String itemText, int position) {
        this.model.addRhsItem(new ActionCallMethod(itemText), position);
        refreshWidget();
    }
View Full Code Here

        this.model.addRhsItem(new ActionSetField(itemText), position);
        refreshWidget();
    }

    protected void addCallMethod(String itemText, int position) {
        this.model.addRhsItem(new ActionCallMethod(itemText), position);
        refreshWidget();
    }
View Full Code Here

                               position );
    }

    private void addCallMethod(String itemText,
                                 int position) {
        this.model.addRhsItem( new ActionCallMethod( itemText ),
                               position );
    }
View Full Code Here

        refreshWidget();
    }

    protected void addCallMethod(String itemText,
                                 int position) {
        this.model.addRhsItem( new ActionCallMethod( itemText ),
                               position );
        refreshWidget();
    }
View Full Code Here

    // before that needs to be updated.
    private RuleModel updateMethodCall(RuleModel model) {

        for ( int i = 0; i < model.rhs.length; i++ ) {
            if ( model.rhs[i] instanceof ActionCallMethod ) {
                ActionCallMethod action = (ActionCallMethod) model.rhs[i];
                // Check if method name is filled, if not this was made with an older Guvnor version
                if ( action.methodName == null || "".equals( action.methodName ) ) {
                    if ( action.fieldValues != null && action.fieldValues.length >= 1 ) {
                        action.methodName = action.fieldValues[0].field;
View Full Code Here

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

            ActionCallMethod acm = new ActionCallMethod();
            acm.methodName = "method";
            acm.variable = "$p";
            acm.addFieldValue( new ActionFieldFunction( "f1",
                                                        "String",
                                                        SuggestionCompletionEngine.TYPE_STRING ) );
            acm.addFieldValue( new ActionFieldFunction( "f2",
                                                        "true",
                                                        SuggestionCompletionEngine.TYPE_BOOLEAN ) );
            acm.addFieldValue( new ActionFieldFunction( "f3",
                                                        "31-Jan-2012",
                                                        SuggestionCompletionEngine.TYPE_DATE ) );
            acm.addFieldValue( new ActionFieldFunction( "f4",
                                                        "100",
                                                        SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER ) );
            acm.addFieldValue( new ActionFieldFunction( "f5",
                                                        "100",
                                                        SuggestionCompletionEngine.TYPE_NUMERIC_BIGDECIMAL ) );

            m.addRhsItem( acm );
View Full Code Here

                               position );
    }

    private void addCallMethod(String itemText,
                                 int position) {
        this.model.addRhsItem( new ActionCallMethod( itemText ),
                               position );
    }
View Full Code Here

                               position );
    }

    private void addCallMethod(String itemText,
                                 int position) {
        this.model.addRhsItem( new ActionCallMethod( itemText ),
                               position );
    }
View Full Code Here

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

            ActionCallMethod acm = new ActionCallMethod();
            acm.methodName = "method";
            acm.variable = "$p";
            acm.addFieldValue( new ActionFieldFunction( "f1",
                                                        "String",
                                                        SuggestionCompletionEngine.TYPE_STRING ) );
            acm.addFieldValue( new ActionFieldFunction( "f2",
                                                        "true",
                                                        SuggestionCompletionEngine.TYPE_BOOLEAN ) );
            acm.addFieldValue( new ActionFieldFunction( "f3",
                                                        "31-Jan-2012",
                                                        SuggestionCompletionEngine.TYPE_DATE ) );
            acm.addFieldValue( new ActionFieldFunction( "f4",
                                                        "100",
                                                        SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER ) );
            acm.addFieldValue( new ActionFieldFunction( "f5",
                                                        "100",
                                                        SuggestionCompletionEngine.TYPE_NUMERIC_BIGDECIMAL ) );

            m.addRhsItem( acm );
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.modeldriven.brl.ActionCallMethod

Copyright © 2018 www.massapicom. 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.