Package org.drools.workbench.screens.guided.rule.backend.server

Examples of org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleModelVisitor


            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();

            //Get FQCN's used by model
            final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
            final Set<String> consumedFQCNs = visitor.getConsumedModelClasses();

            //Get FQCN's used by Globals
            consumedFQCNs.addAll( oracle.getPackageGlobals().values() );

            DataModelOracleUtilities.populateDataModel( oracle,
View Full Code Here


        rm.setPackageName( model.getPackageName() );
        rm.setImports( model.getImports() );
        for ( IPattern p : definition ) {
            rm.addLhsItem( p );
        }
        final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( rm );
        return visitor.getConsumedModelClasses();
    }
View Full Code Here

        rm.setPackageName( model.getPackageName() );
        rm.setImports( model.getImports() );
        for ( IAction a : definition ) {
            rm.addRhsItem( a );
        }
        final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( rm );
        return visitor.getConsumedModelClasses();
    }
View Full Code Here

    public GuidedTemplateEditorContent loadContent( final Path path ) {
        try {
            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
            final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
            DataModelOracleUtilities.populateDataModel( oracle,
                                                        dataModel,
                                                        visitor.getConsumedModelClasses() );

            return new GuidedTemplateEditorContent( model,
                                                    dataModel );

        } catch ( Exception e ) {
View Full Code Here

    public GuidedTemplateEditorContent loadContent( final Path path ) {
        try {
            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
            final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
            DataModelOracleUtilities.populateDataModel( oracle,
                                                        dataModel,
                                                        visitor.getConsumedModelClasses() );

            return new GuidedTemplateEditorContent( model,
                                                    dataModel );

        } catch ( Exception e ) {
View Full Code Here

            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();

            //Get FQCN's used by model
            final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
            final Set<String> consumedFQCNs = visitor.getConsumedModelClasses();

            //Get FQCN's used by Globals
            consumedFQCNs.addAll( oracle.getPackageGlobals().values() );

            DataModelOracleUtilities.populateDataModel( oracle,
View Full Code Here

        rm.setPackageName( model.getPackageName() );
        rm.setImports( model.getImports() );
        for ( IPattern p : definition ) {
            rm.addLhsItem( p );
        }
        final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( rm );
        return visitor.getConsumedModelClasses();
    }
View Full Code Here

        rm.setPackageName( model.getPackageName() );
        rm.setImports( model.getImports() );
        for ( IAction a : definition ) {
            rm.addRhsItem( a );
        }
        final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( rm );
        return visitor.getConsumedModelClasses();
    }
View Full Code Here

            final TemplateModel model = load( path );
            final PackageDataModelOracle oracle = dataModelService.getDataModel( path );
            final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();

            //Get FQCN's used by model
            final GuidedRuleModelVisitor visitor = new GuidedRuleModelVisitor( model );
            final Set<String> consumedFQCNs = visitor.getConsumedModelClasses();

            //Get FQCN's used by Globals
            consumedFQCNs.addAll( oracle.getPackageGlobals().values() );

            DataModelOracleUtilities.populateDataModel( oracle,
View Full Code Here

TOP

Related Classes of org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleModelVisitor

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.