Action that adds delays to workflows

Example

// Fixed delay
await runAction({
ActionName: 'Delay',
Params: [{
Name: 'DelayMs',
Value: 5000
}]
});

// Random delay between min and max
await runAction({
ActionName: 'Delay',
Params: [{
Name: 'DelayType',
Value: 'random'
}, {
Name: 'MinDelayMs',
Value: 1000
}, {
Name: 'MaxDelayMs',
Value: 5000
}]
});

// Delay with message
await runAction({
ActionName: 'Delay',
Params: [{
Name: 'DelayMs',
Value: 3000
}, {
Name: 'Message',
Value: 'Waiting for external system to process...'
}]
});

Hierarchy (view full)

Constructors

Methods

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result