Solved
API for setting effectivity
I am looking to mass set effectivity (Date Effectivity) across my system
. Is the correct API the following?
wt.effectivity.EffectivityHelper.setEffectivityTarget(wt.effectivity.Eff
ectivity effectivity, wt.effectivity.EffectivityHolder
effectivityHolder)
I would provide a version of a WTPart (holder) and an Effectivity
instance (WTDatedEffectivity), assuming that this method does the store
for me.
Another question, would I be responsible for providing the proper end
date when creating the WTDatedEffectivity? For example, if I had a part
with multiple revisions and I was setting effectivity on all of them,
when I apply the effectivity to version B after A was defined as
open-ended, would it update the end date of A to the start date of B?
. Is the correct API the following?
wt.effectivity.EffectivityHelper.setEffectivityTarget(wt.effectivity.Eff
ectivity effectivity, wt.effectivity.EffectivityHolder
effectivityHolder)
I would provide a version of a WTPart (holder) and an Effectivity
instance (WTDatedEffectivity), assuming that this method does the store
for me.
Another question, would I be responsible for providing the proper end
date when creating the WTDatedEffectivity? For example, if I had a part
with multiple revisions and I was setting effectivity on all of them,
when I apply the effectivity to version B after A was defined as
open-ended, would it update the end date of A to the start date of B?

