statecharts icon indicating copy to clipboard operation
statecharts copied to clipboard

Allow definition of operations in the statechart definition

Open andreasmuelder opened this issue 9 years ago • 1 comments

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 avatar Jan 22 '16 07:01 andreasmuelder

Voted via user group

Jonathan Marino It would be great to have that feature

andreasmuelder avatar Jun 12 '17 21:06 andreasmuelder