Amazon SWF Examples Using the Amazon SDK for Java - Amazon SDK for Java 1.x
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 Java 1.x has entered maintenance mode as of July 31, 2024, and will reach end-of-support on December 31, 2025. We recommend that you migrate to the Amazon SDK for Java 2.x to continue receiving new features, availability improvements, and security updates.

Amazon SWF Examples Using the Amazon SDK for Java

Amazon SWF is a workflow-management service that helps developers build and scale distributed workflows that can have parallel or sequential steps consisting of activities, child workflows or even Lambda tasks.

There are two ways to work with Amazon SWF using the Amazon SDK for Java, by using the SWF client object, or by using the Amazon Flow Framework for Java. The Amazon Flow Framework for Java is more difficult to configure initially, since it makes heavy use of annotations and relies on additional libraries such as AspectJ and the Spring Framework. However, for large or complex projects, you will save coding time by using the Amazon Flow Framework for Java. For more information, see the Amazon Flow Framework for Java Developer Guide.

This section provides examples of programming Amazon SWF by using the Amazon SDK for Java client directly.