use of org.camunda.bpm.model.cmmn.instance.PlanFragment in project camunda-cmmn-model by camunda.
the class PlanFragmentImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PlanFragment.class, CMMN_ELEMENT_PLAN_FRAGMENT).namespaceUri(CMMN11_NS).extendsType(PlanItemDefinition.class).instanceProvider(new ModelTypeInstanceProvider<PlanFragment>() {
public PlanFragment newInstance(ModelTypeInstanceContext instanceContext) {
return new PlanFragmentImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
planItemCollection = sequenceBuilder.elementCollection(PlanItem.class).build();
sentryCollection = sequenceBuilder.elementCollection(Sentry.class).build();
typeBuilder.build();
}
Aggregations