RTC Extension - Participant
![]()
Hi Jazz Team,
I am creating RTC extension which will change some attr values after save but even when I am creating sample example I received error after save. Maybe somebody will have some ideas
Error: Problem An error occurred during "Save Work Item". java.lang.StackOverflowError
import org.eclipse.core.runtime.IProgressMonitor; plugin.xml |
Accepted answer
![]()
// setup
private static final String Recursion = "Approvalsbypass"; // can be anything u want must be unique private static Set<String> bypass = new HashSet<String>(new ArrayList<String>(Arrays.asList(Recursion))); // in handler Object data = operation.getOperationData(); ISaveParameter saveParameter = null; if (data instanceof ISaveParameter) { saveParameter = (ISaveParameter) data; // check to see if we are being called again from our save // if not, process, otherwise skip the work // if no parms, or the parm is not ours, process request. if ( (saveParameter.getAdditionalSaveParameters() == null) || ((saveParameter.getAdditionalSaveParameters() != null) && (!saveParameter.getAdditionalSaveParameters().contains(Recursion))) ) { // do all your normal processing here ... // if u need to update the workitem you are processing for // this will cause this plugin to be called again saveStatus = fWorkItemServer.saveWorkItem3(workingCopy, null, null, bypass); } } Bartosz Chrabski selected this answer as the correct answer
|
One other answer
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.