use of org.camunda.bpm.model.bpmn.instance.DataObject 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