Search in sources :

Example 1 with ParallelGateway

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

the class ParallelGatewayImpl method registerType.

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

        public ParallelGateway newInstance(ModelTypeInstanceContext instanceContext) {
            return new ParallelGatewayImpl(instanceContext);
        }
    });
    /**
     * camunda extensions
     */
    camundaAsyncAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_ASYNC).namespace(CAMUNDA_NS).defaultValue(false).build();
    typeBuilder.build();
}
Also used : ParallelGateway(org.camunda.bpm.model.bpmn.instance.ParallelGateway) ParallelGateway(org.camunda.bpm.model.bpmn.instance.ParallelGateway) Gateway(org.camunda.bpm.model.bpmn.instance.Gateway) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

Gateway (org.camunda.bpm.model.bpmn.instance.Gateway)1 ParallelGateway (org.camunda.bpm.model.bpmn.instance.ParallelGateway)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1