123456789101112131415161718192021222324252627282930313233343536373839404142 |
- apiVersion: argoproj.io/v1alpha1
- kind: WorkflowTemplate
- metadata:
- name: approval-next-user-2
- spec:
- entrypoint: front-json-flow
- arguments:
- parameters:
- - name: flow-name
- value: ""
- - name: flow-type
- value: ""
- - name: flow-business-object
- value: ""
- templates:
- - name: front-json-flow
- steps:
- - - name: A
- template: approval
- - - name: B
- template: approval
- when: "{{ steps.A.outputs.parameters.front-json }} == 通过"
- - - name: C
- template: approval
- when: "{{ steps.B.outputs.parameters.front-json }} == 通过"
- - name: approval
- suspend: {}
- inputs:
- parameters:
- - name: front-json
- default: '通过'
- enum:
- - '通过'
- - '拒绝'
- - '忽略'
- outputs:
- parameters:
- - name: front-json
- valueFrom:
- supplied: {}
|