Package org.drools.repository

Examples of org.drools.repository.RulesRepository.createPackage()


    public void testEventingExample() throws Exception {

        RulesRepository repo = getRepo();

        PackageItem pkg = repo.createPackage( "testEventingExample",
                                              "" );
        AssetItem model = pkg.addAsset( "model",
                                        "qed" );
        model.updateFormat( AssetFormats.MODEL );
View Full Code Here


     */
    public void testRuleAndDSLAndFunction() throws Exception {
        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testRuleAndDSLAndFunction",
                                              "" );
        AssetItem model = pkg.addAsset( "model",
                                        "qed" );
        model.updateFormat( AssetFormats.MODEL );
        model.updateBinaryContentAttachment( this.getClass().getResourceAsStream( "/billasurf.jar" ) );
View Full Code Here

    public void testShowSource() throws Exception {
        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testShowSource",
                                              "" );

        ServiceImplementation.updateDroolsHeader( "import com.billasurf.Board\n global com.billasurf.Person customer",
                                                  pkg );
        repo.save();
View Full Code Here

   
    public void testBuildPackageWithEmptyHeader() throws Exception {
        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testBuildPackageWithEmptyHeader",
                                              "" );

        ServiceImplementation.updateDroolsHeader( "\n",
                                                  pkg );
        repo.save();
View Full Code Here

    public void testSkipDisabledPackageStuff() throws Exception {
        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testSkipDisabledPackageStuff",
                                              "" );
        repo.save();

        AssetItem assertRule1 = pkg.addAsset( "model1",
                                              "" );
View Full Code Here

    public void testSkipDisabledAssets() throws Exception {
        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testSkipDisabledAssets",
                                              "" );
        repo.save();

        AssetItem assertRule1 = pkg.addAsset( "rule1",
                                              "" );
View Full Code Here

    public void testXLSDecisionTable() throws Exception {

        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testXLSDecisionTable",
                                              "" );

        ServiceImplementation.updateDroolsHeader( "import org.acme.insurance.Policy\n import org.acme.insurance.Driver",
                                                  pkg );
        repo.save();
View Full Code Here

    public void testSkipDisabledImports() throws Exception {

        RulesRepository repo = getRepo();

        //first, setup the package correctly:
        PackageItem pkg = repo.createPackage( "testXLSDecisionTableIgnoreImports",
                                              "" );

        repo.save();

        InputStream xls = this.getClass().getResourceAsStream( "/Sample.xls" );
View Full Code Here

    public void testBRXMLWithDSLMixedIn() throws Exception {
        RulesRepository repo = getRepo();

        //create our package
        PackageItem pkg = repo.createPackage( "testBRLWithDSLMixedIn",
                                              "" );
        ServiceImplementation.updateDroolsHeader( "import org.drools.Person",
                                                  pkg );
        AssetItem rule1 = pkg.addAsset( "rule2",
                                        "" );
View Full Code Here

    public void testCustomSelector() throws Exception {
        RulesRepository repo = getRepo();

        //create our package
        PackageItem pkg = repo.createPackage( "testCustomSelector",
                                              "" );
        ServiceImplementation.updateDroolsHeader( "import org.drools.Person",
                                                  pkg );
        AssetItem rule1 = pkg.addAsset( "rule1",
                                        "" );
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.