Search in sources :

Example 1 with CaseFileModel

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

the class CaseFileModelImpl method registerType.

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

        public CaseFileModel newInstance(ModelTypeInstanceContext instanceContext) {
            return new CaseFileModelImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : CaseFileModel(org.camunda.bpm.model.cmmn.instance.CaseFileModel) CaseFile(org.camunda.bpm.model.cmmn.instance.CaseFile) 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 CaseFileModel (org.camunda.bpm.model.cmmn.instance.CaseFileModel)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1