Thank you all for the help. Maybe I wasn't very clear at the first time, so
I will write an example.
The tax charged in loans is a rule configured on JBoss rules.
At 2011, my company charge a tax of 8% by year in a loan (Rule version 1).
At 2012, company policy changes and we start to charge 9% (Rule version 2).
All loan applications must be analized (a non-automated process). This can
take several months depending on the value requested.
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.
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 (
) that
package snapshots could become deprecated in the future. If it is really
true, seems to me that using package versions should be preferred.
Best regards,
Celso
2011/12/26 Wolfgang Laun <wolfgang.laun(a)gmail.com>
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.
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.
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.
-W
On 26 December 2011 18:48, Mauricio Salatino <salaboy(a)gmail.com> wrote:
> @Ansgar, it looks like you are doing in a database the work that it's
> being done by Guvnor, that keeps a lot of meta data for all the
> snapshots and it's ready to keep the snapshots forever, exposing them
> via a service, so you applications can get the right version. In the
> same way that you mention just knowing the ID of the snapshot that
> it's required.
> Using Guvnor, there is no need to remove snapshots, each snapshot will
> only contain the rules associated with it and not a complete
> application.
> Cheers
>
> 2011/12/26 Ansgar Konermann <ansgar.konermann(a)googlemail.com>:
> >
> > Am 26.12.2011 18:16 schrieb "Mauricio Salatino"
<salaboy(a)gmail.com>:
> >
> >
> >>
> >> Did you try Guvnor? it already store the snapshots version. So you can
> >> get the right snapshot for running your rules against an old Loan
> >> again.
> >>
> >> @Ansgar: why do you recommend to not use snapshots?
> >
> > They change over time, making it more complex to track down the correct
> > version.
> >
> > I'd preferr a stable loan application <=> rule set association. OTOH,
> it is
> > probably *possible* to retrieve the correct snapshot version for a loan
> > application if additional metadata is available. It's just more
> complicated:
> > metadata needs to be available and sufficient to determine exactly *one*
> > snapshot, snapshot needs to be available (not sure if Guvnor stores all
> > snapshots forever or just a few).
> >
> > For releases, there is *one* figure you need to know to reference a
> certain
> > ruleset (the version number). Releases are normally kept forever. Or, at
> > least in my environment, deleting releases is done with extra extra
> care -if
> > at all-, whereas snapshots older than a week or so get removed
> automatically
> > on a daily basis.
> >
> > Best regards,
> >
> > Ansgar
> >
> >> Cheers
> >>
> >>
> >> 2011/12/26 Ansgar Konermann <ansgar.konermann(a)googlemail.com>:
> >> >
> >> > Am 26.12.2011 18:08 schrieb "Celso Junior"
<celsogbj(a)gmail.com>:
> >> >
> >> >
> >> >>
> >> >> Hi folks,
> >> >>
> >> >> I work at a bank
> >> >
> >> > Me too (sort of)
> >> >
> >> >> and I am currently studying the best way to use JBoss Rules so
that
> it
> >> >> fits our needs. Our loan analysis process can take several months
> >> >> depending
> >> >> on the type of the loan. Although our business rules can evolve, a
> loan
> >> >> must
> >> >> follow the rules valid at the time the loan application was made.
> >> >>
> >> >> In order to attend this requirement I thought about storing at the
> >> >> database the name of the current snapshot with the loan
application
> >> >> data, so
> >> >> that it will possible run this rules in the future without
freezing
> my
> >> >> rule
> >> >> database.
> >> >>
> >> >> * Is there a better way to attend this requirement?
> >> >
> >> > Don't use snapshots. Release your rules and store the rules'
release
> >> > number
> >> > with the loan application data in your database.
> >> >
> >> >>
> >> >> * How can I retrieve meta information from a snapshot, such as the
> date
> >> >> when the snapshot was created?
> >> >>
> >> >> Thanks in advance,
> >> >>
> >> >> Celso
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> rules-users mailing list
> >> >> rules-users(a)lists.jboss.org
> >> >>
https://lists.jboss.org/mailman/listinfo/rules-users
> >> >>
> >> >
> >> >
> >> > _______________________________________________
> >> > rules-users mailing list
> >> > rules-users(a)lists.jboss.org
> >> >
https://lists.jboss.org/mailman/listinfo/rules-users
> >> >
> >>
> >>
> >>
> >> --
> >> - CTO @
http://www.plugtree.com
> >> - MyJourney @
http://salaboy.wordpress.com
> >> - Co-Founder @
http://www.jugargentina.org
> >> - Co-Founder @
http://www.jbug.com.ar
> >>
> >> - Salatino "Salaboy" Mauricio -
> >>
> >> _______________________________________________
> >> rules-users mailing list
> >> rules-users(a)lists.jboss.org
> >>
https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
>
> --
> - CTO @
http://www.plugtree.com
> - MyJourney @
http://salaboy.wordpress.com
> - Co-Founder @
http://www.jugargentina.org
> - Co-Founder @
http://www.jbug.com.ar
>
> - Salatino "Salaboy" Mauricio -
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users