use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class OutputsCaseParameterImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OutputsCaseParameter.class, CMMN_ELEMENT_OUTPUTS).namespaceUri(CMMN10_NS).extendsType(CaseParameter.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<OutputsCaseParameter>() {
public OutputsCaseParameter newInstance(ModelTypeInstanceContext instanceContext) {
return new OutputsCaseParameterImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class ParameterImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Parameter.class, CMMN_ELEMENT_PARAMETER).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).abstractType();
nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class PlanFragmentImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PlanFragment.class, CMMN_ELEMENT_PLAN_FRAGMENT).namespaceUri(CMMN11_NS).extendsType(PlanItemDefinition.class).instanceProvider(new ModelTypeInstanceProvider<PlanFragment>() {
public PlanFragment newInstance(ModelTypeInstanceContext instanceContext) {
return new PlanFragmentImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
planItemCollection = sequenceBuilder.elementCollection(PlanItem.class).build();
sentryCollection = sequenceBuilder.elementCollection(Sentry.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class PlanItemImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PlanItem.class, CMMN_ELEMENT_PLAN_ITEM).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<PlanItem>() {
public PlanItem newInstance(ModelTypeInstanceContext instanceContext) {
return new PlanItemImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME).build();
planItemDefinitionRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_DEFINITION_REF).idAttributeReference(PlanItemDefinition.class).build();
entryCriteriaRefCollection = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_ENTRY_CRITERIA_REFS).namespace(CMMN10_NS).idAttributeReferenceCollection(Sentry.class, CmmnAttributeElementReferenceCollection.class).build();
exitCriteriaRefCollection = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_EXIT_CRITERIA_REFS).namespace(CMMN10_NS).idAttributeReferenceCollection(Sentry.class, CmmnAttributeElementReferenceCollection.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
itemControlChild = sequenceBuilder.element(ItemControl.class).build();
entryCriterionCollection = sequenceBuilder.elementCollection(EntryCriterion.class).build();
exitCriterionCollection = sequenceBuilder.elementCollection(ExitCriterion.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class PlanItemOnPartImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PlanItemOnPart.class, CMMN_ELEMENT_PLAN_ITEM_ON_PART).extendsType(OnPart.class).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<PlanItemOnPart>() {
public PlanItemOnPart newInstance(ModelTypeInstanceContext instanceContext) {
return new PlanItemOnPartImpl(instanceContext);
}
});
sourceRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_SOURCE_REF).idAttributeReference(PlanItem.class).build();
exitCriterionRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_EXIT_CRITERION_REF).idAttributeReference(ExitCriterion.class).build();
sentryRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_SENTRY_REF).namespace(CMMN10_NS).idAttributeReference(Sentry.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
standardEventChild = sequenceBuilder.element(PlanItemTransitionStandardEvent.class).build();
typeBuilder.build();
}
Aggregations