Allow WF author to define meaningful message for fail transition
For the example:
...
tasks:
t1:
action: ...
publish:
var1: $
on-success:
- fail: $.var1 != null
On the fail transition in on-success, allow WF author to provide a meaningful error message. Currently, the WF execution is failed but there is no meaningful error message.
For example:
---
version: '2.0'
create_
type: direct
input:
- vm_name
- image_id
- flavor_id
tasks:
create_vm:
action: nova.servers_create name=<% $.vm_name %> image=<% $.image_id %> flavor=<% $.flavor_id %>
publish:
vm_id: <% task(create_
on-error:
- send_error_email
send_
action: send_email to_addrs=['<email address hidden>'] body='Failed to create a VM'
on-complete:
- fail('Failed to create a VM with image <% $.image_id %>')
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Winson Chan
- Direction:
- Approved
- Assignee:
- Hardik Parekh
- Definition:
- New
- Series goal:
- Accepted for newton
- Implementation:
-
Implemented
- Milestone target:
-
newton-1
- Started by
- Renat Akhmerov
- Completed by
- Renat Akhmerov
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Meaningful message for fail/success/pause transition
Addressed by: https:/
Fail/