I am trying to add certain conditions in the executions of scenarios, but it seems that I am making some mistakes in the format or how I should do it correctly.
If I may detail, the main idea is.
These conditions should be placed in the execution on each step (2,3 and 4) like that
So the questions are,
Hi @pmunoz. The documentation on how to fill the 'if condition satisfied' (your "a" questions) can be found at:
As for "b", well, I wouldn't know. From the variables available in the previous documentation, apparently there are no variables associated to the outcome of another scenario, but maybe some dataiker can get back to you with that. Also, I'm no sure if it is possible to run two Steps in parallel.
Another way of tackling this is by putting steps 2 and 3 in a separate scenario.
In this case, in your first scenario your second step would be to run this secondary scenario, and upon successful completion, run step 4.
Hope this helps!
@pmunoz First off thanks for the good question. I'll admit that I also have not done this before so did a little testing on my own. I stumbled upon this link:
It appears that in the conditional you put:
stepOutcome_<insert buildstep name (1)> == 'SUCCESS' (see my example below)
where you replace the portion in between <> with the name of your step. It appeared to work for me in my brief testing. Note: It is not very clear how to handle whitespace in your step name, but I *think* you can replace it with an underscore character.
b) I think you could create the same conditional for two separate steps to force them to be in "parallel". I suspect that you can add a final (4th) step to run if no other steps have failed OR to explicitly run when 2 and 3 were successful.
Let us know how it turns out
This is very helpful, can we also get the error message once the condition is failed?
Actually im creating scenarios for creating logs of the job build and in the table i want to insert the error message as well. Is there a way to do it?