These samples help you understand how to use AWS Flow Framework and Amazon SWF for different use cases. You can find the code for these samples in the AWS SDK for Java.
- Hello World This sample uses a very simple workflow that calls an activity to print Hello World. It shows basic usage of AWS Flow Framework, including defining contracts, implementing activities and the workflow coordination logic and building the worker programs to run the activities
- Flight reservation workflow Illustrates basic AWS Flow Framework concepts using a simple workflow for making a reservation that can include a flight and a rental car.
- File Processing Application This sample demonstrates a media processing use case. The workflow downloads a file from an Amazon S3 bucket, creates a ZIP file and uploads that ZIP file back to S3. The task routing feature in Amazon SWF is illustrated in this sample.
- Cron jobs In this sample, a long running workflow periodically executes an activity. The ability to continue executions as new executions so that an execution can run for very extended periods of time is demonstrated.
- Data processing using Split-join The workflow in this sample processes a large data set by splitting it up into smaller data sets. For demonstration purposes, the workflow calculates the average of a large set of numbers stored in a file in S3. The workflow coordination logic first splits the large set into smaller data sets. The smaller data sets are assigned to workers and the results of the processing are merged to produce the final result.
- Deployment of an application stack This sample illustrates the deployment of a set of application components through a workflow. A Spring configuration file is used to describe an application stack. The workflow takes this description as input and stimulates the deployment of the components specified in it.