View Source wfnet (wfnet v0.1.0)

Client functions for the workflow server.

Summary

Functions

get status info from the server
load a workflow from file.
load a workflow from a list of tasks.
restart the application
run the currently loaded workflow.
start the application.
stop the application.
Tell the server that a task has completed.

Types

-type task() :: {task_type(), task_id(), task_succ(), task_data()}.
-type task_data() :: term().
-type task_id() :: integer().
-type task_succ() :: task_id() | [task_id()] | [].
-type task_type() :: wfenter | wftask | wfands | wfandj | wfxors | wfxorj | wfexit.

Functions

-spec info() -> term().
get status info from the server
-spec load_file(file:name_all()) -> ok | {error, term()}.
load a workflow from file.
-spec load_wf([task()]) -> ok | {error, term()}.
load a workflow from a list of tasks.
-spec restart() -> ok | {error, term()}.
restart the application
-spec run_wf() -> ok | {error, term()}.
run the currently loaded workflow.
-spec start() -> ok | {error, term()}.
start the application.
-spec stop() -> ok | {error, term()}.
stop the application.
-spec task_done(integer(), term()) -> ok | {error, term()}.
Tell the server that a task has completed.