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

Does not load IWorkItemPostSaveParticipant

Hi,

I need to update state of RTC Defect on save operation. For example, If user has moved status to "Reopen", description should be updated with "Reopen template" automatically. To achieve this I tried to create IWorkItemPostSaveParticipant Plugin as follow :

public class CheckSave extends AbstractService implements IWorkItemPostSaveParticipant{

HttpResponse response;

HttpClient httpclient;

public static final String WI_TYPE = "wiType"; //$NON-NLS-1$

public static final String WORKFLOW_ACTION = "workflowAction";

public void run(ISaveParameter saveParameter) throws TeamRepositoryException

{

IWorkItem workItem = (IWorkItem) saveParameter.getNewState();

if (workItem != null) {

StringBuffer res = new StringBuffer();

res.append("Got a workItem with data [");

res.append("Duration=" + workItem.getHTMLDescription() + "\n");

res.append("Id=" + workItem.getId() + "\n"); // object

System.out.println(res);

workItem.setHTMLDescription(XMLString.createFromPlainText("Added from plugin"));

}

On deploy, plugin does not get loaded.



0 votes



One answer

Permanent link
I think u started with the wrong base class

here is from one of mine

public class WorkItemFailAdvisor extends AbstractService implements IOperationAdvisor{

Sam

0 votes

Comments

Thanks for the reply. For precondition I am using IOperationAdvisor which works fine, but on precondition plugin we can not update the state of workitem. I need to create a plugin for followup action which is triggered on post save so that I can update the state of workitem.

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
× 369

Question asked: Aug 06 '12, 9:08 a.m.

Question was seen: 4,850 times

Last updated: Aug 06 '12, 1:17 p.m.

Confirmation Cancel Confirm