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

# workflowController(_:didRun:)

Notifies the delegate when the specified action finishes running.

## Declaration

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

## Parameters

- `controller`: The controller object sending the message.
- `action`: The workflow action that ran.

## See Also

### Running

- [workflowControllerDidRun(_:)](automator/amworkflowcontrollerdelegate/workflowcontrollerdidrun(_:).md)
