Search in sources :

Example 1 with CaseFile

use of org.camunda.bpm.model.cmmn.instance.CaseFile in project camunda-cmmn-model by camunda.

the class CaseFileImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CaseFile.class, CMMN_ELEMENT_CASE_FILE).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<CaseFile>() {

        public CaseFile newInstance(ModelTypeInstanceContext instanceContext) {
            return new CaseFileImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    caseFileItemCollection = sequenceBuilder.elementCollection(CaseFileItem.class).build();
    typeBuilder.build();
}
Also used : CmmnElement(org.camunda.bpm.model.cmmn.instance.CmmnElement) CaseFile(org.camunda.bpm.model.cmmn.instance.CaseFile) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

CaseFile (org.camunda.bpm.model.cmmn.instance.CaseFile)1 CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)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