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

List of operationId's

Where I can find a list of all operation id's for use in advisors?

0 votes



7 answers

Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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()

0 votes


Permanent link
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?

0 votes


Permanent link
New document ;)

Thanks Geoff

0 votes


Permanent link
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

0 votes


Permanent link
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()

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,954

Question asked: Jan 24 '12, 9:11 a.m.

Question was seen: 7,006 times

Last updated: Jan 24 '12, 9:11 a.m.

Confirmation Cancel Confirm