Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 575a84e4d -> c84a0d8ee
  refs/heads/camel-2.17.x 48b6ab539 -> a49494b4a
  refs/heads/master 469f21200 -> 9536bf918


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/9536bf91
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9536bf91
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9536bf91

Branch: refs/heads/master
Commit: 9536bf91862324532aea88bf33793720c36e843e
Parents: 469f212
Author: siddharth.sharma <[email protected]>
Authored: Sat Jul 16 14:18:52 2016 -0700
Committer: siddharth.sharma <[email protected]>
Committed: Sat Jul 16 14:18:52 2016 -0700

----------------------------------------------------------------------
 .../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/9536bf91/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