One-liner for on-success/on-complete/on-error

Registered by Dmitri Zimine

In most cases, there's only one task in on-success/on-error/on-complete list. Handle both a single task and an array of tasks:
my_first_task:

  action: std.echo output='foo'
  wait-before: 5
  on-success: my_next_task # single task in line
  on-falure: # an array of tasks
     - my_error_handler
     - pause

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Dmitri Zimine
Direction:
Approved
Assignee:
Renat Akhmerov
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1
Started by
Renat Akhmerov
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-on-condition-one-liner,n,z

Addressed by: https://review.openstack.org/175777
    Allowing strings in on-success/on-error/on-complete clauses

Addressed by: https://review.openstack.org/178140
    Allowing strings in on-success/on-error/on-complete clauses

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.