StackStorm介绍
StackStorm是一个强大的自动化平台,结合DevOps和ChatOps,提供可扩展、灵活和健壮的工具链用于应用、服务和工作流的自动化能力。
Inquiry
在自动化任务执行的过程中,往往会需要等待确认的步骤,比如需要人工审核,需要外部系统的确认。为此StackStorm提供一种Action的交互机制Inquiry,通过执行core.ask发起Inquiry,进入pending挂起状态,直到Inquiry收到回复才继续执行。
下面是一个Mistral Workflow的规格文件examples.mistral-ask-basic.yaml:
version: '2.0'
examples.mistral-ask-basic: description: A basic Mistral workflow illustrating the use of Inquiries type: direct output: result: <% task(task1).result.response %> tasks: task1: action: core.ask input: route: developers schema: type: object properties: secondfactor: type: string description: Please enter second factor for authenticating to "foo" service required: True on-success: - task2
task2: action: core.local input: c |