Delay the execution of any part of your workflow for as little as one millisecond, or as long as one year.
The Delay API allows you to build workflows that wait a specified amount of
time before continuing. This can be useful for rate-limiting actions, or
waiting for an external event to occur.
Here are some examples of what you can build using the Delay API:
export default defineComponent({
async run({steps, $}) {
// Specify the amount of time to delay your workflow in milliseconds
return $.flow.delay(5000)
},
})
The Filter API is a great way to build powerful workflows that can manipulate
and transform data. Here are some examples of what you can build using the
Filter API:
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})