@@ -32,8 +32,47 @@ const run = function(registry = NULL, disables = list()) {
3232 __runImpl (context = .get_context(), disables );
3333}
3434
35- # ' An internal function for start the workflow
35+ # ' Internal Workflow Execution Engine
36+ # '
37+ # ' @description
38+ # ' An internal function that drives the execution of a modular workflow.
39+ # ' It sequentially processes analysis modules according to the pipeline
40+ # ' configuration while respecting disablement rules.
41+ # '
42+ # ' @param context A workflow context object containing:
43+ # ' \itemize{
44+ # ' \item{pipeline - character vector of module execution order}
45+ # ' \item{workflow - list of module definitions}
46+ # ' }
47+ # ' @param disables A named list specifying module disablement status.
48+ # ' Format: `list(module_name = TRUE/FALSE)`. Modules with TRUE will be skipped.
49+ # '
50+ # ' @details
51+ # ' This function:
52+ # ' \enumerate{
53+ # ' \item Retrieves module execution order from `context$pipeline`
54+ # ' \item Checks disablement status through two mechanisms:
55+ # ' \itemize{
56+ # ' \item Explicit disablement via `disables` parameter
57+ # ' \item Module's own `disable` property (set by upstream modules)
58+ # ' }
59+ # ' \item Executes non-disabled modules using `.internal_call()`
60+ # ' \item Provides verbose logging when `options(verbose=TRUE)`
61+ # ' }
62+ # '
63+ # ' The workflow context is modified in-place by module execution.
64+ # '
65+ # ' @note
66+ # ' This is an internal function not meant for direct calling by users.
67+ # ' Modules can control subsequent module execution by setting their
68+ # ' `disable` property.
69+ # '
70+ # ' @return
71+ # ' Invisibly returns NULL. Modifies the workflow context object in-place
72+ # ' through module executions.
3673# '
74+ # ' @keywords internal
75+ # ' @seealso \code{\link{.internal_call}} for module execution logic
3776const __runImpl = function (context , disables = list ()) {
3877 let app_pool = context $ workflow ;
3978 let skip = FALSE ;
0 commit comments