Class UseWorkflow

  • All Implemented Interfaces:
    io.typeflows.util.Renderable

    
    public final class UseWorkflow
    extends Step
                        

    A workflow step that calls a reusable workflow.

    UseWorkflow enables the invocation of reusable workflows, which are workflows designed to be called by other workflows. This promotes modularity and code reuse across different workflow definitions. Reusable workflows can accept inputs, produce outputs, and use secrets passed from the calling workflow. The workflow reference can point to local workflows in the same repository or external workflows in other repositories, supporting both workflow composition and cross-repository automation patterns.

    • Constructor Detail

    • Method Detail

      • create

        @JvmOverloads() final static UseWorkflow create(String workflow, String name, Configure<UseWorkflow.DSL> step)

        Creates and configures a UseWorkflow instance.

        Parameters:
        workflow - The workflow reference (local path or external reference)
        name - Optional name for the step (for logging and identification)
        step - Configuration lambda to customize the step
        Returns:

        Configured UseWorkflow instance

      • create

        @JvmOverloads() final static UseWorkflow create(String workflow, String name)

        Creates and configures a UseWorkflow instance.

        Parameters:
        workflow - The workflow reference (local path or external reference)
        name - Optional name for the step (for logging and identification)
        Returns:

        Configured UseWorkflow instance

      • create

        @JvmOverloads() final static UseWorkflow create(String workflow)

        Creates and configures a UseWorkflow instance.

        Parameters:
        workflow - The workflow reference (local path or external reference)
        Returns:

        Configured UseWorkflow instance