It's all about the answers!

Ask a question

List of operationId's


Bruno Braga (48013621) | asked Jan 24 '12, 9:11 a.m.
Where I can find a list of all operation id's for use in advisors?

7 answers



permanent link
Nick Edgar (6.5k711) | answered Jan 25 '12, 9:58 a.m.
JAZZ DEVELOPER
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.

permanent link
Bruno Braga (48013621) | answered Jan 26 '12, 6:55 a.m.
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.

permanent link
Nick Edgar (6.5k711) | answered Jan 26 '12, 9:31 a.m.
JAZZ DEVELOPER
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()

permanent link
Geoffrey Clemm (29.9k23035) | 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?

permanent link
Bruno Braga (48013621) | answered Feb 12 '12, 7:03 a.m.
New document ;)

Thanks Geoff

permanent link
Karthikeyan Elangovan (3644) | answered Mar 27 '12, 11:03 a.m.
Hi All,
I have a requirement to trigger a server side plugin (say Follow up action) when Save operation is performed in a workitem 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

permanent link
Nick Edgar (6.5k711) | answered Mar 27 '12, 11:27 a.m.
JAZZ DEVELOPER
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


Register or to post your answer.