next method

Future<void> next(
  1. String stepId
)

Moves workflow to the next step and executes it.

Implementation

Future<void> next(String stepId) async {
  _currentStepId = stepId;
  emitExpression('workflow.step', payload: {'step': stepId});
  await _run(stepId);
}