Skip to content

Commit c40e7e6

Browse files
committed
feat: Support for SCXML <_event.name>
1 parent 808946a commit c40e7e6

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

statemachine/io/scxml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def __init__(self, event_data):
4141
def __getattr__(self, name):
4242
return getattr(self.event_data, name)
4343

44+
@property
45+
def name(self):
46+
return self.event_data.event
47+
4448
@property
4549
def data(self):
4650
"Property used by the SCXML namespace"

0 commit comments

Comments
 (0)