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

operationData instanceof ???

I have developed a pre-condition plug-in and checked it when delivered. The following code snippet is used:

public void run(AdvisableOperation operation,

IProcessConfigurationElement advisorConfiguration,
IAdvisorInfoCollector collector, IProgressMonitor monitor)
throws TeamRepositoryException {

Object operationData = operation.getOperationData();
        if (!(operationData instanceof DeliverOperationData))
        {
        return;
        }
   ... ...
}


Now I want to develop a "plug-in to check when the change set is modified", but I don’t know what the question mark should be, thank you

        if (!(operationData instanceof ???))
        {
         return;
        }


Thank you.


0 votes



One answer

Permanent link

It depends on what you mean by 'change set is modified'.
There is no process enabled 'change set modified' operation (i.e. which gets fired when any change to an IChangeSet item happens).

You can register a precondition for:
-Check-in (when a change set is checked into a repository workspace)
-Deliver (when a change set is delivered to a stream)
-Save change set comment, or add links to a change set
-Component changes (changes to the component item itself, not the change sets or files in it)
-Stream changes (changes to the stream item itself, not the components or change sets or files in it)

What exactly are you trying to achieve?

To be clear though, DeliverOperationData is the ONLY type that will be available for the 'deliver' precondition.

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

Question asked: May 13 '21, 10:24 a.m.

Question was seen: 1,140 times

Last updated: May 14 '21, 10:53 a.m.

Confirmation Cancel Confirm