approval_one_user_tmp.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apiVersion: argoproj.io/v1alpha1
  2. kind: WorkflowTemplate
  3. metadata:
  4. name: <no value>
  5. spec:
  6. entrypoint: front-json-flow
  7. arguments:
  8. parameters:
  9. - name: flow-name
  10. value: single
  11. - name: flow-type
  12. value: 测试流程
  13. - name: flow-business-object
  14. value:
  15. templates:
  16. - name: front-json-flow
  17. steps:
  18. - - name: 1-N4bzzOrchQBih340
  19. template: approval
  20. - - name: 2-Ph88FvCZBbnrmQ21
  21. template: approval
  22. when: "{{ steps.1-N4bzzOrchQBih340.outputs.parameters.front-json }} == 通过"
  23. - - name: 3-CyvQsqRBZMGXDKOC
  24. template: approval
  25. when: "{{ steps.2-Ph88FvCZBbnrmQ21.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: {}