Thank you all for the help. Maybe I wasn't very clear at the first time, so I will write an example.<br><br>The tax charged in loans is a rule configured on JBoss rules.<br><br>At 2011, my company charge a tax of 8% by year in a loan (Rule version 1).<br>
At 2012, company policy changes and we start to charge 9% (Rule version 2).<br><br>All loan applications must be analized (a non-automated process). This can take several months depending on the value requested.<br><br>The "Fool Bar" company make a request at 31/12/2011 when the valid rule is version 1. At 01/01/2012, the Rule version 2 is activated, but for the "Foo Bar" Company instance request, the version 1 should be considered valid. Version 2 is valid only for new instances.<br>
<br>That said, seens to me that I should store either the snapshot name or the package version number within the request information, so that I can run the correct set of rules for loan request instance. I read at this (<a href="http://www.mail-archive.com/rules-users@lists.jboss.org/msg21861.html">http://www.mail-archive.com/rules-users@lists.jboss.org/msg21861.html</a>) that package snapshots could become deprecated in the future. If it is really true, seems to me that using package versions should be preferred.<br>
<br>Best regards,<br>Celso<br><br><div class="gmail_quote">2011/12/26 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
For re-running an application as it was released some time ago you'll need not only the rules but also Java classes and, possibly, other files, e.g., data tables. The Java stuff is bound to be more than just the data model as you might have it in Guvnor.<br>
<br>So, full Configuration Management usually has to deliver more that Guvnor (as far as I know) is ready to provide - or else it would compete with svn, git and whatnot.<br><br>A term like "snapshot" is usually different from "release", and the use case presented by our banker is based on releases. Otherwise they'd be in trouble.<br>
<font color="#888888">
<br>-W</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 26 December 2011 18:48, Mauricio Salatino <span dir="ltr"><<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
@Ansgar, it looks like you are doing in a database the work that it's<br>
being done by Guvnor, that keeps a lot of meta data for all the<br>
snapshots and it's ready to keep the snapshots forever, exposing them<br>
via a service, so you applications can get the right version. In the<br>
same way that you mention just knowing the ID of the snapshot that<br>
it's required.<br>
Using Guvnor, there is no need to remove snapshots, each snapshot will<br>
only contain the rules associated with it and not a complete<br>
application.<br>
<div><div>Cheers<br>
<br>
2011/12/26 Ansgar Konermann <<a href="mailto:ansgar.konermann@googlemail.com" target="_blank">ansgar.konermann@googlemail.com</a>>:<br>
><br>
> Am 26.12.2011 18:16 schrieb "Mauricio Salatino" <<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>>:<br>
><br>
><br>
>><br>
>> Did you try Guvnor? it already store the snapshots version. So you can<br>
>> get the right snapshot for running your rules against an old Loan<br>
>> again.<br>
>><br>
>> @Ansgar: why do you recommend to not use snapshots?<br>
><br>
> They change over time, making it more complex to track down the correct<br>
> version.<br>
><br>
> I'd preferr a stable loan application <=> rule set association. OTOH, it is<br>
> probably *possible* to retrieve the correct snapshot version for a loan<br>
> application if additional metadata is available. It's just more complicated:<br>
> metadata needs to be available and sufficient to determine exactly *one*<br>
> snapshot, snapshot needs to be available (not sure if Guvnor stores all<br>
> snapshots forever or just a few).<br>
><br>
> For releases, there is *one* figure you need to know to reference a certain<br>
> ruleset (the version number). Releases are normally kept forever. Or, at<br>
> least in my environment, deleting releases is done with extra extra care -if<br>
> at all-, whereas snapshots older than a week or so get removed automatically<br>
> on a daily basis.<br>
><br>
> Best regards,<br>
><br>
> Ansgar<br>
><br>
>> Cheers<br>
>><br>
>><br>
>> 2011/12/26 Ansgar Konermann <<a href="mailto:ansgar.konermann@googlemail.com" target="_blank">ansgar.konermann@googlemail.com</a>>:<br>
>> ><br>
>> > Am 26.12.2011 18:08 schrieb "Celso Junior" <<a href="mailto:celsogbj@gmail.com" target="_blank">celsogbj@gmail.com</a>>:<br>
>> ><br>
>> ><br>
>> >><br>
>> >> Hi folks,<br>
>> >><br>
>> >> I work at a bank<br>
>> ><br>
>> > Me too (sort of)<br>
>> ><br>
>> >> and I am currently studying the best way to use JBoss Rules so that it<br>
>> >> fits our needs. Our loan analysis process can take several months<br>
>> >> depending<br>
>> >> on the type of the loan. Although our business rules can evolve, a loan<br>
>> >> must<br>
>> >> follow the rules valid at the time the loan application was made.<br>
>> >><br>
>> >> In order to attend this requirement I thought about storing at the<br>
>> >> database the name of the current snapshot with the loan application<br>
>> >> data, so<br>
>> >> that it will possible run this rules in the future without freezing my<br>
>> >> rule<br>
>> >> database.<br>
>> >><br>
>> >> * Is there a better way to attend this requirement?<br>
>> ><br>
>> > Don't use snapshots. Release your rules and store the rules' release<br>
>> > number<br>
>> > with the loan application data in your database.<br>
>> ><br>
>> >><br>
>> >> * How can I retrieve meta information from a snapshot, such as the date<br>
>> >> when the snapshot was created?<br>
>> >><br>
>> >> Thanks in advance,<br>
>> >><br>
>> >> Celso<br>
>> >><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> rules-users mailing list<br>
>> >> <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
>> >> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > rules-users mailing list<br>
>> > <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
>> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
>> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
>> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
>> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
>><br>
>> - Salatino "Salaboy" Mauricio -<br>
>><br>
>> _______________________________________________<br>
>> rules-users mailing list<br>
>> <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
<br>
<br>
<br>
--<br>
- CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
- MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>