MCPcopy Create free account
hub / github.com/Xenov-X/csbot / storeWorkflowVariables

Method storeWorkflowVariables

workflow/executor.go:1427–1439  ·  view source on GitHub ↗

storeWorkflowVariables stores user-defined variables in outputs map for interpolation

(variables map[string]string)

Source from the content-addressed store, hash-verified

1425
1426// storeWorkflowVariables stores user-defined variables in outputs map for interpolation
1427func (e *Executor) storeWorkflowVariables(variables map[string]string) {
1428 if len(variables) == 0 {
1429 return
1430 }
1431
1432 e.outputMu.Lock()
1433 defer e.outputMu.Unlock()
1434
1435 for name, value := range variables {
1436 e.outputs[name] = value
1437 e.logDebug("Stored workflow variable: %s = %s", name, value)
1438 }
1439}

Callers 1

ExecuteMethod · 0.95

Calls 1

logDebugMethod · 0.95

Tested by

no test coverage detected