Pollen provides a way for an external application to observe Flor's behaviors using an HTTP interface. It's also a great showcase for Flor's hooking facility (see hooks.conf.sample).
By default it will report the following events but those can be extended:
- flow creation/launch
- task return (aka reply and proceed)
- flow termination
- cancellation
- errors
- Clone the repository within Flor/Flack's
<env>/lib/hooks
directory. - Copy the content of
hooks.json.sample
on<env>/lib/hooks/hooks.json
to inform Flor about the new hooks. This is where you can extend the events you want to monitor. - By default Pollen will contact your hook handler at
http://localhost:3000/hookhandler/
. This can be controlled through Flor/Flack's configuration (<env>/etc/conf.json
) as follow:pollen_prot: "http" pollen_host: "localhost" pollen_port: "3000" pollen_path: "hookhandler"
- Enjoy!
MIT, see LICENSE.md