Constraint Class does exist in UML model. Got error
below. I attached a screen shot of the part of the
schema affecting the problem. I also noticed the
Constraint that inherits from "ReactionInfo" which has
a sterotype of "type". I am not sure if Pymerase
handles this or not?
Traceback (most recent call last):
File "./creategraphvizuml.py", line 15, in ?
pymerase.run(schema, parseXMI, output,
CreateGraphvizUML)
File
"/usr/lib/python2.2/site-packages/pymerase/__init__.py",
line 300, in run
translator.write(parsedInput, destination, None)
File
"/usr/lib/python2.2/site-packages/pymerase/__init__.py",
line 286, in write
outputTranslator.write(destination, parsedInput)
File
"/usr/lib/python2.2/site-packages/pymerase/output/CreateGraphvizUML.py",
line 150, in write
label = re.sub("<ATTRIB_NAME>",
getAttributeString(attribute), label)
File
"/usr/lib/python2.2/site-packages/pymerase/output/CreateGraphvizUML.py",
line 69, in getAttributeString
text = "+%s: %s\l<ATTRIB_NAME>" %
(attrib.getName(TRANSLATOR_NAME),
File
"/usr/lib/python2.2/site-packages/pymerase/util/PymeraseType.py",
line 129, in getSQLType
raise NotImplementedError("Type %s is unknown" %
self.type_string)
NotImplementedError: Type Constraint is unknown
Screenshot of schema section causing problems.