It's all about the answers!

Ask a question

Cancelling workitem save operation


Annie Ying (2061103) | asked Jan 11 '08, 2:18 p.m.
JAZZ DEVELOPER
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

One answer



permanent link
Tobias Widmer (3211) | answered Jan 18 '08, 4:58 a.m.
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:
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

Your answer


Register or to post your answer.