uFSM support

0 votes
asked Jan 12 in Wanted features by mcon (280 points)

Hi,

is there any chance to tweak XMI exporter (`-txmi`) to support [uFSM](https://github.com/jonasblixt/ufsm)?

I am specifically aiming to have a State Diagram exported in a format compatible with:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.0" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
	<xmi:Documentation exporter="StarUML" exporterVersion="2.0"/>
	<uml:Model xmi:id="AAAAAAFj1VepY3Kpt1Q=" xmi:type="uml:Model" name="RootModel">
		<packagedElement xmi:id="AAAAAAFF+qBWK6M3Z8Y=" name="Model" visibility="public" xmi:type="uml:Model">
			<packagedElement xmi:id="AAAAAAFj1VUAhXH38A4=" name="StateMachine1" visibility="public" isReentrant="true" xmi:type="uml:StateMachine">
				<region xmi:id="AAAAAAFj1VUAhXH44I8=" visibility="public" xmi:type="uml:Region">
					<subvertex xmi:id="AAAAAAFj1VUnhXH+I+8=" name="LEDON" visibility="public" xmi:type="uml:State">
						<entry xmi:id="AAAAAAFj1VV6BHJKqAs=" name="led_on" visibility="public" isReentrant="true" xmi:type="uml:OpaqueBehavior"/>
						<exit xmi:id="AAAAAAFj1VWtuXJRTQM=" name="led_off" visibility="public" isReentrant="true" xmi:type="uml:OpaqueBehavior"/>
					</subvertex>
					<subvertex xmi:id="AAAAAAFj1VVLiXIkI5A=" name="LEDOFF" visibility="public" xmi:type="uml:State"/>
					<subvertex xmi:id="AAAAAAFj1VaXo3KGxzg=" visibility="public" xmi:type="uml:Pseudostate" kind="initial"/>
					<transition xmi:id="AAAAAAFj1VX/oXJYs/Y=" visibility="public" xmi:type="uml:Transition" source="AAAAAAFj1VVLiXIkI5A=" target="AAAAAAFj1VUnhXH+I+8=" kind="external">
						<ownedMember xmi:id="AAAAAAFj1VYVZXJqm2Y=" name="EV" visibility="public" xmi:type="uml:AnyReceiveEvent"/>
						<trigger xmi:id="AAAAAAFj1VepZXKq7+M=" xmi:type="uml:Trigger" name="EV" event="AAAAAAFj1VYVZXJqm2Y="/>
						<trigger xmi:id="AAAAAAFj1VYVZXJqm2Y=" name="EV" visibility="public" xmi:type="uml:AnyReceiveEvent"/>
					</transition>
					<transition xmi:id="AAAAAAFj1VZC6nJwnl0=" visibility="public" xmi:type="uml:Transition" source="AAAAAAFj1VUnhXH+I+8=" target="AAAAAAFj1VVLiXIkI5A=" kind="external">
						<ownedMember xmi:id="AAAAAAFj1VZOmHKCqkQ=" name="EV" visibility="public" xmi:type="uml:AnyReceiveEvent"/>
						<trigger xmi:id="AAAAAAFj1VepZXKrDSA=" xmi:type="uml:Trigger" name="EV" event="AAAAAAFj1VZOmHKCqkQ="/>
						<trigger xmi:id="AAAAAAFj1VZOmHKCqkQ=" name="EV" visibility="public" xmi:type="uml:AnyReceiveEvent"/>
					</transition>
					<transition xmi:id="AAAAAAFj1VaX13KX3ag=" visibility="public" xmi:type="uml:Transition" source="AAAAAAFj1VaXo3KGxzg=" target="AAAAAAFj1VVLiXIkI5A=" kind="external"/>
				</region>
			</packagedElement>
		</packagedElement>
	</uml:Model>
</xmi:XMI>

which is one of uFSM examples, apparenly produced via StarUML

Being able to produce such outputs would enable to directly generate State Machines from a State Diagram

Thanks in Advance

Mauro

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...