It's all about the answers!

Ask a question

Problem retrieving info of Plans within Follow-up action


Noel Gimeno (1521317) | asked Aug 19 '15, 7:11 a.m.
edited Sep 22 '15, 10:59 a.m.
We have created a follow-up action in the server (using operationParticipant extension point), assigned it to the Save/Plan action (com.ibm.team.apt.server.saveIterationPlan) and configure it to be run when a user saves a Plan.

Everything works fine and when the operation takes place we are able to reach our "run" method

    public void run(AdvisableOperation operation,
                IProcessConfigurationElement participantConfig,
                IParticipantInfoCollector collector, IProgressMonitor monitor)
                throws TeamRepositoryException {...}

from the implementation Class of the participant:
public class followupH extends AbstractService implements IOperationParticipant { ...}

Within our "run" method, we need to access some information about the recently saved plan, such as Plan id, Plan name, etc. Basically, the information contained in a "IIterationPlanRecord" should be fine for us.

Here comes our problem, we are not able to extract this info.
A usual "operation.getOperationData()" in the AdvisableOperation of the "run" method gives us just a String Object with the text"[modify/plan]". No NewStateItem nor OldState nor UUID... we are not able to extract any information from "AdvisableOperation operation".
Anyone working with advisors/participants in Plans could give us a hint?

Thank you very much in advance!

Be the first one to answer this question!


Register or to post your answer.