Shreyas arya

Generation

generate functionMon, 23 Jan 2023

We need to create validators for each status. The validator will check if transition from current state is allowed or not. WorkflowExecutionValidator will pick up an appropriate validator from a list and check if transition is allowed. Validators are implemented for each workflow execution status Validators are applied in production code

public abstract class Validator<T> { public abstract Collection<ValidatorResult> validate(T object); }

Questions about programming?Chat with your personal AI assistant