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

Can someone share some limelight how the event RM.Event.ARTIFACT_SAVED works with a sample code if possible

I am currently trying to capture the save event of an artifact using RM.Event.ARTIFACT_SAVED and it does not seem to work. It would be if there is a sample code through which the working is explained. Thank you

0 votes


Accepted answer

Permanent link

Go to https://jazz.net/wiki/bin/view/Main/RMExtensions703
click on Examples.
On that page click on  "The attached .zip file contains all of the samples.".
Unzip the example file. Go to the ASIL example open the asil.js and search for ARTIFACT_SAVED.

Prajwal Sridhar selected this answer as the correct answer

1 vote

Comments

Thank you. I was able to debug the issue from the code.

 RM.Client.setSelection([]) helped in stopping the recursive action.


2 other answers

Permanent link

At least in the 7.0.3 example asil_gadget there is use of the ARTIFACT_SAVED event - have you tried that?


See extensions for your version: https://jazz.net/wiki/bin/view/Main/RMExtensionsMain - there are examples with source code in each version

0 votes

Comments
Ian Barnard Thank you for the reply. My use case is to update an attribute of the artifact on save but it is running on loop. This is logically correct since the update and save are recursive. Is there any solution for this use case

Also is it necessary to call the RM.Event.ARTIFACT_SAVED inside the RM.Event.ARTIFACT_SELECTED because the save event is not getting triggered other wise

How does the asil example handle this?


Permanent link
Ian Barnard
RMExtensionsASILSample703 < Main < TWiki If this the example then i was not able to find the  saved event. If it is different, would be kind to share the resource

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
× 12,094

Question asked: Jan 08, 2:29 a.m.

Question was seen: 942 times

Last updated: Jan 22, 8:20 a.m.

Related questions
Confirmation Cancel Confirm