Promotion Request: WTParts being automatically removed and getting stuck to lock state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Promotion Request: WTParts being automatically removed and getting stuck to lock state
- Labels:
-
Other
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Are you using a temporary state for locking your WTParts or an actual lock?
You can easily lock promotion targets like this:
wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;
try
{
wt.maturity.MaturityServerHelper.service.lockTargets( pn );
result = "Accepted";
}
I have not tried it, but it might be possible to progressively lock additional targets as you add them to your promotion request.
You can then unlock targets to return them to the original state if needed:
wt.maturity.MaturityServerHelper.service.unlockTargets (pn);
If it's an actual state and not the lock transition, you will need to store the original state somewhere and return it manually later.
As for other solutions - you can create a tiny customization that would refresh your promotion request to use latest iterations when needed. Also, you can make a check to see if any iteration of a given revision (in promotion request) is a part of another active promotion request.
I doubt that there is a silver bullet for this issue.
Kind regards,
Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
We use the Pending Approval state as the lock state in the Lifecycle. And it is working otherwise okay, but we have this problem with WTParts dropping out of the promotion objects when the Promotion Request is edited.
