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();
}
Aggregations