Book a Demo

Author Topic: generate XML from model  (Read 2973 times)

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
generate XML from model
« on: July 18, 2005, 12:35:51 pm »
Hello folks,

here is the idea:
I want to design  business processes using EA as the modeling tool (i.e. processes as a symbol with connectors combining some of them). Then after finishing a business model design, I want to export the whole business process as one XML file, where every process has its tag section. Then I want to put that XML file onto a server and interpret the processes there.

This means, I have a specific XML syntax (not XMI or so, but my clients definition of the XML syntax!), which should be generated out of the EA business process model.

Is there any chance to generate this XML from EA models using object attributes or so ?

Thanks in advance
Bernd

Molto Mike

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: generate XML from model
« Reply #1 on: July 19, 2005, 07:28:59 am »
Hi Bernd,

in general there are a few ways to create any kind of text output including XML from a model, e.g.

o Export the model's XMI and have an XSLT transform it into your own XML structure

o Write EA Code Templates to directly generate your XML code. However, I think only class diagrams are currently supported to be used for generation.

o Either parse the XMI into your own datastructures or directly use EA's COM API to query the model, then generate your XML with your own generator.

Just a few thoughts,
Mike
« Last Edit: July 19, 2005, 07:30:01 am by molto_b »

qdlaty23

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: generate XML from model
« Reply #2 on: July 20, 2005, 03:28:59 am »
Hi!

We're using transforms you've described at the moment.
We have some processess running on a Weblogic Integration platform. They are configured from a special xml file (we call it 'state model').
This file is generated from an XMI 1.2 export from EA using xslt transformation.
It works very fine. Of course not all can be done using xslt, so the output file is post-processed with a simple text-processing tool we have created.
I think this is the most flexible way to implement MDA process using EA.

Greetz

qdlaty