does it not work like this ?
<state name="setup"> <event type="node-enter"> <script> <expression>myChoice = 3;</expression> <variable name='myChoice' access='write' /> </script> </event> <transition name="" to="exclusive choice"></transition> </state>
did you try?
(if the question was addressed to me: yes, tried it, and it works like expected - it creates/updates myChoice var and sets it to val 3)
Yes it was addressed to you since I could not make clear from your statement that it should work like this.