Current section

Files

Jump to
mozart lib mozart data process_model.ex
Raw

lib/mozart/data/process_model.ex

defmodule Mozart.Data.ProcessModel do
@moduledoc """
```
defstruct [:name, :tasks, :initial_task]
```
This struct is used to create business process models. Once created, a process model
can be loaded into a `Mozart.ProcessEngine.html` and executed.
Also see Mozart.Task modules.
Example:
```
%ProcessModel{
name: :user_task_process_model,
tasks: [
%User{
name: :user_task,
assigned_groups: ["admin"]
}
],
initial_task: :user_task
}
```
"""
defstruct [:name, :tasks, :initial_task]
end