Kalium

ci Coveralls github Hex.pm Hex.pm Documentation

Light-weight Workflow Engine.

Example

defmodule Demo do
  use Kalium

  edge EdgeA, {VertA, VertB}
  edge EdgeB, {VertB, VertC}, name: :revert

  vert VertA
  vert VertB, name: :name
end

Usage

iex> %Kalium{} = demo = Demo.new()
iex> {{state, result}, new_obj} = demo |> Demo.next()

Installation

If available in Hex, the package can be installed by adding kalium to your list of dependencies in mix.exs:

def deps do
  [
    {:kalium, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/kalium.