Remove usage of deprecated 'task_notifier' property in build_car example

Change-Id: Ia9d18c09709d550a017c5efbe1075b9a551496f6
This commit is contained in:
Joshua Harlow
2015-06-12 11:35:19 -07:00
parent 4b28b32778
commit 2e3543e566

View File

@@ -167,7 +167,7 @@ engine = taskflow.engines.load(flow, store={'spec': spec.copy()})
# flow_watch function for flow state transitions, and registers the
# same all (ANY) state transitions for task state transitions.
engine.notifier.register(ANY, flow_watch)
engine.task_notifier.register(ANY, task_watch)
engine.atom_notifier.register(ANY, task_watch)
eu.print_wrapped("Building a car")
engine.run()
@@ -180,7 +180,7 @@ spec['doors'] = 5
engine = taskflow.engines.load(flow, store={'spec': spec.copy()})
engine.notifier.register(ANY, flow_watch)
engine.task_notifier.register(ANY, task_watch)
engine.atom_notifier.register(ANY, task_watch)
eu.print_wrapped("Building a wrong car that doesn't match specification")
try: