https://issues.apache.org/jira/browse/CAMEL-8598

The defaults as part of above bug are not used by AWS client before
starting a workflow


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c84a0d8e
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c84a0d8e
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c84a0d8e

Branch: refs/heads/camel-2.16.x
Commit: c84a0d8ee0afe78b04b2607644fefe0b67489af9
Parents: 575a84e
Author: siddharth.sharma <[email protected]>
Authored: Sat Jul 16 14:18:52 2016 -0700
Committer: Claus Ibsen <[email protected]>
Committed: Sun Jul 17 08:43:00 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/component/aws/swf/CamelSWFWorkflowClient.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c84a0d8e/components/camel-aws/src/main/java/org/apache/camel/component/aws/swf/CamelSWFWorkflowClient.java
----------------------------------------------------------------------
diff --git 
a/components/camel-aws/src/main/java/org/apache/camel/component/aws/swf/CamelSWFWorkflowClient.java
 
b/components/camel-aws/src/main/java/org/apache/camel/component/aws/swf/CamelSWFWorkflowClient.java
index b59f05c..7146b7c 100644
--- 
a/components/camel-aws/src/main/java/org/apache/camel/component/aws/swf/CamelSWFWorkflowClient.java
+++ 
b/components/camel-aws/src/main/java/org/apache/camel/component/aws/swf/CamelSWFWorkflowClient.java
@@ -71,11 +71,13 @@ public class CamelSWFWorkflowClient {
         workflowType.setName(eventName);
         workflowType.setVersion(version);
         dynamicWorkflowClientExternal.setWorkflowType(workflowType);
-        
dynamicWorkflowClientExternal.startWorkflowExecution(toArray(arguments));
+        
         StartWorkflowOptions startWorkflowOptions = new StartWorkflowOptions();
         
startWorkflowOptions.setTaskStartToCloseTimeoutSeconds(FlowHelpers.durationToSeconds(configuration.getTaskStartToCloseTimeout()));
         
startWorkflowOptions.setExecutionStartToCloseTimeoutSeconds(FlowHelpers.durationToSeconds(configuration.getExecutionStartToCloseTimeout()));
         
dynamicWorkflowClientExternal.setSchedulingOptions(startWorkflowOptions);
+        
+        
dynamicWorkflowClientExternal.startWorkflowExecution(toArray(arguments));
 
         String newWorkflowId = 
dynamicWorkflowClientExternal.getWorkflowExecution().getWorkflowId();
         String newRunId = 
dynamicWorkflowClientExternal.getWorkflowExecution().getRunId();

Reply via email to