Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
Im looking for a way to lock (change to status Under review) resulting objects during Design review. We have a similar process for Promotion request with following expression :
wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;
try
{
wt.maturity.MaturityServerHelper.service.lockTargets (pn);
}
catch( Exception wte )
{
wte.printStackTrace();
}
Is there any way to apply this for Change activity resulting objects?
Thank you very much in advance.
Solved! Go to Solution.
Hi @RUK1
Yes you can write own code to change the state, or check the lock transition and based on the lifecycle configuration you can change the state.
You need to write own code to do so.
PetrH
Hi @RUK1
Yes you can write own code to change the state, or check the lock transition and based on the lifecycle configuration you can change the state.
You need to write own code to do so.
PetrH
as I expected, I will take a look into that, thank you.
