Search in sources :

Example 1 with GenericWorkflowClientExternalImpl

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);
}
Also used : DynamicWorkflowClientExternalImpl(com.amazonaws.services.simpleworkflow.flow.DynamicWorkflowClientExternalImpl) GenericWorkflowClientExternalImpl(com.amazonaws.services.simpleworkflow.flow.worker.GenericWorkflowClientExternalImpl) WorkflowExecution(com.amazonaws.services.simpleworkflow.model.WorkflowExecution)

Aggregations

DynamicWorkflowClientExternalImpl (com.amazonaws.services.simpleworkflow.flow.DynamicWorkflowClientExternalImpl)1 GenericWorkflowClientExternalImpl (com.amazonaws.services.simpleworkflow.flow.worker.GenericWorkflowClientExternalImpl)1 WorkflowExecution (com.amazonaws.services.simpleworkflow.model.WorkflowExecution)1