Select a process¶
Append #<process-id> to a source location when a plugin needs one process
from a CWL graph:
The fragment is handled by the runtime rather than sent to the source loader.
The runtime loads workflow.cwl, searches the resulting process or process
list for main, and exposes the match as context.resolved_process.
The same syntax applies to remote sources:
If the ID does not exist, the runtime reports the IDs that are available and
exits with status 1. A trailing # with no ID is an execution error.
When a loaded document contains multiple processes and no fragment is given,
the runtime logs a warning and leaves resolved_process unset. The full graph
remains available through context.document.
Note
The built-in bundle plugin writes context.document, not
context.resolved_process. Process selection is therefore useful only for
plugins that explicitly consume the selected process.