use of org.activiti.validation.ProcessValidatorFactory in project Activiti by Activiti.
the class InCompleteSignalConverterTest method validateModel.
private void validateModel(BpmnModel model) {
FlowElement flowElement = model.getMainProcess().getFlowElement("task");
assertThat(flowElement).isNotNull();
assertThat(flowElement).isInstanceOf(UserTask.class);
assertThat(flowElement.getId()).isEqualTo("task");
ProcessValidator processValidator = new ProcessValidatorFactory().createDefaultProcessValidator();
List<ValidationError> errors = processValidator.validate(model);
assertThat(errors).isNotNull();
assertThat(errors).hasSize(2);
}
use of org.activiti.validation.ProcessValidatorFactory in project Activiti by Activiti.
the class DefaultProcessValidatorTest method setupProcessValidator.
@Before
public void setupProcessValidator() {
ProcessValidatorFactory processValidatorFactory = new ProcessValidatorFactory();
this.processValidator = processValidatorFactory.createDefaultProcessValidator();
}
Aggregations