org.requirementsascode.systemreaction.AbstractContinuesAfter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of requirementsascodecore Show documentation
Show all versions of requirementsascodecore Show documentation
Enables you to define and run executable use case specifications, in your code.
package org.requirementsascode.systemreaction;
import org.requirementsascode.FlowStep;
import org.requirementsascode.ModelRunner;
public abstract class AbstractContinuesAfter extends AbstractContinues {
private FlowStep previousStep;
public AbstractContinuesAfter(String stepName) {
super(stepName);
}
@Override
public void accept(ModelRunner runner) {
if(previousStep == null) {
previousStep = resolvePreviousStep();
}
runner.setLatestStep(previousStep);
}
public abstract FlowStep resolvePreviousStep();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy