Examples of NewAssetConfiguration


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

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

        NewAssetConfiguration config = new NewAssetConfiguration( "testCreateNewRuleUsingConfigurationName",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  null,
                                                                  "an initial desc",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  AssetFormats.DSL_TEMPLATE_RULE );
View Full Code Here

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

                                                final String packageUUID,
                                                final String description,
                                                final String initialCategory,
                                                final String format) {

        final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                        packageName,
                                                                        packageUUID,
                                                                        description,
                                                                        initialCategory,
                                                                        format );

        //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

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

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

        NewAssetConfiguration config = new NewAssetConfiguration( "testCreateNewRuleUsingConfigurationName",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  null,
                                                                  "an initial desc",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  AssetFormats.DSL_TEMPLATE_RULE );
View Full Code Here

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

            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

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

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

        NewAssetConfiguration config = new NewAssetConfiguration( "testCreateNewRuleUsingConfigurationName",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  null,
                                                                  "an initial desc",
                                                                  "testCreateNewRuleUsingConfiguration",
                                                                  AssetFormats.DSL_TEMPLATE_RULE );
View Full Code Here

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

                                                final String packageUUID,
                                                final String description,
                                                final String initialCategory,
                                                final String format) {

        final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                        packageName,
                                                                        packageUUID,
                                                                        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

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

            final String description = "Converted from XLS Decision Table '" + item.getName() + "'.";

            result.addMessage( "Created Function '" + assetName + "'",
                               ConversionMessageType.INFO );

            final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                            packageName,
                                                                            packageUUID,
                                                                            description,
                                                                            null,
                                                                            AssetFormats.FUNCTION );
View Full Code Here

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

            final String description = "Converted from XLS Decision Table '" + item.getName() + "'.";

            result.addMessage( "Created Declarative Model '" + assetName + "'.",
                               ConversionMessageType.INFO );

            final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                            packageName,
                                                                            packageUUID,
                                                                            description,
                                                                            null,
                                                                            AssetFormats.DRL_MODEL );
View Full Code Here

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

            final String description = "Converted from XLS Decision Table '" + item.getName() + "'.";

            result.addMessage( "Created Guided Decision Table '" + assetName + "'.",
                               ConversionMessageType.INFO );

            final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                            packageName,
                                                                            packageUUID,
                                                                            description,
                                                                            null,
                                                                            FORMAT );
View Full Code Here

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

                                                final String packageUUID,
                                                final String description,
                                                final String initialCategory,
                                                final String format) {

        final NewAssetConfiguration config = new NewAssetConfiguration( assetName,
                                                                        packageName,
                                                                        packageUUID,
                                                                        description,
                                                                        initialCategory,
                                                                        format );

        //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
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.