Follow up action : Cancel save action and display error message
Accepted answer
3 other answers
I guess that can be implemented by using pre-condition - Advisors. You can detect the save action using ISaveParameter interface and if the action is save, you can trigger further action you need.
Extension point for Advisor would be com.ibm.team.process.service.operationAdvisors and once you got this, you can find save action as below
// Action is save
eg: if (operation.getOperationData() instanceof ISaveParameter) {
// do action
}
RTC Extension workshop is a good place to get detailed info.
Rational Team Concert 4.0 Extensions Workshop - Library: Articles - Jazz Community Site
Extension point for Advisor would be com.ibm.team.process.service.operationAdvisors and once you got this, you can find save action as below
// Action is save
eg: if (operation.getOperationData() instanceof ISaveParameter) {
// do action
}
RTC Extension workshop is a good place to get detailed info.
Rational Team Concert 4.0 Extensions Workshop - Library: Articles - Jazz Community Site
Thanks Ralp,
I found how display error message :
IReportInfo info = collector.createInfo("unable to save workitem", description);
info.setSeverity(IProcessReport.ERROR);
collector.addInfo(info);
But that don"t stop the save action.
Do you know how can i stop the follow-up action in my plugin ?
Thanks,
Antoine
Comments
1 vote