Search in sources :

Example 1 with ComplexGateway

use of org.camunda.bpm.model.bpmn.instance.ComplexGateway in project camunda-bpmn-model by camunda.

the class ComplexGatewayImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ComplexGateway.class, BPMN_ELEMENT_COMPLEX_GATEWAY).namespaceUri(BPMN20_NS).extendsType(Gateway.class).instanceProvider(new ModelTypeInstanceProvider<ComplexGateway>() {

        public ComplexGateway newInstance(ModelTypeInstanceContext instanceContext) {
            return new ComplexGatewayImpl(instanceContext);
        }
    });
    defaultAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFAULT).idAttributeReference(SequenceFlow.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    activationConditionChild = sequenceBuilder.element(ActivationCondition.class).build();
    typeBuilder.build();
}
Also used : Gateway(org.camunda.bpm.model.bpmn.instance.Gateway) ComplexGateway(org.camunda.bpm.model.bpmn.instance.ComplexGateway) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ComplexGateway(org.camunda.bpm.model.bpmn.instance.ComplexGateway) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

ComplexGateway (org.camunda.bpm.model.bpmn.instance.ComplexGateway)1 Gateway (org.camunda.bpm.model.bpmn.instance.Gateway)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