cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

API for setting effectivity

avillanueva
22-Sapphire II

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?



1 ACCEPTED SOLUTION

Accepted Solutions

Hi @AJ_9942604 

Yes the API is still valid and works.

 

The requirement? Create own function with own code that set the effectivity by your rules. 

For example the date is set based on a last release date. 

 

PetrH

View solution in original post

4 REPLIES 4

Hello is this API still valid? How did you achieve your requirement?

Hi @AJ_9942604 

Yes the API is still valid and works.

 

The requirement? Create own function with own code that set the effectivity by your rules. 

For example the date is set based on a last release date. 

 

PetrH

avillanueva
22-Sapphire II
(To:AJ_9942604)

Wow, not sure. That was 2012. I do not think I ever did anything with it. I will ask my former, thinner self.

I was surprised that question is so old 😄 

Top Tags