I was looking through the samples available for Amazon SWF with Flow Framework (i.e. Java)-- in the samples I noticed that there is one class with a "main" that initiates workflow execution- there are also other similar classes with "main" that initiate workflow worker and activity worker (i.e. Workflow host and Activity Host).
Does this mean that to run a workflow, I have to put the execution code of all 3 classes into my void main? I.e. do I have to initiate the workflow host, activity host and start the workflow myself? Or do I just have to define WorkFlow Host and Activity Host classes in specified format, and then just initiate the workflow using Workflow client factory?