It's all about the answers!

Ask a question

How to create participant work item plugin for first save


Pallavi Deore (38150) | asked Jun 15 '18, 6:12 a.m.
edited Jun 15 '18, 6:13 a.m.
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???



One answer



permanent link
Ralph Schoon (63.5k33646) | answered Jun 15 '18, 7:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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/

Your answer


Register or 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.