APAR status
Closed as program error.
Error description
Client is using the api removeGraphElements(IRPCollectoon) to re move some classes from the OMD.But it is not possible create a c ollection of the graphical items that needs to be deleted.It doe s not allow to add them into the collection.For instance , the b elow code : IRPObjectModelDiagram omd = (IRPObjectModelDiagram)app.getSelect edElement(); IRPCollection col = app.createNewCollection(); for(Object o:omd.getGraphicalElements().toList()) { IRPGraphElement gr = (IRPGraphElement)o; if(gr.getModelObject().getName().equals('A')) col.addItem((IRPModelElement)gr); // fails at this line } omd.removeGraphElements(col); It fails at the line for the call addItem().This functon takes o nly arguments of IRPModelelement and cannot take IRPGraphelement s.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Rhapsody API: There is no way to create a collection of IRPGraphElement objects.
Problem conclusion
A new method, addGraphicalElementItem, has been added to the IRPCollection interface.
Temporary fix
Comments
APAR Information
APAR number
PM07631
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
750
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-02-15
Closed date
2010-09-16
Last modified date
2010-09-16
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R750 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
16 September 2010