Skip to content

Commit af4ea3c

Browse files
committed
added metadata to function and event states with the information on the action functions and events definitions
Signed-off-by: Pedro Escaleira <pedroescaleira@hotmail.com>
1 parent aac4e37 commit af4ea3c

File tree

3 files changed

+123
-113
lines changed

3 files changed

+123
-113
lines changed

serverlessworkflow/sdk/state_machine_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, *args, **kwargs):
1717
Args:
1818
**kwargs: If kwargs contains `metadata`, assign them to the attribute.
1919
"""
20-
self.metadata = kwargs.pop("metadata", [])
20+
self.metadata = kwargs.pop("metadata", None)
2121
super(Metadata, self).__init__(*args, **kwargs)
2222

2323
def __getattr__(self, key):

0 commit comments

Comments
 (0)