Package org.drools.fluent.simulation.impl

Examples of org.drools.fluent.simulation.impl.DefaultSimulationFluent.newPath()


        repositoryModuleService.ensureBinaryUpToDate(moduleItem);
//        KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null, classLoader));

        SimulationFluent simulationFluent = new DefaultSimulationFluent();
        for (SimulationPathModel path : simulation.getPaths().values()) {
            simulationFluent.newPath(path.getName());
            simulationFluent.newKnowledgeBuilder() // TODO only do once, for the root
                .add(ResourceFactory.newByteArrayResource(moduleItem.getCompiledBinaryBytes()), ResourceType.PKG)
                .end();
            simulationFluent.newKnowledgeBase()
                    .addKnowledgePackages()
View Full Code Here


        otherJohnMiniPolicyRequest.addCoverageRequest(new CoverageRequest(CoverageType.COMPREHENSIVE));
        otherJohnMiniPolicyRequest.setAutomaticallyRejected(false);


        // @formatter:off
        simulationFluent.newPath("init")
        .newStep(0)
        .newKnowledgeBuilder()
            .add(ResourceFactory.newClassPathResource("org/drools/examples/carinsurance/cep/policyRequestFraudDetectionRules.drl"),
                    ResourceType.DRL)
            .end()
View Full Code Here

        otherJohnMiniPolicyRequest.addCoverageRequest(new CoverageRequest(CoverageType.COMPREHENSIVE));
        otherJohnMiniPolicyRequest.setAutomaticallyRejected(false);


        // @formatter:off
        simulationFluent.newPath("init")
        .newStep(0)
        .newKnowledgeBuilder()
            .add(ResourceFactory.newClassPathResource("org/drools/examples/carinsurance/cep/policyRequestFraudDetectionRules.drl"),
                    ResourceType.DRL)
            .end()
View Full Code Here

       
        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep( 0 )
        .newKnowledgeBuilder()
            .add( ResourceFactory.newByteArrayResource( str.getBytes() ),
                  ResourceType.DRL )
            .end(World.ROOT, KnowledgeBuilder.class.getName() )
View Full Code Here

        List list1 = new ArrayList();
        List list2 = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep(0)
        .newKnowledgeBuilder()
            .add(ResourceFactory.newByteArrayResource(str1.getBytes()),
                    ResourceType.DRL)
            .end(World.ROOT, KnowledgeBuilder.class.getName())
View Full Code Here

       
        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
        .newStep(0)
        .newKnowledgeBuilder()
            .add(ResourceFactory.newByteArrayResource(str.getBytes()),
                    ResourceType.DRL)
            .end(World.ROOT, KnowledgeBuilder.class.getName())
View Full Code Here

       
        List list = new ArrayList();
       
        VariableContext<?> vc = f.getVariableContext();
        // @formatter:off         
        f.newPath("init")
            .newStep( 0 )
                .newKnowledgeBuilder()
                    .add( ResourceFactory.newByteArrayResource( str.getBytes() ),
                          ResourceType.DRL )
                    .add( ResourceFactory.newByteArrayResource( strProcess.getBytes() ),
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.