Flowgraph Execution (Task Manager)
Flowgraph Task Manager window for starting, stopping, and managing all loaded flowgraph projects with mission variable integration.
Flowgraph Task Manager window for starting, stopping, and managing all loaded flowgraph projects with mission variable integration.
Overview
fg_execution renders a task manager panel listing all loaded flowgraph managers. Each project shows its running state (play/pause/stop), visibility flags (hidden, transient), and mission editor integration status. Supports starting/stopping individual or all projects, with automatic mission variable injection before execution.
Class Fields
| Field | Type | Description |
|---|---|---|
C.windowName | string | 'fg_execution' |
C.windowDescription | string | 'Task Manager' |
Class Methods
| Method | Description |
|---|---|
C:init() | Registers window (visible by default), gets flowgraph manager ref |
C:drawManager(mgr) | Draws a single manager row with status icons and controls |
C:ExecutionView() | Main view: lists all managers with global start/stop buttons |
C:draw() | Draws in docked mode (attached to flowgraph editor) |
C:drawAlone() | Draws as standalone window (no parent editor) |
Mission Integration
The task manager shows a mission indicator icon per project with color-coded match status:
| Color | Match Type | Meaning |
|---|---|---|
| Green | exact / missionTypeMain | Flowgraph matches selected mission |
| Yellow | sameMissionType | Same mission type folder |
| Orange | differentMissionType | Different mission type |
| Grey | noMission | No mission selected |
Mission variables are automatically applied via missionVariableHelper.applyMissionVariablesToManager() when starting execution.
Usage Example
-- Start all projects with mission variable injection
for _, m in ipairs(core_flowgraphManager.getAllManagers()) do
missionVarHelper.applyMissionVariablesToManager(m, "execution")
m:setRunning(true)
end
-- Stop all projects
for _, m in ipairs(core_flowgraphManager.getAllManagers()) do
m:setRunning(false)
endClass Fields (Additional)
| Field | Type | Description |
|---|---|---|
C.passedGraphIds | table | Unused class field (empty table) |
See Also
- Flowgraph Base Window - Related reference
- Flowgraph Events - Related reference
- Flowgraph Examples - Related reference
- World Editor Guide - Guide