poller = new DecisionTaskPoller();
poller.setDecisionTaskHandler(new AsyncDecisionTaskHandler(factoryFactory));
}
public SynchronousWorkflowWorker(AmazonSimpleWorkflow service, String domain, String taskListToPoll) {
poller = new DecisionTaskPoller(service, domain, taskListToPoll, new AsyncDecisionTaskHandler(factoryFactory));
}