List of operationId's
![]()
Where I can find a list of all operation id's for use in advisors?
|
7 answers
![]()
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.
|
![]()
For me the only option is open all plugin.xml's of SDK and find the operationId's.
But I'm looking for pre-compiled list... maybe someone of Dev Team can help me. |
![]()
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() |
![]()
Geoffrey Clemm (30.1k●3●30●35)
| answered Jan 28 '12, 4:23 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The list of operation ID's for advisors can be found in:
https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations Cheers, Geoff On 1/24/2012 9:23 AM, bruno.braga wrote: Where I can find a list of all operation id's for use in advisors? |
|
![]()
Hi All,
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 |
![]()
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() |
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.