Skip to content

Commit

Permalink
Updating drawio
Browse files Browse the repository at this point in the history
  • Loading branch information
Semprini committed Aug 29, 2024
1 parent 950083e commit 9a65808
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 303 deletions.
4 changes: 2 additions & 2 deletions mdg/parse/sparx_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def association_parse(session, tconnector: TConnector, package: UMLPackage, sour
association.source_stereotypes = [tconnector.sourcestereotype,]
if tconnector.deststereotype is not None:
association.destination_stereotypes = [tconnector.deststereotype,]

logging.debug(f"Created {association.cardinality} {association.association_type.name} from {association.source_name} to {association.destination_name}")
return association

Expand Down Expand Up @@ -362,7 +362,7 @@ def class_parse(session, package: UMLPackage, tobject: TObject) -> UMLClass:
cls.is_abstract = True
else:
cls.is_abstract = False

if tobject.isactive == 0:
cls.is_active = False

Expand Down
21 changes: 21 additions & 0 deletions sample_recipes/drawio/config-drawio-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root_package: SampleDomain
model_package: Model
test_package: Test
source: ./sample_recipes/drawio/sample.xml
parser: drawio
dest_root: ./build/sample_drawio_django
templates_folder: ./mdg/templates
default_dialect: default
generation_artifacts:
# Avro Schema
- dest: "avro/{{cls.package.name}}.{{ cls.name }}.avsc"
level: class
source: "Schema/avro.avsc.jinja"
# OpenAPI Schema
- dest: "openapi/{{ package.name }}.yaml"
level: package
source: Schema/openapi.yaml.jinja
filter: "{% if package.classes %}True{% else %}False{% endif %}"
test_templates:
- dest: ./build/sample_drawio_django/json{{ins.package.path}}/{{ins.stereotype}}.json
format: json
2 changes: 1 addition & 1 deletion sample_recipes/drawio/sample.drawio
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<mxfile host="Electron" modified="2021-01-30T12:36:39.767Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.9.9 Chrome/85.0.4183.121 Electron/10.1.5 Safari/537.36" etag="ue4VNulN_bkTl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26QJ8uMMikC2iiEVR5OCxVcleVLiBXyBfwBeGnRR4viJP4v/ocs/PHS9gKr0MZBNwXLvpwb9vDvdWRJppX0FS8V+63r7hGBaY3t4WF4P7ZSi6uYgqMjAY+bCbXK7GOKjHR/ILGlFh+chQn4S78mouvyjjfdumVWFuU2GTcmBJrJm3lKvNWhDdzKHy/o+moyTC1pMx8bUv4zfn0R3XSFXUieaXE7dOBmIl8uXyJwqDJ+Z2z15MB04kUmHrDJKdvYXHxOEl901Z3oCQKYI5ulUtJ5xVltnQltaXgI7KKcKaa+Gea9ZJ9E6/2M8306lZ8WPaMn5KV5VTyctMfkxVrkLfqaTAYIhSz/A6WJ21Syn8fs+S7zX28svvxygItW+nzp+n9MdSs4PT7Y1CZyvfF9vtjtNxrFu0y24bYZTNes5anGjvoy5Z+1+YY3lGafMzcY6V+NIaDpv1o6Y0j1WP9aPqkpKJu+NE6n3ssty439bh19tXkCrdvQtr1Ipjc/czi+qb4bDtQ8l+BvZ684BZOCU/sqCeLI03iziqtZG/Jq3VWyW1xVolSxHEO8ChGfXcBsETgmPIejfUj3UeC3iqR1oS8Y3Uug8mhixCO301wvPqKLCpXD/8H</diagram></mxfile>
<mxfile host="Electron" modified="2024-08-28T22:10:08.508Z" agent="5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/14.1.8 Chrome/87.0.4280.88 Electron/11.1.1 Safari/537.36" etag="WUILZb9JXeXGGunPzUli" version="14.1.8" type="device"><diagram name="Page-1" id="c4acf3e9-155e-7222-9cf6-157b1a14988f">7V1tc6M4Ev41/nJVSfFisP0xdpKZms3M5SaZ3b37MoVBtrWDkQ/kOM6vXwkE5kWAsMEGL1OpGiNAQtLT3Y+6GzFQZ+v3T66xWX1FFrAHimS9D9T7gaLIuq6Q/2jJPiiZKGpQsHShxS46FLzAD8AKJVa6hRbwEhdihGwMN8lCEzkOMHGizHBdtEtetkB2stWNsQSZghfTsLOlf0ALr1ipLEmHE58BXK5Y02ON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