(self, next_step)
| 98 | return self._decide_next_step_name(step['next_step']) |
| 99 | |
| 100 | def _decide_next_step_name(self, next_step): |
| 101 | if isinstance(next_step, str): |
| 102 | # If an explicit step name is provided, we don't need to do |
| 103 | # anything further. |
| 104 | return next_step |
| 105 | if 'switch' in next_step: |
| 106 | varname = next_step['switch'] |
| 107 | value = self._parameters.get(varname) |
| 108 | return next_step[value] |
| 109 | |
| 110 | |
| 111 | class BaseStep: |