Examples of DSLComplexVariableValue


Examples of org.drools.guvnor.models.commons.shared.rule.DSLComplexVariableValue

        DSLSentence dslSentence = (DSLSentence) unmarshalledModel.lhs[ 0 ];
        assertEquals( dslDefinition, dslSentence.getDefinition() );
        assertEquals( 1, dslSentence.getValues().size() );
        assertTrue( dslSentence.getValues().get( 0 ) instanceof DSLComplexVariableValue );
        DSLComplexVariableValue dslComplexVariableValue = (DSLComplexVariableValue) dslSentence.getValues().get( 0 );
        assertEquals( "AA", dslComplexVariableValue.getValue() );
        assertEquals( "ENUM:Applicant.creditRating", dslComplexVariableValue.getId() );

        assertEqualsIgnoreWhitespace( expected, brlPersistence.marshal( unmarshalledModel ) );
    }
View Full Code Here

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

        public DSLVariableValue getSelectedValue() {
            //if oldVariableValue was of type DSLComplexVariableValue, then return a
            //copy of it with only the 'value' part modified
            if (oldVariableValue instanceof DSLComplexVariableValue){
                return new DSLComplexVariableValue(((DSLComplexVariableValue)oldVariableValue).getId(),box.getText());
            }
            return new DSLVariableValue(box.getText());
        }
View Full Code Here

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

                            public void onClick(ClickEvent event) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText(value);
                               
                                selectedValue = new DSLComplexVariableValue(id, value);
                               
                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        });

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if (selectedValue instanceof DSLComplexVariableValue){
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                  complexSelectedValue.getValue());
                        }else{
                            customFormPopUp.show( "",
                                  selectedValue.getValue());
                        }
                       
View Full Code Here

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

        public DSLVariableValue getSelectedValue() {
            //if oldVariableValue was of type DSLComplexVariableValue, then return a
            //copy of it with only the 'value' part modified
            if ( oldVariableValue instanceof DSLComplexVariableValue ) {
                return new DSLComplexVariableValue( ((DSLComplexVariableValue) oldVariableValue).getId(),
                                                    box.getText() );
            }
            return new DSLVariableValue( box.getText() );
        }
View Full Code Here

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

        public DSLVariableValue getSelectedValue() {
            //if oldVariableValue was of type DSLComplexVariableValue, then return a
            //copy of it with only the 'value' part modified
            if ( oldVariableValue instanceof DSLComplexVariableValue ) {
                return new DSLComplexVariableValue( ((DSLComplexVariableValue) oldVariableValue).getId(),
                                                    box.getText() );
            }
            return new DSLVariableValue( box.getText() );
        }
View Full Code Here

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

                            public void onClick(ClickEvent event) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }
View Full Code Here

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

                            public void onClick(ClickEvent event) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }
View Full Code Here

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

        public DSLVariableValue getSelectedValue() {
            //if oldVariableValue was of type DSLComplexVariableValue, then return a
            //copy of it with only the 'value' part modified
            if ( oldVariableValue instanceof DSLComplexVariableValue ) {
                return new DSLComplexVariableValue( ((DSLComplexVariableValue) oldVariableValue).getId(),
                                                    box.getText() );
            }
            return new DSLVariableValue( box.getText() );
        }
View Full Code Here

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

                            public void onClick(ClickEvent event) {
                                String id = customFormPopUp.getFormId();
                                String value = customFormPopUp.getFormValue();
                                btnCustomForm.setText( value );

                                selectedValue = new DSLComplexVariableValue( id,
                                                                             value );

                                updateSentence();
                                makeDirty();
                                customFormPopUp.hide();
                            }
                        } );

                        //if selectedValue is an instance of DSLComplexVariableValue,
                        //then both id and value are passed to the custom form
                        //if not, only the value is passed and "" is passed as id
                        if ( selectedValue instanceof DSLComplexVariableValue ) {
                            DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
                            customFormPopUp.show( complexSelectedValue.getId(),
                                                  complexSelectedValue.getValue() );
                        } else {
                            customFormPopUp.show( "",
                                                  selectedValue.getValue() );
                        }
View Full Code Here

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

        public DSLVariableValue getSelectedValue() {
            //if oldVariableValue was of type DSLComplexVariableValue, then return a
            //copy of it with only the 'value' part modified
            if (oldVariableValue instanceof DSLComplexVariableValue){
                return new DSLComplexVariableValue(((DSLComplexVariableValue)oldVariableValue).getId(),box.getText());
            }
            return new DSLVariableValue(box.getText());
        }
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.