Examples of GuidedRuleEditorValidator


Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            save();
        }
    }

    private void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model, GuidedRuleEditorResources.CONSTANTS );

        if ( validator.isValid() ) {
            new SaveOperationService().save( path,
                                             new CommandWithCommitMessage() {
                                                 @Override
                                                 public void execute(final String commitMessage) {
                                                     view.showBusyIndicator(CommonConstants.INSTANCE.Saving());
                                                     service.call(getSaveSuccessCallback(),
                                                             new HasBusyIndicatorDefaultErrorCallback(view)).save(path,
                                                             view.getContent(),
                                                             metadataWidget.getContent(),
                                                             commitMessage);

                                                 }
                                             }
                                           );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage(validator.getErrors().get(0));
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            save();
        }
    }

    private void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model, GuidedRuleEditorResources.CONSTANTS );

        if ( validator.isValid() ) {
            new SaveOperationService().save( path,
                                             new CommandWithCommitMessage() {
                                                 @Override
                                                 public void execute(final String commitMessage) {
                                                     view.showBusyIndicator(CommonConstants.INSTANCE.Saving());
                                                     service.call(getSaveSuccessCallback(),
                                                             new HasBusyIndicatorDefaultErrorCallback(view)).save(path,
                                                             view.getContent(),
                                                             metadataWidget.getContent(),
                                                             commitMessage);

                                                 }
                                             }
                                           );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage(validator.getErrors().get(0));
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            save();
        }
    }

    private void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator(model, GuidedRuleEditorResources.CONSTANTS);

        if (validator.isValid()) {
            new SaveOperationService().save(path,
                    new CommandWithCommitMessage() {
                        @Override
                        public void execute(final String commitMessage) {
                            view.showBusyIndicator(CommonConstants.INSTANCE.Saving());
                            service.call(getSaveSuccessCallback(),
                                    new HasBusyIndicatorDefaultErrorCallback(view)).save(path,
                                    view.getContent(),
                                    metadataWidget.getContent(),
                                    commitMessage);
                        }
                    });
        } else {
            ErrorPopup.showMessage(validator.getErrorMessage());
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            }
        };
    }

    protected void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator(model, GuidedRuleEditorResources.CONSTANTS);

        if (validator.isValid()) {
            new SaveOperationService().save(versionRecordManager.getCurrentPath(),
                    new CommandWithCommitMessage() {
                        @Override
                        public void execute(final String commitMessage) {
                            view.showBusyIndicator(CommonConstants.INSTANCE.Saving());
                            service.call(getSaveSuccessCallback(),
                                    new HasBusyIndicatorDefaultErrorCallback(view)).save(versionRecordManager.getCurrentPath(),
                                    view.getContent(),
                                    metadata,
                                    commitMessage);

                        }
                    }
            );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage(validator.getErrors().get(0));
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

                constants.PleaseSetTheEntryPoint()
            ).thenReturn(
                MISSING_ENTRY_POINT
                        );

        validator = new GuidedRuleEditorValidator( model,
                                                   constants );
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            save();
        }
    }

    private void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model, GuidedRuleEditorResources.CONSTANTS );

        if ( validator.isValid() ) {
            new SaveOperationService().save( path,
                                             new CommandWithCommitMessage() {
                                                 @Override
                                                 public void execute( final String commitMessage ) {
                                                     view.showBusyIndicator( CommonConstants.INSTANCE.Saving() );
                                                     service.call( getSaveSuccessCallback(),
                                                                   new HasBusyIndicatorDefaultErrorCallback( view ) ).save( path,
                                                                                                                            view.getContent(),
                                                                                                                            metadataWidget.getContent(),
                                                                                                                            commitMessage );
                                                 }
                                             }
                                           );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage( validator.getErrorMessage() );
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            }
        };
    }

    protected void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model,
                                                                             GuidedRuleEditorResources.CONSTANTS );

        if ( validator.isValid() ) {
            new SaveOperationService().save( versionRecordManager.getPathToLatest(),
                                             new CommandWithCommitMessage() {
                                                 @Override
                                                 public void execute( final String commitMessage ) {
                                                     view.showSaving();
                                                     service.call( getSaveSuccessCallback(),
                                                                   new HasBusyIndicatorDefaultErrorCallback( view ) ).save( versionRecordManager.getCurrentPath(),
                                                                                                                            view.getContent(),
                                                                                                                            metadata,
                                                                                                                            commitMessage );

                                                 }
                                             } );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage( validator.getErrors().get( 0 ) );
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

            save();
        }
    }

    private void save() {
        GuidedRuleEditorValidator validator = new GuidedRuleEditorValidator( model, GuidedRuleEditorResources.CONSTANTS );

        if ( validator.isValid() ) {
            new SaveOperationService().save( path,
                                             new CommandWithCommitMessage() {
                                                 @Override
                                                 public void execute( final String commitMessage ) {
                                                     view.showBusyIndicator( CommonConstants.INSTANCE.Saving() );
                                                     service.call( getSaveSuccessCallback(),
                                                                   new HasBusyIndicatorDefaultErrorCallback( view ) ).save( path,
                                                                                                                            view.getContent(),
                                                                                                                            metadataWidget.getContent(),
                                                                                                                            commitMessage );

                                                 }
                                             }
                                           );

            concurrentUpdateSessionInfo = null;
        } else {
            ErrorPopup.showMessage( validator.getErrors().get( 0 ) );
        }
    }
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.editor.validator.GuidedRuleEditorValidator

                constants.PleaseSetTheEntryPoint()
            ).thenReturn(
                MISSING_ENTRY_POINT
                        );

        validator = new GuidedRuleEditorValidator( model,
                                                   constants );
    }
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.