Mozart.ProcessEngine (Mozart v0.2.8)
A ProcessEngine is dynamically spawned for the purpose of executing a process model defined by defprocess.
Summary
Functions
Complete subprocess due to a TaskExit event
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.
Gets the open tasks of the given process engine
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
complete_on_task_exit_event(ppid)
Complete subprocess due to a TaskExit event
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.
get_open_tasks(ppid)
Gets the open tasks of the given process engine
get_state(ppid)
start_process(model_name, data, process_key \\ nil, parent_pid \\ 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.