private static String domain;
public static void main(String[] args) throws Exception {
// Load configuration
ConfigHelper configHelper = ConfigHelper.createConfig();
// Create the client for Simple Workflow Service
swfService = configHelper.createSWFClient();
domain = configHelper.getDomain();
// Start Workflow instance
String sourceBucketName = configHelper.getValueFromConfig(FileProcessingConfigKeys.WORKFLOW_INPUT_SOURCEBUCKETNAME_KEY);
String sourceFilename = configHelper.getValueFromConfig(FileProcessingConfigKeys.WORKFLOW_INPUT_SOURCEFILENAME_KEY);
String targetBucketName = configHelper.getValueFromConfig(FileProcessingConfigKeys.WORKFLOW_INPUT_TARGETBUCKETNAME_KEY);
String targetFilename = configHelper.getValueFromConfig(FileProcessingConfigKeys.WORKFLOW_INPUT_TARGETFILENAME_KEY);
FileProcessingWorkflowClientExternalFactory clientFactory = new FileProcessingWorkflowClientExternalFactoryImpl(swfService, domain);
FileProcessingWorkflowClientExternal workflow = clientFactory.getClient();
workflow.processFile(sourceBucketName, sourceFilename, targetBucketName, targetFilename);