List of operationId's
7 answers
![](http://jazz.net/_images/myphoto/193222577268923904c5344eb6c9af2c.jpg)
I don't think a full list is available anywhere, unless you grovel through the plugin.xml's. If you want to find out the id for a given operation, try tweaking its permissions or add a precondition or follow-up action and see how the process spec's XML changes. Could do this in a separate team area's process customization to make the changes easier to see.
![](http://jazz.net/_images/myphoto/193222577268923904c5344eb6c9af2c.jpg)
Since these are contributed as extensions, you could use the Eclipse extension registry APIs to query the available extensions:
org.eclipse.core.runtime.Platform.getExtensionRegistry()
org.eclipse.core.runtime.IExtensionRegistry.getExtensionPoint(String)
org.eclipse.core.runtime.IExtensionPoint.getExtensions()
org.eclipse.core.runtime.Platform.getExtensionRegistry()
org.eclipse.core.runtime.IExtensionRegistry.getExtensionPoint(String)
org.eclipse.core.runtime.IExtensionPoint.getExtensions()
![](http://jazz.net/_images/myphoto/193222577268923904c5344eb6c9af2c.jpg)
Hi All,
I have a requirement to trigger a server side plugin (say Follow up action) when Save operation is performed in aworkitem of specific type and not for all workitem save operations
As of now, I have used the common workitem save operation id: "com.ibm.team.workitem.operation.workItemSave " which triggers my plugin when save action is performed in all workitems but I need that to be triggered only when a particular workitem is saved.
Is it possible to limit the trigger to happen only for a specific workitem save operation? or Is there any operation id available for any specific workitem save operation?
Please drop your comments ASAP
Thanks in Advance
I have a requirement to trigger a server side plugin (say Follow up action) when Save operation is performed in a
As of now, I have used the common workitem save operation id: "
Is it possible to limit the trigger to happen only for a specific workitem save operation? or Is there any operation id available for any specific workitem save operation?
Please drop your comments ASAP
Thanks in Advance
![](http://jazz.net/_images/myphoto/193222577268923904c5344eb6c9af2c.jpg)
The operation id doesn't change based on the type of work item. There's only one id for a given operation, like work item save. Operations may be broken down into different "actions", e.g. for creating a new work item vs. updating an existing one, but the same operation id is used, and the same advisors get called.
You'll need to check the type based on the operation data passed to the advisor or participant.
The signature for the advisor (aka precondition) run method is:
com.ibm.team.process.common.advice.runtime.IOperationAdvisor.run(AdvisableOperation, IProcessConfigurationElement, IAdvisorInfoCollector, IProgressMonitor)
Similarly for participants (aka follow-up actions):
com.ibm.team.process.common.advice.runtime.IOperationParticipant.run(AdvisableOperation, IProcessConfigurationElement, IParticipantInfoCollector, IProgressMonitor)
To get the operation data from the passed-in AdvisableOperation, use:
com.ibm.team.process.common.advice.AdvisableOperation.getOperationData()
In the case of work item save, this is com.ibm.team.workitem.common.ISaveParameter.
To get the work item, use ISaveParamater.getNewState() and cast down to IWorkItem.
The work item type id is obtained with:
com.ibm.team.workitem.common.model.IWorkItem.getWorkItemType()
The actions I mentioned earlier can be determined using:
com.ibm.team.process.common.advice.AdvisableOperation.getActions()
You'll need to check the type based on the operation data passed to the advisor or participant.
The signature for the advisor (aka precondition) run method is:
com.ibm.team.process.common.advice.runtime.IOperationAdvisor.run(AdvisableOperation, IProcessConfigurationElement, IAdvisorInfoCollector, IProgressMonitor)
Similarly for participants (aka follow-up actions):
com.ibm.team.process.common.advice.runtime.IOperationParticipant.run(AdvisableOperation, IProcessConfigurationElement, IParticipantInfoCollector, IProgressMonitor)
To get the operation data from the passed-in AdvisableOperation, use:
com.ibm.team.process.common.advice.AdvisableOperation.getOperationData()
In the case of work item save, this is com.ibm.team.workitem.common.ISaveParameter.
To get the work item, use ISaveParamater.getNewState() and cast down to IWorkItem.
The work item type id is obtained with:
com.ibm.team.workitem.common.model.IWorkItem.getWorkItemType()
The actions I mentioned earlier can be determined using:
com.ibm.team.process.common.advice.AdvisableOperation.getActions()