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

Cancellation Saving Artifact By Client extension API For RM

 Hi everyone,

Currently, I have a requirement that is validation artifact before saving. if artifact is invalid, this artifact will not be saved.

I am using Client Extension API For RM to listen action from artifact ex: RM.Event has ARTIFACT_SELECTED, ARTIFACT_SAVED,....

And I have checked with ARTIFACT_SAVED, it will callback function if saving artifact is success.
I can not validate before saving with ARTIFACT_SAVED, because artifact is saved before api return callback function.
I just handle inserted artifact and result (success, fail, cancel,.....) 
So my question is do we have any API to cancel saving artifact or config validation artifact? 

Please help me.
Thank you so much

Best regards,

Ho Le

0 votes


Accepted answer

Permanent link
Today we don't have an API that allows you to intercept a save and veto it.  As you have correctly noted the event you looked at is ARTIFACT_SAVED (past tense, telling you the save has completed) and your code there cannot intervene to prevent the save.
ho le selected this answer as the correct answer

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,941
× 1,700

Question asked: Dec 06 '16, 11:23 a.m.

Question was seen: 2,144 times

Last updated: Dec 06 '16, 1:15 p.m.

Confirmation Cancel Confirm