Skip to content

Return value from scxml executable block is not working #5

@joshythomas

Description

@joshythomas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions