Mozart.ProcessEngine (Mozart v0.1.6)
A ProcessEngine is dynamically spawned for the purpose of executing a Mozart.Data.ProcessModel.
Summary
Functions
Used to complete any "complete-able" open tasks. Task execution frequently spawns new open tasks. Execute will continue to as long as there are "complete-able" open tasks.
Use this function to create a ProcessEngine instance initialized with the name of the process model to be executed and any initialization data. The engine will start executing tasks with the execute/1 function is called.
Functions
execute(ppid)
Used to complete any "complete-able" open tasks. Task execution frequently spawns new open tasks. Execute will continue to as long as there are "complete-able" open tasks.
Note: Some types of task are completeable immediately and some are not. For example:
- A
Mozart.Task.Servicetask is complete-able as soon as it is opened. - A
Mozart.Task.Usertask when a user completes the task. - A
Mozart.Task.Receivetask is complete-able when a matchingMozart.Task.Sendtask is received.
start_process(model_name, data, parent \\ nil)
Use this function to create a ProcessEngine instance initialized with the name of the process model to be executed and any initialization data. The engine will start executing tasks with the execute/1 function is called.