Docs: Change description from on-success to on-error

As was explained above from the example, here it is
on-error clause.

Change-Id: I67d649091e46df0123a236044eb46b3a078b68d2
This commit is contained in:
zhu.boxiang 2019-04-29 13:49:56 +08:00
parent 243c09d505
commit 13d8f532b9
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ in the example above when 'taskA' runs, i.e. its action 'my_action' runs.
This will prevent from scheduling other new tasks so neither 'taskC' nor
'taskD' and 'taskE' will be ever be scheduled. In other words, the whole
'on-complete' clause will never be processed because the 'fail' command in
the 'on-success' sets the workflow state to ERROR.
the 'on-error' sets the workflow state to ERROR.
- If 'my_action' succeeds then the 'on-error' clause will be ignored and since
'on-success' is not defined then Mistral will process the 'on-complete'
clause. And while doing that, it will schedule 'taskD' first and then pause