apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate metadata: name: spec: entrypoint: front-json-flow arguments: parameters: - name: flow-name value: single - name: flow-type value: 测试流程 - name: flow-business-object value: templates: - name: front-json-flow steps: - - name: 1-N4bzzOrchQBih340 template: approval - - name: 2-Ph88FvCZBbnrmQ21 template: approval when: "{{ steps.1-N4bzzOrchQBih340.outputs.parameters.front-json }} == 通过" - - name: 3-CyvQsqRBZMGXDKOC template: approval when: "{{ steps.2-Ph88FvCZBbnrmQ21.outputs.parameters.front-json }} == 通过" - name: approval suspend: {} inputs: parameters: - name: front-json default: '通过' enum: - '通过' - '拒绝' - '忽略' outputs: parameters: - name: front-json valueFrom: supplied: {}