Search in sources :

Example 1 with CallConversation

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();
}
Also used : CallConversation(org.camunda.bpm.model.bpmn.instance.CallConversation) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ConversationNode(org.camunda.bpm.model.bpmn.instance.ConversationNode) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

CallConversation (org.camunda.bpm.model.bpmn.instance.CallConversation)1 ConversationNode (org.camunda.bpm.model.bpmn.instance.ConversationNode)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1