use of org.flowable.validation.ProcessValidatorFactory in project plumdo-work by wengwh.
the class ModelValidationResource method validate.
@PostMapping(value = "/models/validate", name = "模型检查")
public List<ValidationError> validate(@RequestBody JsonNode body) {
BpmnModel bpmnModel = new BpmnJsonConverter().convertToBpmnModel(body);
ProcessValidator validator = new ProcessValidatorFactory().createDefaultProcessValidator();
return validator.validate(bpmnModel);
}
Aggregations