How to restrict a follow-up actions (Build On Deliver Participant) work for only specific stream?
I have developed a follow-up actions (Build On Deliver Participant) and I want it should only work for several or particular stream on the project area?Is there any way to configure RTC SCM HOOK (for this kind of feature)under Project Area -> Process Configuration tab ->RTC SCM hook configuration -> Team configuration -> Operation Behavior.
2 answers
I might be ignorant, but I am unaware of a Process Configuration tab -> RTC SCM HOOK configuration section. You can also not create such a tab easily as far as I can tell.
With respect to your question, Perform https://jazz.net/library/article/1000 and recognize the labs 4,5 and how to configure operational behavior.
Comments
In your implementation of IOperationAdvisor, in the run method, you do this:
Object opData = operation.getOperationData();
if (!(opData instanceof DeliverOperationData)) {
return;
}
DeliverOperationData data = (DeliverOperationData) opData;
if (!(opData instanceof DeliverOperationData)) {
return;
}
DeliverOperationData data = (DeliverOperationData) opData;
Now you can check for the stream you care about using: data.getDestWorkspace()