Approval Prompt

A prompt is simply an approval step that can be self-approved. To do this, include the resume url in the returned payload of the step. The UX will automatically adapt and show the prompt to the operator when running the flow.

Script· approval windmill Verified

by henri186 · 3/15/2024

The script

Submitted by henri186 Bun
Verified 386 days ago
1
import * as wmill from "windmill-client"
2
        
3
export async function main() {
4
    const resumeUrls = await wmill.getResumeUrls("approver1")
5

6
    return {
7
        resume: resumeUrls['resume'],
8
        default_args: {}, // optional
9
        enums: {} // optional
10
    }
11
}