Menu

#1 Some bugs

open
nobody
None
5
2010-04-28
2010-04-28
No

First:

I exported an xmi (version 1.1) from Astah (former Jude). xmi2php could not find a DataType and raized

Notice: Undefined index: 1fg-g59ifv7j-1t2bmx-23a4p-0ae5142d6945964cc9566e8dde605b0b in D:\htdocs\tcc\impl\xmi2php\classes\XMI2PHP\Engine\XMIParser.php on line 794

I found out that this id matched the "void" data type in my xmi, but xmi2php couldn't find it because it´s element's name was "Primitive".

Changing line XMIParser.php @ line 804 from
foreach (array(self::ELEM_CLASS, self::ELEM_INTERFACE) as $type) {

to
foreach (array(self::ELEM_CLASS, self::ELEM_INTERFACE, 'Primitive') as $type) {

seemed to work.

Second:
Generalizations were not working, and I found out there was an error in xmi2php's config.xml.

<xmi><version_1_1><generalizationParticipant>Class</generalizationParticipant>
should be
<xmi><version_1_1><generalizationParticipant>GeneralizableElement</generalizationParticipant>

Don´t know if these were errors in xmi2php itself or in Astah's xmi exporter, but these changes worked for me.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB