Adding restrictions in Parent-Child workitem workflow using RTC 4.0.1
Hi Team
In RTC 4.0.1, we have designed a workflow using parent child relationship.
Currently I am looking for an option where I can restrict the parent workitem to move to the next state until the child workitem has moved to a certain state.
Similarly the child workitem should not move further, until the status of parent workitem is in a desired state.
Best Regards
Rajat
One answer
You would have to create an advisor for that http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ is a good start, even if it is a participant. http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ is an advisor. There are small differences between the two and the posts talk about them. You can however use the most part of the code in both. In addition the first post has a link to the wiki showing the operation IDs you want work item save.
The blog also shows example code for dealing with work item workflows.