You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/07/17 06:43:11 UTC

[2/3] camel git commit: https://issues.apache.org/jira/browse/CAMEL-8598

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

Branch: refs/heads/camel-2.17.x
Commit: a49494b4a73b80bb50a488faf6deae9f878cc75f
Parents: 48b6ab5
Author: siddharth.sharma <si...@jobvite-inc.com>
Authored: Sat Jul 16 14:18:52 2016 -0700
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Jul 17 08:42:45 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/a49494b4/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();