eoap_cwlwrap

The top-level wrap function accepts loaded CWL processes, validates any supplied staging processes, and returns an orchestrating workflow. Staging arguments default to None, but matching components are required for any Directory- or File-compatible inputs and outputs.

Use the cwlwrap plugin to resolve CWL locations and write a packed CWL document. wrap itself does not write a file.

Compose application workflows with EOAP staging steps.

wrap(workflow, directory_stage_in=None, directory_stage_out=None, file_stage_in=None, file_stage_out=None)

Composes a CWL Workflow from a series of Workflow/CommandLineTool steps, defined according to Application package patterns based on data stage-in and stage-out behaviors commonly used in EO workflows, and packs it into a single self-contained CWL document.

Parameters:
  • workflow (Process) –

    The application workflow process to wrap.

  • directory_stage_in (Process | None, default: None ) –

    The CWL stage-in process for Directory derived types.

  • directory_stage_out (Process | None, default: None ) –

    The CWL stage-out process for Directory derived types.

  • file_stage_in (Process | None, default: None ) –

    The CWL stage-in process for File derived types.

  • file_stage_out (Process | None, default: None ) –

    The CWL stage-out process for File derived types.

Returns:
  • Process –

    The orchestrating CWL Workflow.