Package org.drools.guvnor.server.builder

Examples of org.drools.guvnor.server.builder.ContentAssemblyError


        String drl = expander.expand( source );
        if ( expander.hasErrors() ) {
            List exErrs = expander.getErrors();
            for ( Iterator iter = exErrs.iterator(); iter.hasNext(); ) {
                ExpanderException ex = (ExpanderException) iter.next();
                logger.logError( new ContentAssemblyError( asset,
                                                           ex.getMessage() ) );
            }
            return;
        }
View Full Code Here


    private DefaultExpander getExpander(BRMSPackageBuilder builder,
                                        AssetItem asset,
                                        ContentPackageAssembler.ErrorLogger logger) {

        if ( !builder.hasDSL() ) {
            logger.logError( new ContentAssemblyError( asset,
                                                       "This rule asset requires a DSL, yet none were configured in the package." ) );
        }

        return builder.getDSLExpander();
    }
View Full Code Here

    }

    private BuilderResultLine[] generateBuilderResults(ContentPackageAssembler asm) {
        BuilderResultLine[] result = new BuilderResultLine[asm.getErrors().size()];
        for ( int i = 0; i < result.length; i++ ) {
            ContentAssemblyError err = asm.getErrors().get( i );
            BuilderResultLine res = new BuilderResultLine();
            res.assetName = err.itemInError.getName();
            res.assetFormat = err.itemInError.getFormat();
            res.message = err.errorReport;
            res.uuid = err.itemInError.getUUID();
View Full Code Here

        String drl = expander.expand( source );
        if ( expander.hasErrors() ) {
            List exErrs = expander.getErrors();
            for ( Iterator iter = exErrs.iterator(); iter.hasNext(); ) {
                ExpanderException ex = (ExpanderException) iter.next();
                logger.logError( new ContentAssemblyError( asset,
                                                           ex.getMessage() ) );
            }
            return;
        }
View Full Code Here

    private DefaultExpander getExpander(BRMSPackageBuilder builder,
                                        AssetItem asset,
                                        ContentPackageAssembler.ErrorLogger logger) {

        if ( !builder.hasDSL() ) {
            logger.logError( new ContentAssemblyError( asset,
                                                       "This rule asset requires a DSL, yet none were configured in the package." ) );
        }

        return builder.getDSLExpander();
    }
View Full Code Here

    }

    private BuilderResultLine[] generateBuilderResults(ContentPackageAssembler asm) {
        BuilderResultLine[] result = new BuilderResultLine[asm.getErrors().size()];
        for ( int i = 0; i < result.length; i++ ) {
            ContentAssemblyError err = asm.getErrors().get( i );
            BuilderResultLine res = new BuilderResultLine();
            res.assetName = err.itemInError.getName();
            res.assetFormat = err.itemInError.getFormat();
            res.message = err.errorReport;
            res.uuid = err.itemInError.getUUID();
View Full Code Here

        String drl = expander.expand(source);

        if (expander.hasErrors()) {
            List<ExpanderException> exErrs = expander.getErrors();
            for (ExpanderException ex : exErrs) {
                logger.logError(new ContentAssemblyError(
                        ex.getMessage(), asset.getFormat(), asset.getName(), asset.getUUID(), false, true));
            }
            return;
        }
View Full Code Here

    private DefaultExpander getExpander(BRMSPackageBuilder builder,
                                        AssetItem asset,
                                        AssemblyErrorLogger logger) {

        if (!builder.hasDSL()) {
            logger.logError(new ContentAssemblyError(
                    "This rule asset requires a DSL, yet none were configured in the package.", asset.getFormat(), asset.getName(), asset.getUUID(), false, true));
        }

        return builder.getDSLExpander();
    }
View Full Code Here

        String drl = expander.expand(source);

        if (expander.hasErrors()) {
            List<ExpanderException> exErrs = expander.getErrors();
            for (ExpanderException ex : exErrs) {
                logger.logError(new ContentAssemblyError(
                        ex.getMessage(), asset.getFormat(), asset.getName(), asset.getUUID(), false, true));
            }
            return;
        }
View Full Code Here

    private DefaultExpander getExpander(BRMSPackageBuilder builder,
                                        AssetItem asset,
                                        AssemblyErrorLogger logger) {

        if (!builder.hasDSL()) {
            logger.logError(new ContentAssemblyError(
                    "This rule asset requires a DSL, yet none were configured in the package.", asset.getFormat(), asset.getName(), asset.getUUID(), false, true));
        }

        return builder.getDSLExpander();
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.server.builder.ContentAssemblyError

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.