Is there a way to receive an event through ALH script?

Hello,
When using opaque behavior nodes, I can send a signal via ALH scripting as following:

sig = ALH.createSignal("MySignal")
ALH.sendSignal(sig, self, "port_name")

 

I am wondering if there is a way to wait for a signal using a similar construct. For the moment, I can use a "Accept Event Action" node for a given signal (and optionally specify the port), but I would like to do this through scripting instead.

 

Thank you