

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 Step Functions 中啟動狀態機器執行
<a name="statemachine-starting"></a>

當狀態機器*執行*並執行其任務時，會發生 AWS Step Functions 狀態機器執行。每個 Step Functions 狀態機器可以有多個同時執行，您可以從 [Step Functions 主控台](https://console.aws.amazon.com/states/home?region=us-east-1#/)或使用 AWS SDKs、Step Functions API 動作或 AWS Command Line Interface (AWS CLI) 啟動。執行會收到 JSON 輸入並產生 JSON 輸出。您可以透過下列方式啟動 Step Functions 執行：
+ 在 Step Functions 主控台中啟動執行。

  您可以在 主控台中啟動狀態機器、監看執行和偵錯失敗。
+ 呼叫 [StartExecution](https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html) API 動作。
+ 使用 Amazon EventBridge [啟動執行](tutorial-cloudwatch-events-s3.md)以回應事件。
+ 使用 Amazon EventBridge Scheduler以排程[啟動狀態機器執行](using-eventbridge-scheduler.md)。
+ 從任務狀態啟動[巢狀工作流程執行](concepts-nested-workflows.md)。
+ 使用 [Amazon API Gateway](tutorial-api-gateway.md) 開始執行。

**提示**  
若要了解如何監控執行中的執行，請參閱教學課程： [在 Step Functions 中檢查狀態機器執行](debug-sm-exec-using-ui.md)