Getting Started with the AWS Flow Framework for Java
This section introduces the AWS Flow Framework by walking you through a series of simple example applications that introduce the basic programming model and API. The example applications are based on the standard Hello World application that is used to introduce C and related programming languages. Here is a typical Java implementation of Hello World:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
The following is a brief description of the example applications. They include complete source code so you can implement and run the applications yourself. Before starting, you should first configure your development environment and create an AWS Flow Framework for Java project, like in Setting up the AWS Flow Framework for Java.
-
HelloWorld Application introduces workflow applications by implementing Hello World as a standard Java application, but structuring it like a workflow application.
-
HelloWorldWorkflow Application uses the AWS Flow Framework for Java to convert HelloWorld into an Amazon SWF workflow.
-
HelloWorldWorkflowAsync Application modifies
HelloWorldWorkflow
to use an asynchronous workflow method. -
HelloWorldWorkflowDistributed Application modifies
HelloWorldWorkflowAsync
so that the workflow and activity workers can run on separate systems. -
HelloWorldWorkflowParallel Application modifies
HelloWorldWorkflow
to run two activities in parallel.