Package org.drools.guvnor.client.rpc

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


        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

            String category = getCategory( token );
            String format = getFormat( token );

            final GuidedDecisionTable52 content = new GuidedDecisionTable52();
            content.setTableFormat( tableFormat );
            NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                            packageName,
                                                                                                            packageUUID,
                                                                                                            description,
                                                                                                            category,
                                                                                                            format,
View Full Code Here

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

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

            final NewGuidedDecisionTableAssetConfiguration config = new NewGuidedDecisionTableAssetConfiguration( assetName,
                                                                                                                  packageName,
                                                                                                                  packageUUID,
                                                                                                                  description,
                                                                                                                  null,
                                                                                                                  FORMAT,
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

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.