itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
173 stars 84 forks source link

Allow definition of operations in the statechart definition #317

Open andreasmuelder opened 8 years ago

andreasmuelder commented 8 years ago

Requested via our user group: https://groups.google.com/forum/#!topic/yakindu-user/Nng9Y8gWORo

I would really like to be able to define an internal operation like this:

internal: var x:integer var y:integer var z:integer

operation op(i1:integer, i2:integer):void / x=y+z;

y+=1;

x+=1

Then I could use that operation in a statechart: operationfeature

Right now I have to copy pase the assignments or let an external class implement the operation or use a weird statemachine with additional variables :D Would be really nice if you could implement this feature.

andreasmuelder commented 7 years ago

Voted via user group

Jonathan Marino It would be great to have that feature