Skip to content

no_op

NoOp

Bases: WorkflowTaskNode

Return input as-is (no operation).

Source code in client/ayon_workflow/plugins/workflow/essentials/no_op.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class NoOp(WorkflowTaskNode):
    """Return input as-is (no operation)."""

    version = "0.0.1"
    inputs = [
        InputAttribute(
            name="input_data",
            description="An input data to be returned as-is.",
        )
    ]
    outputs = [
        OutputAttribute(
            name="output_data",
            description="The input data returned as-is.",
        )
    ]

    def execute(self, input_data: Any) -> Any:
        """ Return the input data as-is.
        """
        return input_data

execute(input_data)

Return the input data as-is.

Source code in client/ayon_workflow/plugins/workflow/essentials/no_op.py
26
27
28
29
def execute(self, input_data: Any) -> Any:
    """ Return the input data as-is.
    """
    return input_data