---
title: "workflowController(_:willRun:)"
framework: automator
role: symbol
role_heading: Instance Method
path: "automator/amworkflowcontrollerdelegate/workflowcontroller(_:willrun:)"
---

# workflowController(_:willRun:)

Notifies the delegate when the specified action is about to run.

## Declaration

```swift
optional func workflowController(_ controller: AMWorkflowController, willRun action: AMAction)
```

## Parameters

- `controller`: The controller object sending the message.
- `action`: The workflow action to run.

## See Also

### Preparing to Run

- [workflowControllerWillRun(_:)](automator/amworkflowcontrollerdelegate/workflowcontrollerwillrun(_:).md)
