Question on Exit Handlers #10190
Unanswered
avinashnadendla
asked this question in
Q&A
Replies: 1 comment
-
Add a workflow input parameter: metadata:
name: test5
...
- name: exit-handler
inputs: {}
outputs: {}
metadata: {}
steps:
- - name: exit-handler-step
arguments:
parameters:
- name: name
value: '{{workflow.name}}'
- name: recipient
value: '{{workflow.parameters.recipient}}' # Pass the workflow input parameter
templateRef:
name: email-sender
template: email-exit-handler
when: '{{workflow.status}} != Succeeded'
...
arguments:
parameters:
- name: recipient # UI input parameter
value: [email protected] # UI input value
onExit: exit-handler
The recipient parameter will be passed to the Resources: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use a template as an exit handler, but it requires an email parameter
There is an entrypoint while executing the workflow (Consider this as a workflow template ), which implies that we cannot set the global parameter while starting it from the UI
Is there any workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions