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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUseWorkflow.DSLpublic classUseWorkflow.Companion
-
Field Summary
Fields Modifier and Type Field Description public final Stringworkflowpublic final List<Output<?>>outputspublic final List<Secret<?>>secretspublic final Map<String, Object>envpublic final Map<String, Object>withpublic final IntegertimeoutMinutespublic final BooleancontinueOnErrorpublic final PathworkingDirectoryprivate final Stringnamepublic final Stringidpublic final Expressionconditionpublic final Map<String, Object>extrapublic final static UseWorkflow.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetName()Map<String, Object>render()final static UseWorkflowcreate(String workflow, String name, Configure<UseWorkflow.DSL> step)Creates and configures a UseWorkflow instance. final static UseWorkflowcreate(String workflow, String name)Creates and configures a UseWorkflow instance. final static UseWorkflowcreate(String workflow)Creates and configures a UseWorkflow instance. -
-
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
-
-
-
-