How To Call It
Workflow is a global table: call its functions with a dot (Workflow.<method>(...)), not a colon. Requires Macro Handler 1.0.62 or later.
Compiler-owned action-plan lifecycle; do not call this manually in user code.
Documented for app version 1.0.64Updated:
Workflow is a global table: call its functions with a dot (Workflow.<method>(...)), not a colon. Requires Macro Handler 1.0.62 or later.
Compiler-owned action-plan lifecycle; do not call this manually in user code.
Present in the catalogue for generated-plan validation. Macro identity, content, plan identity and action order are verified at runtime. A workspace cannot use these methods to control its parent plan.
Edit legacy plans through the compatibility entry in Macro Settings; do not copy a generated wrapper into another macro. Use Workflow.get/set for shared invocation variables.
The snippet below is a starter pattern that can be applied directly in runtime flow.
-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.From foundation to combined usage, each level is provided as a separate code block so you can copy the level you need and adapt it directly.
-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.local stepOk = true
-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.
if stepOk then
wait(200)
endlocal ok, err = pcall(function()
-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.
end)
if not ok then
print("API step failed: Workflow.leaveAction: " .. tostring(err))
requestStop()
end-- Workflow.leaveAction(actionId)
local function run_leaveaction_step()
-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.
end
local ok, err = pcall(run_leaveaction_step)
if not ok then
toast("Step failed")
print(err)
end-- Workflow.leaveAction is compiler-owned; no manual invocation.
-- Use Macro Settings to configure variables; legacy plans retain their compatibility editor.