View Source wfnet_ehan (wfnet v0.1.0)

The wfnet event handler. Handles the various events from the wfnet server.

By default, it will wait for the events and produce a log.

We can also wait/block until the end of workflow.

To enable the handler, use wfnet_ehan:add_handler/0

Summary

Functions

Adds an event handler
Creates an event manager

Functions

-spec add_handler() -> ok | {'EXIT', Reason :: term()} | term().
Adds an event handler
-spec start_link() -> {ok, Pid :: pid()} | {error, Error :: {already_started, pid()} | term()}.
Creates an event manager