| 220 | } |
| 221 | |
| 222 | boost::optional<WorkflowStep> WorkflowJSON_Impl::currentStep() const { |
| 223 | unsigned index = currentStepIndex(); |
| 224 | std::vector<WorkflowStep> steps = this->workflowSteps(); |
| 225 | |
| 226 | if (index >= steps.size()) { |
| 227 | return boost::none; |
| 228 | } |
| 229 | |
| 230 | return steps[index]; |
| 231 | } |
| 232 | |
| 233 | bool WorkflowJSON_Impl::incrementStep() { |
| 234 | unsigned index = currentStepIndex(); |
no test coverage detected