<div dir="ltr">Regarding blueprint to register event listeners to notify client applications on state changes (<a href="https://blueprints.launchpad.net/mistral/+spec/mistral-event-listeners-http">https://blueprints.launchpad.net/mistral/+spec/mistral-event-listeners-http</a>), I want to propose the following.<div><br></div><div>1. Refer this feature as event subscription instead of callback</div><div>2. Event subscription supports only HTTP web hooks with retry policy in this first attempt</div><div>3. Event subscription can be defined for a list of specific events, workflows, projects, domains, or any combinations (all if list is empty).</div><div>4. Decorator to publish event (similar to logging) and place decorators at Engine and TaskPolicy methods @ <a href="https://github.com/stackforge/mistral/blob/master/mistral/engine1/base.py">https://github.com/stackforge/mistral/blob/master/mistral/engine1/base.py</a>. <br></div><div>5. Events should be published to a queue and then processed by a worker so not to disrupt actual workflow/task executions.</div><div>6. API controller to register event subscriber</div><div>    a. New resource type named EventSubscriber</div><div>    b. New REST controller named EventSubscribersController and CRUD operations</div><div>7. DB v2 sqlalchemy model named EventSubscriber and appropriate CRUD methods</div><div><div>8. Operations in python-mistralclient to manage CRUD for subscribers.</div><div>9. Operation in python-mistralclient to re-publish events for a given workflow execution (in case where client applications was downed and need the data to recover).</div></div><div><br></div></div>