<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;">Phooie.  As soon as you frame a question, you have the answer...<br><br>Element <span style="font-family: courier,monaco,monospace,sans-serif;"><UML:AssocWidget ...></span> has 2 attributes <span style="font-family: courier,monaco,monospace,sans-serif;">widgetbid </span>and <br><span style="font-family: courier,monaco,monospace,sans-serif;">widgetaid</span>.  The numbers contained in these attributes associate<br>the transition with the attribute <span style="font-family: courier,monaco,monospace,sans-serif;">xmi.id</span> for their respective  <span style="font-family: courier,monaco,monospace,sans-serif;">StateWidgets</span>.<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original
 Message ----<br>From: "funkyworklehead@yahoo.com" <funkyworklehead@yahoo.com><br>To: umbrello-devel@kde.org<br>Sent: Friday, June 1, 2007 2:38:04 PM<br>Subject: [Uml-devel] Fw: How to extract associations between states in state diagram?<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;">Hello.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">I've drawn a simple finite state machine(FSM)</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">in Umbrello as a "State Diagram"</span><br><br><br>     +---+   EVENT_A  
 +---+<br>     | A |------------>| B |<br>     +---+             +---+<br><br><span style="font-family: arial,helvetica,sans-serif;">Given this FSM I would like to extract the</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">associations from the XML. i.e. I would
 like</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">to read the xml file produced by this drawing</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">and gain the following information:</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> There are 2 states: </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    - A</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    - B</span><br style="font-family: arial,helvetica,sans-serif;"> There is 1 association (transition): <br>     - <transition_1>:<br>        type = directed
 (i.e. 1 endpoint)<br>       text = EVENT_A<br>       begin point = state A<br>        endpoint = state B<br><br><span style="font-family: arial,helvetica,sans-serif;">Does anyone know what attributes of the XML will</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">give me this information?  I can't seem to find </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">a pattern.  I don't see how the states and </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">transition arrow are linked by looking at the </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">attributes of the XML.</span><br style="font-family: arial,helvetica,sans-serif;"><span
 style="font-family: arial,helvetica,sans-serif;">Example StateWidget:</span><br><span style="font-family: arial,helvetica,sans-serif;"><--! FOR STATE A --></span><br><UML:StateWidget statetype="1" statename="A" usesdiagramfillcolour="1" width="47" usesdiagramusefillcolour="1" x="172" linecolour="none" y="185" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="27" usefillcolor="1" isinstance="0" xmi.id="11" documentation="" font="Sans Serif,10,-1,5,50,0,0,0,0,0" ><br><span style="font-family: arial,helvetica,sans-serif;"><--! FOR STATE B --></span><br><UML:StateWidget statetype="1" statename="B" usesdiagramfillcolour="1" width="47" usesdiagramusefillcolour="1" x="342" linecolour="none" y="195" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="27" usefillcolor="1" isinstance="0" xmi.id="12" documentation="" font="Sans Serif,10,-1,5,50,0,0,0,0,0" ><br><br><span style="font-family: arial,helvetica,sans-serif;"><--!
 Association widget --></span><br><associations><br>     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" widgetbid="12" widgetaid="11" roleBdoc="" roleAdoc="" type="514" changeabilityA="900" changeabilityB="900" visibilityA="200" ><br>      <linepath><br>       <startpoint startx="219" starty="198" /><br>       <endpoint endx="342" endy="208" /><br>      </linepath><br>      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="120" usesdiagramusefillcolour="1" x="280" linecolour="none" y="203" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="20" usefillcolor="1" pretext="" isinstance="0" xmi.id="-1" text="EVENT_A" font="Sans Serif,10,-1,5,50,0,0,0,0,0" /><br>     
 <UML:FloatingTextWidget usesdiagramfillcolour="1" width="16" usesdiagramusefillcolour="1" x="221" linecolour="none" y="200" instancename="" posttext="" usesdiagramlinecolour="1" role="709" fillcolour="none" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="-1" text="" font="Sans Serif,10,-1,5,50,0,0,0,0,0" /><br>      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="16" usesdiagramusefillcolour="1" x="324" linecolour="none" y="186" instancename="" posttext="" usesdiagramlinecolour="1" role="710" fillcolour="none" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="-1" text="" font="Sans Serif,10,-1,5,50,0,0,0,0,0" /><br>     </UML:AssocWidget><br>    </associations><br><br><span style="font-family: arial,helvetica,sans-serif;">I don't want to try to extract the information from the X,Y position</span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">co-ordinates, because who is to say that some of the consumers of my</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">code in process won't overlap states...</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">Does anyone know?  Could a developer give me a hint?<br><br>Thanks.<br></span></div></div></div><br></div></div><br>
      <hr size="1"><a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50">Pinpoint customers </a>who are looking for what you sell. 

<div>-------------------------------------------------------------------------<br>This SF.net email is sponsored by DB2 Express<br>Download DB2 Express C - the FREE version of DB2 express and take<br>control of your XML. No limits. Just data. Click to get it now.<br><a target="_blank" href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a></div><div>_______________________________________________<br>Uml-devel mailing list<br>umbrello-devel@kde.org<br><a target="_blank" href="https://mail.kde.org/mailman/listinfo/umbrello-devel">https://mail.kde.org/mailman/listinfo/umbrello-devel</a><br></div></div><br></div></div><br>
      <hr size=1>Boardwalk for $500? In 2007? Ha! <br><a href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.</body></html>