Migrating from Airplane Prompts
I'm looking to migrate some Airplane scripts we have to Windmill, and I wanted to ask what's the best way to migrate Airplane prompts https://docs.airplane.dev/tasks/prompts. I looked at the documentation and it seems like a form in an approval page could be the way https://www.windmill.dev/docs/flows/flow_approval#add-a-form-to-the-approval-page, but if someone has done something similar, I'd be interested to know.
Approval Steps / Suspend in Flows | Windmill
Flows can be suspended until resumed or cancelled event(s) are received. This
2 Replies
Yes a form in an approval page would be the closest equivalent. If that's not sufficient. we're happy to close the gap by extending the feature set of approval steps
approval steps are more low level and more powerful than prompts, but they also have less guidelines on how one would use them in an ops setting. The expectation is that you would integrate them with your current slack / email setup, or build your own app around it by listing all the compatible approval flows that need approval for the current user given contextual information and call the api to approve the flow from your app
See: https://app.windmill.dev/openapi.html#/operations/resumeSuspendedJobPost and https://app.windmill.dev/openapi.html#/operations/resumeSuspendedFlowAsOwner for how to build your own UI if the auto-generated approval form is not sufficient
you can filter current flows that need approval by filtering suspended jobs: https://app.windmill.dev/openapi.html#/operations/listQueue
Thank you. I'll share mi experience here once I get to migrate it.
I just tried the "Return and resume cancel endpoints" approval with a form, and I think I can make it work