[Uml-user] UMI Question re: UMLAssocWidget tag

Mark Priest mpriest at ekosystems.com
Fri Apr 18 09:22:07 UTC 2003


Hi,

I was working on a small project to run a test engine from information 
contained in an Umbrello state diagram.  One of the nice things about 
Umbrello is the XMI format allows you to access model information using an 
XML parser.

I moved on to a different approach before completing the project but I did 
spend about a day and a half writing an XSLT template to transform the 
Umbrello XMI format into a simpler state model format.  I thought I would 
share the template with this list in case it would be useful to somebody 
else.  The XML format I am using is defined in an attached schema.  Here is 
an example of the XML that can be generated.

<?xml version="1.0" encoding="UTF-8"?>
<billingStateModel>
  <description>Top Doc</description>
  <state id="24" isRootState="true">
    <name>State</name>
    <transitions>
      <transition>
        <nextState stateRef="25"/>
      </transition>
      <transition>
        <nextState stateRef="26"/>
      </transition>
    </transitions>
  </state>
  <state id="25">
    <name>State1</name>
    <description>Docs</description>
    <activities>
      <activity>startactivity</activity>
      <activity>endactivity</activity>
    </activities>
    <transitions>
    </transitions>
   </state>
   <state id="26">
     <name>State2</name>
     <activities>
       <activity>startact</activity>
     </activities>
     <transitions>
     </transitions>
   </state>
</billingStateModel>

Hopefully somebody will find the attached template useful.

-Mark




On Friday 11 April 2003 2:52 am, Sebastian Stein wrote:
> Mark Priest <mpriest at ekosystems.com> [030410 22:33]:
> > I am trying to use the XMI as input to some processing logic.
>
> Maybe you want to share your processing logic as an Umbrello plugin?
>
> Steinchen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: billingStateModel.xsd
Type: text/xml
Size: 1930 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello/attachments/20030418/1e376c87/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stateTransformer.xsl
Type: text/xml
Size: 4299 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello/attachments/20030418/1e376c87/attachment-0001.xml>


More information about the umbrello mailing list