API for Removing Flow Target from Specific Stream
One answer
Hello Everyone,
I have written the code for removing flow target ,but it is not working.Please find my code below for removing flow target-
IFlowEntry flowEntry=getService(IFlowEntry.class);
IFlowTable flowTable=getService(IFlowTable.class);
IFlowEntry[] targets = (IFlowEntry[]) flowTable.deliverTargets().toArray(new IFlowEntry[flowTable.deliverTargets().size()]);System.out.println("IFlowentry targets :"+targets);//Remove flow targetfor(IFlowEntry target:targets){flowTable.removeAll(newWorkspaceHandle);// get the nodeIFlowEntry newnode = flowTable.getDeliverFlow(newWorkspaceHandle);System.out.println("Flow node"+newnode);}
Note:-newWorkspaceHandle is a stream .
Error Message:-
Internal Error:- Unable to instantiate participant.The operation participant cannot be created(CRJAZ6011E).The "com.ibm.team.scm.common.IFlowEntry" is not registered.
Someone please guide me,what is the solution for these error.What we need to write inside plugin.xml for "IFlowTable and IFlowEntry".Please help me.
Jyoti