approval_one_user.yaml 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apiVersion: argoproj.io/v1alpha1
  2. kind: WorkflowTemplate
  3. metadata:
  4. name: approval-next-user-2
  5. spec:
  6. entrypoint: front-json-flow
  7. arguments:
  8. parameters:
  9. - name: flow-name
  10. value: ""
  11. - name: flow-type
  12. value: ""
  13. - name: flow-business-object
  14. value: ""
  15. templates:
  16. - name: front-json-flow
  17. steps:
  18. - - name: A
  19. template: approval
  20. - - name: B
  21. template: approval
  22. when: "{{ steps.A.outputs.parameters.front-json }} == 通过"
  23. - - name: C
  24. template: approval
  25. when: "{{ steps.B.outputs.parameters.front-json }} == 通过"
  26. - name: approval
  27. suspend: {}
  28. inputs:
  29. parameters:
  30. - name: front-json
  31. default: '通过'
  32. enum:
  33. - '通过'
  34. - '拒绝'
  35. - '忽略'
  36. outputs:
  37. parameters:
  38. - name: front-json
  39. valueFrom:
  40. supplied: {}