Package org.drools.rule

Examples of org.drools.rule.Package.addProcess()


        assertTrue( pkg.getRuleFlows().containsKey( "1" ) );
        assertSame( rf,
                    pkg.getRuleFlows().get( "1" ) );

        Process rf2 = new MockRuleFlow( "2" );
        pkg.addProcess( rf2 );
        assertTrue( pkg.getRuleFlows().containsKey( "1" ) );
        assertSame( rf,
                    pkg.getRuleFlows().get( "1" ) );
        assertTrue( pkg.getRuleFlows().containsKey( "2" ) );
        assertSame( rf2,
View Full Code Here


  public void testRemoveRuleFlow() throws Exception {
    File tempDir = RuleBaseAssemblerTest.getTempDirectory();
    String location = tempDir.getAbsolutePath() +File.separator + "p1.pkg";
    Package p1 = new Package("dummy");
    Process process1 = new DummyProcess("1","name");
    p1.addProcess(process1);
    
    Process process2 = new DummyProcess("2","name2");
    p1.addProcess(process2);
    
    RuleBaseAssemblerTest.writePackage(p1, new File(location));
View Full Code Here

    Package p1 = new Package("dummy");
    Process process1 = new DummyProcess("1","name");
    p1.addProcess(process1);
    
    Process process2 = new DummyProcess("2","name2");
    p1.addProcess(process2);
    
    RuleBaseAssemblerTest.writePackage(p1, new File(location));
   
    final CountDownLatch latch = new CountDownLatch(2);
   
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.