Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.NewGuidedDecisionTableAssetConfiguration


                                                  "this is a cat" );

        final GuidedDecisionTable52 content = new GuidedDecisionTable52();
        content.setTableFormat( TableFormat.LIMITED_ENTRY );

        NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( "testCreateNewGuidedDecisionTableUsingConfigurationName",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                                                                        null,
                                                                                                        "an initial desc",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                                                                        AssetFormats.DECISION_TABLE_GUIDED,
View Full Code Here


        final Command cmdInvokeWizard = new Command() {

            public void execute() {
                final GuidedDecisionTable52 content = new GuidedDecisionTable52();
                content.setTableFormat( guidedDecisionTableOptions.getTableFormat() );
                final NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                                packageName,
                                                                                                                packageUUID,
                                                                                                                description,
                                                                                                                initialCategory,
                                                                                                                format,
View Full Code Here

                                                       final String initialCategory,
                                                       final String format) {

        final GuidedDecisionTable52 content = new GuidedDecisionTable52();
        content.setTableFormat( guidedDecisionTableOptions.getTableFormat() );
        final NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                              packageName,
                                                                                                              packageUUID,
                                                                                                              description,
                                                                                                              initialCategory,
                                                                                                              format,
                                                                                                              content );
        //Command to save the asset
        final Command cmdSave = new Command() {

            public void execute() {
                repositoryService.createNewRule( config,
                                                 createGenericCallbackForOk() );
            }
        };

        //Command to check if the asset already exists, before delegating to save command
        final Command cmdCheckBeforeSaving = new Command() {

            public void execute() {
                LoadingPopup.showMessage( Constants.INSTANCE.PleaseWaitDotDotDot() );
                repositoryService.doesAssetExistInModule( config.getAssetName(),
                                                          config.getPackageName(),
                                                          createGenericCallBackForCheckingIfExists( cmdSave ) );
            }

        };
        return cmdCheckBeforeSaving;
View Full Code Here

                                       "desc" );
        repositoryCategoryService.createCategory( "",
                                                  "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                  "this is a cat" );

        NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( "testCreateNewGuidedDecisionTableUsingConfigurationName",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                                                                        null,
                                                                                                        TableFormat.LIMITED_ENTRY,
                                                                                                        "an initial desc",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
View Full Code Here

            dtable.getAnalysisData().add( new Analysis() );
            rowIndex++;
        }

        //Save it!
        NewAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( summaryPage.getAssetName(),
                                                                                     context.getPackageName(),
                                                                                     context.getPackageUUID(),
                                                                                     ((NewGuidedDecisionTableAssetWizardContext) context).getTableFormat(),
                                                                                     context.getDescription(),
                                                                                     context.getInitialCategory(),
View Full Code Here

                                                  "this is a cat" );

        final GuidedDecisionTable52 content = new GuidedDecisionTable52();
        content.setTableFormat( TableFormat.LIMITED_ENTRY );

        NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( "testCreateNewGuidedDecisionTableUsingConfigurationName",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                                                                        null,
                                                                                                        "an initial desc",
                                                                                                        "testCreateNewGuidedDecisionTableUsingConfiguration",
                                                                                                        AssetFormats.DECISION_TABLE_GUIDED,
View Full Code Here

            TableFormat tableFormat = getTableFormat( token );
            String description = getDescription( token );
            String category = getCategory( token );
            String format = getFormat( token );

            NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                            packageName,
                                                                                                            packageUUID,
                                                                                                            tableFormat,
                                                                                                            description,
                                                                                                            category,
View Full Code Here

        //Command to invoke wizard, if asset does not already exist
        final Command cmdInvokeWizard = new Command() {

            public void execute() {
                NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                                packageName,
                                                                                                                packageUUID,
                                                                                                                tableFormat,
                                                                                                                description,
                                                                                                                initialCategory,
View Full Code Here

                                                       final TableFormat tableFormat,
                                                       final String description,
                                                       final String initialCategory,
                                                       final String format) {

        final NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                              packageName,
                                                                                                              packageUUID,
                                                                                                              tableFormat,
                                                                                                              description,
                                                                                                              initialCategory,
                                                                                                              format );
        //Command to save the asset
        final Command cmdSave = new Command() {

            public void execute() {
                RepositoryServiceFactory.getService().createNewRule( config,
                                                                     createGenericCallbackForOk() );
            }
        };
       
        //Command to check if the asset already exists, before delegating to save command
        final Command cmdCheckBeforeSaving = new Command() {

            public void execute() {
                LoadingPopup.showMessage( Constants.INSTANCE.PleaseWaitDotDotDot() );
                RepositoryServiceFactory.getService().doesAssetExistInModule( config.getAssetName(),
                                                                               config.getPackageName(),
                                                                               createGenericCallBackForCheckingIfExists( cmdSave ) );
            }

        };
        return cmdCheckBeforeSaving;
View Full Code Here

            dtable.getAnalysisData().add( new Analysis() );
            rowIndex++;
        }

        //Save it!
        NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( summaryPage.getAssetName(),
                                                                                                        context.getPackageName(),
                                                                                                        context.getPackageUUID(),
                                                                                                        context.getDescription(),
                                                                                                        context.getInitialCategory(),
                                                                                                        context.getFormat(),
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.rpc.NewGuidedDecisionTableAssetConfiguration

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.