Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Jan 11 '08, 2:18 p.m.

Question was seen: 6,518 times

Last updated: Jan 11 '08, 2:18 p.m.

Confirmation Cancel Confirm