As per previous email:
1) Create your original project with rules, build and deploy the jar.
2) Load the JAR to create a KieContainer.
3) add or change rules. Change the maven version, build and deploy the jar.
4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and call KieContainer.updateToVersion( ReleaseId).
This will ensure your KieContainer is updated, and all existing stateful sessions will be incrementally updated too. Assuming no bugs :)
On a side note, on master, there is a change to ensure that the Maven syntax for scanNow (with using the KieScanner) is obeyed. see
https://issues.jboss.org/browse/DROOLS-356
MarkOn 28 Nov 2013, at 08:03, Nicolas Héron <[hidden email]> wrote:> _______________________________________________
> Hi All,
> In previous Drools version (5.3, 5.4, 55 and 5.6RC1), it was possible to dynamically update the package content from Guvnor.
> The use case was :
> 1) Some rules are created/updated/deleted on Guvnor
> 2) A new snapshot is built
> 3) The drools runtime is notified and reload a new knowledgeBase from this new snapshot. (For this we developed some code to do that). No need to redeploy a new application. No need for IT people to be involved.
> 4) It was possible to see the content of each snapshot and compare the content of different snapshot.
> Now in Version 6 :
> Step 1 : no change
> Step 2 : as all in Maven => We build a new maven build an increment the version number
> Step 3 : is is possible to do that ? How do I set in all that the new Drools-wb maven repo ?
> Step 4 : how can I do that from the UI ?
>
>
> Thanks in advance
> Nicolas Héron
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
If you reply to this email, your message will be added to the discussion below:http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026983.htmlTo start a new topic under Drools: User forum, email [hidden email]
To unsubscribe from Drools, click here.
NAML