

The Amazon SDK for Java 1.x reached end-of-support on December 31, 2025. We recommend that you migrate to the [Amazon SDK for Java 2.x](https://docs.amazonaws.cn/sdk-for-java/latest/developer-guide/home.html) to continue receiving new features, availability improvements, and security updates.

# Amazon SWF Examples Using the Amazon SDK for Java
<a name="prog-services-swf"></a>

 [Amazon SWF](https://www.amazonaws.cn/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](https://www.amazonaws.cn/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](https://docs.amazonaws.cn/amazonswf/latest/awsflowguide/).

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

**Topics**
+ [SWF basics](swf-basics.md)
+ [Building a Simple Amazon SWF Application](swf-hello.md)
+ [Lambda Tasks](swf-lambda-task.md)
+ [Shutting Down Activity and Workflow Workers Gracefully](swf-graceful-shutdown.md)
+ [Registering Domains](prog-services-swf-register-domain.md)
+ [Listing Domains](prog-services-swf-list-domains.md)