Well, unfortunately I'm not allowed to do that. I was thinking about
solving the action-problem by just placing the action as a string in a
var-tag, like this:
<transition event="e1" cond="c" target="s2">
  <var>a1</var>
</transition>
The problem is, I don't know how to reach the var-value from the
transition in my java-code (that uses the Commons engine). 
However,if there is a possible solution where I can place the action
directly in the transition-tag, like the events and conds, with some
variable name, I would like to know that too.
 
/Anna

 

It might be easier to simply create a generator in ArgoUML to generate
SCXML
from a statechart.

Mark

On Tue, Feb 24, 2009 at 2:00 PM, Anna Svdling
<[email protected]>wrote:

> Hello,
>
> I'm building a diagram-editor for statecharts. The statechart should
> then be transformed into SCXML and run through an interface. The
> interface should be able to send events to and accept actions from the
> statechart. I'm just wondering if there's a (reasonably) simple way to
> express an action in SCXML? I mean, events and conditions can simply
be
> placed in a transition-tag, but that doesn't seem to be the case with
> actions? I know that you can design "custom actions", but I'm
wondering
> if there is some easier way to do it, or if there already is some way
to
> represent an action?
>
> Sincerely,
> Anna
>




_______________________________________________________________




<P><p><font face="Arial, Helvetica, sans-serif" size="2" 
style="font-size:13.5px">_______________________________________________________________<BR>
 </font>

Reply via email to