use of org.camunda.bpm.model.bpmn.instance.SubConversation in project camunda-bpmn-model by camunda.
the class SubConversationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SubConversation.class, BPMN_ELEMENT_SUB_CONVERSATION).namespaceUri(BPMN20_NS).extendsType(ConversationNode.class).instanceProvider(new ModelTypeInstanceProvider<SubConversation>() {
public SubConversation newInstance(ModelTypeInstanceContext instanceContext) {
return new SubConversationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
conversationNodeCollection = sequenceBuilder.elementCollection(ConversationNode.class).build();
typeBuilder.build();
}
Aggregations