Flexflow.Process behaviour (flexflow v0.1.8) View Source
Process
Link to this section Summary
Callbacks
Invoked when process is started, after events and gateways init, see Flexflow.Api.init/1
Module name
Link to this section Types
Specs
definition() :: {:event | :gateway, Flexflow.identity()}
Specs
Init result
Specs
state() :: :paused | :waiting | :loop | :active | :created
Specs
t() :: %Flexflow.Process{
__args__: Flexflow.process_args(),
__context__: Flexflow.Context.t(),
__counter__: integer(),
__definitions__: [definition()],
__graphviz__: Keyword.t(),
__loop__: integer(),
__opts__: Keyword.t(),
__tasks__: %{required(reference()) => term()},
__vsn__: [{module(), term()}],
events: %{required(Flexflow.identity()) => Flexflow.Event.t()},
gateways: %{required(Flexflow.identity()) => Flexflow.Gateway.t()},
id: Flexflow.id() | nil,
module: module(),
name: Flexflow.name(),
state: state()
}
Link to this section Functions
Specs
Specs
Specs
handle_call(t(), term(), GenServer.from() | nil) :: result()
Specs
Specs
Specs
Specs
Specs
new(module(), Flexflow.id(), Flexflow.process_args()) :: result()
Specs
Specs
Link to this section Callbacks
Specs
handle_call(t(), term(), GenServer.from()) :: result()
Specs
Specs
Specs
Invoked when process is started, after events and gateways init, see Flexflow.Api.init/1
Specs
name() :: Flexflow.name()
Module name