pipeline was deprecated years ago.

Use camel.

Mark
On 10 Mar 2014, at 16:25, GrantWang <grant.w...@intrado.com> wrote:

> Hi, I am new to Drools and have couple of questions:
> 
> 1. I found the following in document:
> 
> "The Drools pipeline API has several adapters and helpers to do that as well
> as examples on how to do it."
> 
> Could someone please send me a link to this Drools pipeline API. I did a
> search but couldn't find it.
> 
> 2. I am looking to a way to load a DRL on the fly. All the examples I found
> online is from 5.X:
> 
>                       File drl1 = new 
> File("src/main/resources/rules/DroolsTest.drl"); 
>                       Resource resource1 = 
> ResourceFactory.newInputStreamResource(new
> FileInputStream(drl1));
>                       KnowledgeBuilder builder = 
> KnowledgeBuilderFactory.newKnowledgeBuilder();
>                       builder.add(resource1, ResourceType.DRL);
>                       KnowledgeBase kb = builder.newKnowledgeBase();
>                       kSession = kb.newStatefulKnowledgeSession();
>                        kSession.fireUntilHalt();
> 
> It works, but looks like the type KnowledgeBase is deprecated in 6.0. And I
> couldn't find it in Kie API java doc. How can I do the same in 6.0? Also is
> there a way I can monitor a directory? So that new rule files can be loaded
> automatically after add into this directory (suppose I don't need to do
> anything in my App since I used fireUntilHalt.)
> 
> Thanks a lot. 
> 
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-pipeline-API-tp4028616.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to