Author Topic: Generate data model subset + JSON  (Read 1402 times)

MatthiasVDE

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Generate data model subset + JSON
« on: December 22, 2017, 02:19:03 am »
With the Message Composer from Geert Bellekens it's possible to create a subset from the canonical data model.
But if you want to generate JSON files you have to run the Schema Composer and create a new schema from that subset.

Is there a solution to do this in a simple way: create subset + generate json file?

Thanks

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6418
  • Karma: +55/-6
    • View Profile
Re: Generate data model subset + JSON
« Reply #1 on: January 02, 2018, 08:30:45 am »
The bulk of the schema composer UI is dedicated to defining a subset. That subset can then be generated either to a new model package or to a schema definition file (in a variety of formats).

I'm not sure of Geert's Message Composer, but it sounds like it may be an unnecessary step.

Simon

support@sparxsystems.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8384
  • Karma: +202/-25
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generate data model subset + JSON
« Reply #2 on: January 02, 2018, 05:16:23 pm »
I'm not sure of Geert's Message Composer, but it sounds like it may be an unnecessary step.

That would be in case if
- The standard subset feature would not be flawed (try redefining a class and see what happens)
- The standard subset feature would have more options (like collapsing inheritance, traceability to source elements and features,...)
- The XSD generation from a profile would have the same options as the standard XSD generation in terms of tweaking the result.

With the current state of affairs the Schema Composer out of the box is not flexible enough to be used in a professional context to define messages and generate xsd's (or JSON's)

Geert