use of com.amazonaws.services.simpleworkflow.flow.worker.GenericWorkflowClientExternalImpl in project camel by apache.
the class CamelSWFWorkflowClient method getDynamicWorkflowClient.
DynamicWorkflowClientExternal getDynamicWorkflowClient(String workflowId, String runId) {
GenericWorkflowClientExternalImpl genericClient = new GenericWorkflowClientExternalImpl(endpoint.getSWClient(), configuration.getDomainName());
WorkflowExecution workflowExecution = new WorkflowExecution();
workflowExecution.setWorkflowId(workflowId != null ? workflowId : genericClient.generateUniqueId());
workflowExecution.setRunId(runId);
return new DynamicWorkflowClientExternalImpl(workflowExecution, null, endpoint.getStartWorkflowOptions(), configuration.getDataConverter(), genericClient);
}
Aggregations