use of org.camunda.bpm.model.bpmn.instance.ParticipantAssociation in project camunda-bpmn-model by camunda.
the class ParticipantAssociationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ParticipantAssociation.class, BPMN_ELEMENT_PARTICIPANT_ASSOCIATION).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<ParticipantAssociation>() {
public ParticipantAssociation newInstance(ModelTypeInstanceContext instanceContext) {
return new ParticipantAssociationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
innerParticipantRefChild = sequenceBuilder.element(InnerParticipantRef.class).required().qNameElementReference(Participant.class).build();
outerParticipantRefChild = sequenceBuilder.element(OuterParticipantRef.class).required().qNameElementReference(Participant.class).build();
typeBuilder.build();
}
Aggregations