Cancelling workitem save operation
I have some code that used to be able to cancel a workitem save operation in TeamConcert M1, but no longer works on Beta 2.
In M1, I used to be able to put some error checking of a workitem custom attribute in a IWorkingCopyListener. Upon a save (i.e., whenever the event is a WorkingCopyEvent.ABOUT_TO_BE_SAVED), the error checking on my custom attribute is invoked. If the value is invalid, I throw an OperationCanceledException. However, in Beta 2, throwing an OperationCanceledException doesn't seem to work any more. Does anyone have any ideas about how to cancel a workitem save operation? Thanks for the help in advance!
Annie
In M1, I used to be able to put some error checking of a workitem custom attribute in a IWorkingCopyListener. Upon a save (i.e., whenever the event is a WorkingCopyEvent.ABOUT_TO_BE_SAVED), the error checking on my custom attribute is invoked. If the value is invalid, I throw an OperationCanceledException. However, in Beta 2, throwing an OperationCanceledException doesn't seem to work any more. Does anyone have any ideas about how to cancel a workitem save operation? Thanks for the help in advance!
Annie
One answer
I suggest that you log a defect against Work Item to discuss whether
this is a regression and what could be done to support cancelling a save
operation.
Cheers,
Tobias
aying schrieb:
this is a regression and what could be done to support cancelling a save
operation.
Cheers,
Tobias
aying schrieb:
I have some code that used to be able to cancel a workitem save
operation in TeamConcert M1, but no longer works on Beta 2.
In M1, I used to be able to put some error checking of a workitem
custom attribute in a IWorkingCopyListener. Upon a save (i.e.,
whenever the event is a WorkingCopyEvent.ABOUT_TO_BE_SAVED), the
error checking on my custom attribute is invoked. If the value is
invalid, I throw an OperationCanceledException. However, in Beta 2,
throwing an OperationCanceledException doesn't seem to work any more.
Does anyone have any ideas about how to cancel a workitem save
operation? Thanks for the help in advance!
Annie