[rules-users] repository in 5.2.M2 crashes in 5.2.Final because of decision table serialization

Vincent Legendre vincent.legendre at eurodecision.com
Wed Jul 13 06:04:37 EDT 2011


ok thanks for your answer
So I will try to substitute in the XML and see what happends ...

Just one little more point : you are saying that even the CR1 is not 
compatible with the Final ? For M1 and M2, as they are beta, why not, 
but a CR should be compliant with the final release (in my opinion).


Le 12/07/2011 18:15, Michael Anstis a écrit :
> I am only aware of the changes made around the dtable XML.
>
> Declarative fact types would be an interesting one as that had a few 
> changes made too to support CEP (addition of annotations).
>
> I am unaware of the difficulties with processes. Somebody else here 
> may be able to comment.
>
>
> 2011/7/12 Atherton, Robert W CIV SPAWARSYSCEN-ATLANTIC, 54422 
> <robert.atherton at navy.mil <mailto:robert.atherton at navy.mil>>
>
>     Is the statement about backwards compatibility only true for CEP
>     and decision tables, or does it pertain to upgrading from 5.2.M2
>     to Final as a whole?
>     My project has been trying to upgrade from 5.2.M2 to Final, and we
>     are having problems with our StatefulKnowledgeSession not
>     containing any of the processes or fact types defined in our
>     guvnor package.
>     Thanks,
>     Rob
>
>     ------------------------------------------------------------------------
>     *From:* rules-users-bounces at lists.jboss.org
>     <mailto:rules-users-bounces at lists.jboss.org>
>     [mailto:rules-users-bounces at lists.jboss.org
>     <mailto:rules-users-bounces at lists.jboss.org>] *On Behalf Of
>     *Michael Anstis
>     *Sent:* Tuesday, July 12, 2011 11:53 AM
>     *To:* Rules Users List
>     *Subject:* Re: [rules-users] repository in 5.2.M2 crashes in
>     5.2.Final because of decision table serialization
>
>     That explains it.
>
>     The CEP changes were made between 5.2.M2 and Final.
>
>     Since 5.2.M2 was a beta Mark Proctor was OK not keeping backwards
>     compatibility between the M2 and Final. I checked before making
>     the changes.
>
>     Unfortunately the code-base only supports automatic conversion
>     between 5.1.Final and 5.2.Final. Any guided decision tables made
>     on 5.2.M1, 5.2.M2 and 5.2.CR1 are incompatible with 5.2.Final.
>
>     With kind regards,
>
>     Mike
>
>     2011/7/12 Vincent LEGENDRE <vincent.legendre at eurodecision.com
>     <mailto:vincent.legendre at eurodecision.com>>
>
>         We had a repository done with 5.2.M2.
>
>         We had exported this in a xml, and import this xml in a new
>         5.2.Final version
>
>         We don't use the classes below (at least not intentionnaly),
>         we simply try to get the source (from Guvnor URL) or "compile"
>         a package (from the package view).
>
>
>         Is there a way to use
>         org.drools.ide.common.server.util.RepositoryUpgradeHelper to
>         convert the repository explicitely ?
>
>
>         ------------------------------------------------------------------------
>
>         *De: *"Michael Anstis" <michael.anstis at gmail.com
>         <mailto:michael.anstis at gmail.com>>
>         *À: *"Rules Users List" <rules-users at lists.jboss.org
>         <mailto:rules-users at lists.jboss.org>>
>         *Envoyé: *Mardi 12 Juillet 2011 17:39:00
>         *Objet: *Re: [rules-users] repository in 5.2.M2 crashes in
>         5.2.Final because of decision table serialization
>
>
>
>         How are you loading and compiling the dtable?
>
>         Guvnor uses
>         org.drools.ide.common.server.util.GuidedDTXMLPersistence to
>         convert XML to and from the object model.
>
>         This in turn uses
>         org.drools.ide.common.server.util.RepositoryUpgradeHelper to
>         convert from GuidedDecisionTable to GuidedDecisionTable52.
>
>         We had to make some essential changes for Guvnor 5.2 to
>         support CEP operators on the guided decision table.
>
>         With kind regards,
>
>         Mike
>
>         2011/7/12 Vincent LEGENDRE <vincent.legendre at eurodecision.com
>         <mailto:vincent.legendre at eurodecision.com>>
>
>             Hi all
>
>             We tried to use the 5.2.Final version of Guvnor, but the
>             compilation fails with an error saying that class "dtable"
>             does not exists.
>
>             After looking more depply, it appears that the XML storage
>             format has changed in 5.2.Final :
>
>             - root XML is now "decision-table52" instead of "dtable"
>
>             - pattern is now
>             "org.drools.guvnor.client.modeldriven.dt52.Pattern52" with
>             some condition-column grouped by fact, instead of
>             independant condition-column
>
>             - actions is now "insert-fact-column52" instead of the
>             same thing without version in it, but this time no
>             structure changes ...
>
>             Is there a way to migrate old tables to new format ?
>
>             Changing a repository.xml by subtitutions is OK ?
>
>             Do we have to plan such problems for future versions ?
>
>
>             _______________________________________________
>             rules-users mailing list
>             rules-users at lists.jboss.org
>             <mailto:rules-users at lists.jboss.org>
>             https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>         _______________________________________________
>         rules-users mailing list
>         rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>         https://lists.jboss.org/mailman/listinfo/rules-users
>
>         _______________________________________________
>         rules-users mailing list
>         rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>         https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>     _______________________________________________
>     rules-users mailing list
>     rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


-- 
Vincent LEGENDRE
/Consultant Sénior/

EURODECISION
9A rue de la Porte de Buc 78000 VERSAILLES
Tél. : +33 (0)1 39 07 12 40
Direct : +33 (0)1 39 07 26 16
www.eurodecision.com
EURODECISION <http://www.eurodecision.com/><http://www.eurodecision.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110713/c1b8647f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logoED.gif
Type: image/gif
Size: 3345 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110713/c1b8647f/attachment.gif 


More information about the rules-users mailing list