There are a set of examples, with docs here:   4.2.5. Build, Deploy and Utilize 
Examples
http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html#KIEExamplesSection

Not sure what you mean by externally? Do you mean programmatically or from 
command line?

For programmatically - similar to the old KnowledgeBuilder api:
4.2.5.10. Programaticaly build a KieModule using Meta Models

For command line, just include the maven plugin:
4.2.2.3. Building with Maven

To dynamically update you have two alternatives. you can do it manually or you 
can do it automated via kie-ci.

To do it manually, load the target KieModule into the KieRepository, and on the 
existing KieContainer call updateToVersion( ReleaseID ). This example shows how 
to load a KieModule into the KieRepository. While in the example it uses the 
ReleaseId to create a new KieContainer, it’s a one line addition to instead 
update an existing one.
4.2.5.7. Named KieSession from File

If you want to do it automated, from a maven repo, you can use kie-ci:  
"4.2.5.5. KieContainer from KieRepository"

You can use the KieScanner to automate this, based on a poll. "4.2.3.3. 
KieScanner”

updateToVersion only works for jars built with with the programmatic api, or 
with maven using the KIE plugin. 

Mark


On 25 Nov 2013, at 13:40, Govind J. Parashar <[email protected]> wrote:

> Hi All
>  
> Anyone know,  How to build a KnowledgeBase externally and how to dynamically 
> reload it while the application is running.?
>  
> Thanks & regards
> Govind P
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Matthew Versaggi
> Sent: 25 November 2013 13:36
> To: Rules Users List
> Subject: Re: [rules-users] Drools 6 getting started
>  
> Do you know if they have worked out the Guvnor / EAP 6.0 Resty issue just 
> yet? I had to resort to using Tomcat7 after installing and configuring EAP 6 
> because of that..... :-(
>  
> 
> On Mon, Nov 25, 2013 at 7:46 AM, Mark Proctor <[email protected]> wrote:
> The links weren’t suppose to go up yet, sorry. We haven’t finished preparing 
> the videos and there is a new website to come.
>  
> In the mean time you need to read the Workbench Installation Guide:
> http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/wb.Workbench.html#wb.Installation
>  
> And the Build, Deploy and Utilize here:
> http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html#KIEOverviewSection
>  
> Installation is trivla, you drop the jar in JBossAS and you are ready to go - 
> as per the first video in the playlist. It has a starting playground. Just 
> click “build and deploy” for a project and you are good to go:
> http://tinyurl.com/pnq6497
>  
> The workbench installation docs tell you how to configure the location of 
> things like the GIT repo, the maven repo etc. Although it will start with 
> default “working folder”.
>  
>  
> Mark
>  
>  
> On 25 Nov 2013, at 11:40, captainrhino 
> <[email protected]> wrote:
> 
> 
> Basically I have a web app in which I would like to run some drools rules
> from the new KIW-WB objects. e.g. KieContainer objects
> 
> Does anyone have a link to an idiots guide to getting started to Drools 6?
> 
> I'm looking to build a drools 6 maven project from one of the standard
> example KIE-WB projects.  What do i need MAven , GIthub etc and how do I
> build it?
> 
> I then need to be able to use this project within a non-maven project, i.e.
> build a jar from within the maven project that can then be used by my
> non-maven java project.  With the old deprecated  KnowledgeBase classes I
> used to be able to do this really easily.
> 
> Any suggestions would be most welcome and appreciated.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-6-getting-started-tp4026911.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>  
> 
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
>  
> --
> #########################################################
> Matthew R. Versaggi, President & CEO
> Versaggi Information Systems, Inc.
> Adjunct Professor of eBusiness DePaul University
> Email: mailto:[email protected], [email protected]
> M: 630-292-8422 
> LinkedIn:  http://www.linkedin.com/in/versaggi
> #########################################################
> 
> 
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that of 
> Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
> does not accept any responsibility or liability for it. This e-mail and 
> attachments (if any) transmitted with it are confidential and/or privileged 
> and solely for the use of the intended person or entity to which it is 
> addressed. Any review, re-transmission, dissemination or other use of or 
> taking of any action in reliance upon this information by persons or entities 
> other than the intended recipient is prohibited. This e-mail and its 
> attachments have been scanned for the presence of computer viruses. It is the 
> responsibility of the recipient to run the virus check on e-mails and 
> attachments before opening them. If you have received this e-mail in error, 
> kindly delete this e-mail from desktop and server.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to