Fixing sending the result of subworkflow

* This is why retry didn't work for subworkflow
 * Engine commands such as fail or succeed doesn't send the
   result of current workflow to parent workflow if needed.

Closes-Bug: #1449298

Change-Id: Ia0d87160a51f53a686ca0451a2000298cec5a929
This commit is contained in:
Nikolay Mahotkin
2015-05-26 16:01:48 +03:00
parent 4e699ce21b
commit 766698bd43
4 changed files with 74 additions and 13 deletions

View File

@@ -23,8 +23,8 @@ from mistral.workflow import states
from mistral.workflow import utils as wf_utils
def succeed_workflow(wf_ex, final_context):
set_execution_state(wf_ex, states.SUCCESS)
def succeed_workflow(wf_ex, final_context, state_info=None):
set_execution_state(wf_ex, states.SUCCESS, state_info)
wf_spec = spec_parser.get_workflow_spec(wf_ex.spec)