Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ const createWorkflowStore = (initialState: State) => {
set((state) => ({
...state,
selectedGatewayId: gatewayId,
workflow: {
...state.workflow,
gateway_id: gatewayId,
},
})),
},
}),
Expand Down Expand Up @@ -431,7 +435,7 @@ export function WorkflowStoreProvider({
currentStepName: undefined,
trackingExecutionId,
currentStepTab: "input",
selectedGatewayId: undefined,
selectedGatewayId: workflow.gateway_id,
}),
);

Expand Down
5 changes: 5 additions & 0 deletions packages/bindings/src/well-known/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ export const WorkflowSchema = BaseCollectionEntitySchema.extend({
.describe(
"Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.",
),

gateway_id: z
.string()
.optional()
.describe("Default gateway ID to use when executing this workflow"),
});

export type Workflow = z.infer<typeof WorkflowSchema>;
Expand Down