PySCXML
PySCXML copied to clipboard
Return value from scxml executable block is not working
Hi Johan,
For returning a return value from scxml executable section,
I have been using queue as per your suggestions on issue#60
<transition event="add_item">
<script>
queue.put(_event.data);
</script>
</transition>
</state>
q = Queue.Queue() sm.send("set_queue", q) my_item = q.get() # will return the above passed item
It was working fine till pyscxml-0.8_20111128_full-py2.7 and all later releases gives following error
Traceback (most recent call last): File "C:\Python27\lib\site-packages\eventlet-0.12.1-py2.7.egg\eventlet\queue.py", line 107, in switch self.greenlet.switch(value) error: cannot switch to a different thread
Please help me in resolving this issue
Regards, Abel