mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:21: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):
|
def trigger(self, trigger, message):
|
||||||
predicate_results = []
|
predicate_results = []
|
||||||
for predicate in self.trigger_predicates[trigger]:
|
for predicate in self.trigger_predicates[trigger]:
|
||||||
success, message = predicate()
|
success, message = predicate(message)
|
||||||
predicate_results.append(success)
|
predicate_results.append(success)
|
||||||
self.messenge_sender.send('FSM', message)
|
self.messenge_sender.send('FSM', message)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user