All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.requirementsascode.flowposition.InsteadOf Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package org.requirementsascode.flowposition;

import java.io.Serializable;

import org.requirementsascode.FlowStep;
import org.requirementsascode.ModelRunner;

public class InsteadOf extends FlowPosition implements Serializable {
	private static final long serialVersionUID = -3958653686352185075L;

	public InsteadOf(FlowStep step) {
		super(step);
	}

	@Override
	protected boolean isRunnerAtRightPositionFor(FlowStep step, ModelRunner modelRunner) {
		FlowStep previousStep = step.getPreviousStepInFlow().orElse(null);
		After after = new After(previousStep);
		return after.test(modelRunner);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy