internal override Decision SwfDecision()
 {
     return(new Decision()
     {
         DecisionType = DecisionType.StartChildWorkflowExecution,
         StartChildWorkflowExecutionDecisionAttributes = new StartChildWorkflowExecutionDecisionAttributes()
         {
             WorkflowId = _id,
             WorkflowType = new WorkflowType()
             {
                 Name = _id.Name, Version = _id.Version
             },
             Input = _input.ToAwsString(),
             Control = new ScheduleData()
             {
                 PN = _id.PositionalName
             }.ToJson(),
             ChildPolicy = ChildPolicy,
             ExecutionStartToCloseTimeout = ExecutionTimeouts.ExecutionStartToCloseTimeout.Seconds(),
             TaskStartToCloseTimeout = ExecutionTimeouts.TaskStartToCloseTimeout.Seconds(),
             LambdaRole = LambdaRole,
             TagList = Tags.ToList(),
             TaskPriority = TaskPriority.SwfFormat(),
             TaskList = TaskListName.TaskList()
         }
     });
 }
Ejemplo n.º 2
0
 internal StartWorkflowExecutionRequest SwfFormat(string domainName)
 {
     return(new StartWorkflowExecutionRequest
     {
         WorkflowType = new WorkflowType {
             Name = WorkflowName, Version = Version
         },
         Domain = domainName,
         TaskList = TaskListName.TaskList(),
         WorkflowId = WorkflowId,
         Input = Input.ToAwsString(),
         ChildPolicy = ChildPolicy,
         LambdaRole = LambdaRole,
         TagList = Tags,
         TaskPriority = TaskPriority.SwfFormat(),
         TaskStartToCloseTimeout = TaskStartToCloseTimeout.Seconds(),
         ExecutionStartToCloseTimeout = ExecutionStartToCloseTimeout.Seconds()
     });
 }