<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Automator",
  "identifier" : "/documentation/Automator/AMWorkflowControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Automator"
    ],
    "preciseIdentifier" : "c:objc(pl)AMWorkflowControllerDelegate"
  },
  "title" : "AMWorkflowControllerDelegate"
}
-->

# AMWorkflowControllerDelegate

A set of optional methods that a delegate of a workflow controller implements.

```
protocol AMWorkflowControllerDelegate : NSObjectProtocol
```

## Topics

### Preparing to Run

[`-  workflowController:willRunAction:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:willRun:))

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

[`-  workflowControllerWillRun:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerWillRun(_:))

Notifies the delegate when the workflow controller object is about to run.

### Running

[`-  workflowController:didRunAction:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:didRun:))

Notifies the delegate when the specified action finishes running.

[`-  workflowControllerDidRun:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerDidRun(_:))

Notifies the delegate when the workflow controller object finishes running.

### Stopping

[`-  workflowControllerWillStop:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerWillStop(_:))

Tells the delegate that the workflow controller object is about to stop.

[`-  workflowControllerDidStop:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerDidStop(_:))

Tells the delegate that the workflow controller object has stopped.

### Handling Errors

[`-  workflowController:didError:`](/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:didError:))

Notifies the delegate when the workflow encounters an error.

### Deprecated

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:willRun:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerWillRun(_:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:didRun:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerDidRun(_:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerWillStop(_:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowControllerDidStop(_:)>

  <doc://com.apple.documentation/documentation/Automator/AMWorkflowControllerDelegate/workflowController(_:didError:)>

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)