本文整理汇总了Golang中github.com/aws/aws-sdk-go/service/swf.StartWorkflowExecutionInput类的典型用法代码示例。如果您正苦于以下问题:Golang StartWorkflowExecutionInput类的具体用法?Golang StartWorkflowExecutionInput怎么用?Golang StartWorkflowExecutionInput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了StartWorkflowExecutionInput类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: StartWorkflowExecution
func (s *StubSWFClient) StartWorkflowExecution(req *swf.StartWorkflowExecutionInput) (resp *swf.StartWorkflowExecutionOutput, err error) {
if _, ok := s.stubbedWorkflows[*req.WorkflowType.Name]; ok {
req.WorkflowType.Name = S(StubWorkflow)
req.WorkflowType.Version = S(StubVersion)
req.ExecutionStartToCloseTimeout = S("360")
req.TaskList = StubTaskList
}
return s.ClientSWFOps.StartWorkflowExecution(req)
}
示例2: Start
func (c *client) Start(startTemplate swf.StartWorkflowExecutionInput, id string, input interface{}) (*swf.StartWorkflowExecutionOutput, error) {
var serializedInput *string
if input != nil {
serializedInput = StartFSMWorkflowInput(c.f, input)
}
startTemplate.Domain = S(c.f.Domain)
startTemplate.WorkflowId = S(id)
startTemplate.Input = serializedInput
if len(startTemplate.TagList) == 0 {
startTemplate.TagList = GetTagsIfTaggable(input)
}
return c.c.StartWorkflowExecution(&startTemplate)
}