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

How to create participant work item plugin for first save

Hi,

I am using CLM Version 5.0.1.
I want to create a participant plugin which will trigger only when work item will save first time.
Means I want to create a plugin which will trigger only when work item creates.
I tried using below code but it fails

if (data instanceof ISaveParameter) {
// Get state of auditable item
ISaveParameter saveParameter = (ISaveParameter) data;
IAuditable auditable = saveParameter.getOldState();
if(auditable==null)
{
// If everything is correct, the auditable is an WorkItem
if (auditable instanceof IWorkItem) 
{
IWorkItem workItem = (IWorkItem) auditable;



                            //actual plugin code


                         }
                        }
      }

Any code??

Any idea???



0 votes



One answer

Permanent link

The needed code is presented and explained in the Extensions Workshop. See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

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

Question asked: Jun 15 '18, 6:12 a.m.

Question was seen: 1,848 times

Last updated: Jun 15 '18, 7:28 a.m.

Confirmation Cancel Confirm