Mozart.Task.Service (Mozart v0.1.6)

Used to model a Service task. A service task calls a function and returns data that is into the state data.

Example:

%ProcessModel{
      name: :process_with_single_service_task,
      tasks: [
        %Service{
          name: :service_task,
          function: fn data -> Map.merge(data, %{single_service: true}) end
        }
      ],
      initial_task: :service_task
    }

Summary

Functions

Link to this function

%Mozart.Task.Service{}

(struct)