use of org.camunda.bpm.model.bpmn.instance.camunda.CamundaValidation in project camunda-bpmn-model by camunda.
the class CamundaValidationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaValidation.class, CAMUNDA_ELEMENT_VALIDATION).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaValidation>() {
public CamundaValidation newInstance(ModelTypeInstanceContext instanceContext) {
return new CamundaValidationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
camundaConstraintCollection = sequenceBuilder.elementCollection(CamundaConstraint.class).build();
typeBuilder.build();
}
Aggregations