Skip to content

workflow

WorkflowExportV2

Bases: BaseModel

Class for Workflow export.

Attributes:

Name Type Description
task_list list[WorkflowTaskExportV2]
Source code in fractal_server/app/schemas/v2/workflow.py
75
76
77
78
79
80
81
82
83
84
class WorkflowExportV2(BaseModel):
    """
    Class for `Workflow` export.

    Attributes:
        task_list:
    """

    name: str
    task_list: list[WorkflowTaskExportV2]

WorkflowImportV2

Bases: BaseModel

Class for Workflow import.

Attributes:

Name Type Description
task_list list[WorkflowTaskImportV2]
Source code in fractal_server/app/schemas/v2/workflow.py
60
61
62
63
64
65
66
67
68
69
70
71
72
class WorkflowImportV2(BaseModel, extra=Extra.forbid):
    """
    Class for `Workflow` import.

    Attributes:
        task_list:
    """

    name: str
    task_list: list[WorkflowTaskImportV2]

    # Validators
    _name = validator("name", allow_reuse=True)(valstr("name"))