---
title: "workflowControllerWillStop(_:)"
framework: automator
role: symbol
role_heading: Instance Method
path: "automator/amworkflowcontrollerdelegate/workflowcontrollerwillstop(_:)"
---

# workflowControllerWillStop(_:)

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

## Declaration

```swift
optional func workflowControllerWillStop(_ controller: AMWorkflowController)
```

## Parameters

- `controller`: The workflow controller object to stop.

## See Also

### Stopping

- [workflowControllerDidStop(_:)](automator/amworkflowcontrollerdelegate/workflowcontrollerdidstop(_:).md)
