mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:41:32 +00:00
Pass processed message to FSM trigger predicates
This commit is contained in:
parent
96c322c17c
commit
b785b88af6
@ -66,7 +66,7 @@ class FSMManager:
|
||||
def trigger(self, trigger, message):
|
||||
predicate_results = []
|
||||
for predicate in self.trigger_predicates[trigger]:
|
||||
success, message = predicate()
|
||||
success, message = predicate(message)
|
||||
predicate_results.append(success)
|
||||
self.messenge_sender.send('FSM', message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user