Action is not a valid element inside of state. A state is just a 'wait-state' that sits there until someone signals the token out of it.
If you want a state that performs an action like that, use a node element. You are allowed to put an action inside the node element like you are trying with state. The action in the node will get fired whenever it gets to the node.
or if you add an event type to it, it gets fired whenever the events occurs