Does not load IWorkItemPostSaveParticipant
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";
{
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.