use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class DataStoreImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataStore.class, BPMN_ELEMENT_DATA_STORE).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<DataStore>() {
public DataStore newInstance(ModelTypeInstanceContext instanceContext) {
return new DataStoreImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
capacityAttribute = typeBuilder.integerAttribute(BPMN_ATTRIBUTE_CAPACITY).build();
isUnlimitedAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_UNLIMITED).defaultValue(true).build();
itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(ItemDefinition.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataStateChild = sequenceBuilder.element(DataState.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CallableElementImpl method registerType.
public static void registerType(ModelBuilder bpmnModelBuilder) {
ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(CallableElement.class, BPMN_ELEMENT_CALLABLE_ELEMENT).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<ModelElementInstance>() {
public ModelElementInstance newInstance(ModelTypeInstanceContext instanceContext) {
return new CallableElementImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
supportedInterfaceRefCollection = sequenceBuilder.elementCollection(SupportedInterfaceRef.class).qNameElementReferenceCollection(Interface.class).build();
ioSpecificationChild = sequenceBuilder.element(IoSpecification.class).build();
ioBindingCollection = sequenceBuilder.elementCollection(IoBinding.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CorrelationPropertyRetrievalExpressionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationPropertyRetrievalExpression.class, BPMN_ELEMENT_CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<CorrelationPropertyRetrievalExpression>() {
public CorrelationPropertyRetrievalExpression newInstance(ModelTypeInstanceContext instanceContext) {
return new CorrelationPropertyRetrievalExpressionImpl(instanceContext);
}
});
messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF).required().qNameAttributeReference(Message.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
messagePathChild = sequenceBuilder.element(MessagePath.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class DataAssociationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataAssociation.class, BPMN_ELEMENT_DATA_ASSOCIATION).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<DataAssociation>() {
public DataAssociation newInstance(ModelTypeInstanceContext instanceContext) {
return new DataAssociationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
sourceRefCollection = sequenceBuilder.elementCollection(SourceRef.class).idElementReferenceCollection(ItemAwareElement.class).build();
targetRefChild = sequenceBuilder.element(TargetRef.class).required().idElementReference(ItemAwareElement.class).build();
transformationChild = sequenceBuilder.element(Transformation.class).build();
assignmentCollection = sequenceBuilder.elementCollection(Assignment.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class DataObjectImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataObject.class, BPMN_ELEMENT_DATA_OBJECT).namespaceUri(BPMN20_NS).extendsType(FlowElement.class).instanceProvider(new ModelTypeInstanceProvider<DataObject>() {
public DataObject newInstance(ModelTypeInstanceContext instanceContext) {
return new DataObjectImpl(instanceContext);
}
});
itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(ItemDefinition.class).build();
isCollectionAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_IS_COLLECTION).defaultValue(false).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataStateChild = sequenceBuilder.element(DataState.class).build();
typeBuilder.build();
}
Aggregations