use of org.camunda.bpm.model.bpmn.instance.CallConversation in project camunda-bpmn-model by camunda.
the class CallConversationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CallConversation.class, BPMN_ELEMENT_CALL_CONVERSATION).namespaceUri(BPMN20_NS).extendsType(ConversationNode.class).instanceProvider(new ModelTypeInstanceProvider<CallConversation>() {
public CallConversation newInstance(ModelTypeInstanceContext instanceContext) {
return new CallConversationImpl(instanceContext);
}
});
calledCollaborationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CALLED_COLLABORATION_REF).qNameAttributeReference(GlobalConversation.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
participantAssociationCollection = sequenceBuilder.elementCollection(ParticipantAssociation.class).build();
typeBuilder.build();
}
Aggregations