Execute your workflow by using the Step Functions console - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Execute your workflow by using the Step Functions console

This topic is part of a tutorial that demonstrates to to invoke Lambda functions using Amazon Step Functions. To start at the beginning of the tutorial, see Creating Amazon serverless workflows using Amazon SDK for JavaScript.

You can invoke the workflow on the Step Functions console. An execution receives JSON input. For this example, you can pass the following JSON data to the workflow.

{ "inputCaseID": "001" }

To execute your workflow:

  1. On the Step Functions console, choose Start execution.

  2. In the Input section, pass the JSON data. View the workflow. As each step is completed, it turns green.

  3. If the step turns red, an error occurred. You can click the step and view the logs that are accessible from the right side.

    When the workflow is finished, you can view the data in the DynamoDB table.

Congratulations, you have created an Amazon serverless workflow by using the Amazon SDK for Java. As stated at the beginning of this tutorial, be sure to terminate all of the resources you create while going through this tutorial to ensure that you’re not charged. You can do this by deleting the Amazon CloudFormation stack you created in the Create the Amazon resources topic of this tutorial,as follows:

  1. Open the Amazon CloudFormation in the Amazon management console.

  2. Open the Stacks page, and select the stack.

  3. Choose Delete.

For more Amazon cross-service examples, see Amazon SDK for JavaScript cross-service examples.