use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ContextEntryImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ContextEntry.class, DMN_ELEMENT_CONTEXT_ENTRY).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<ContextEntry>() {
public ContextEntry newInstance(ModelTypeInstanceContext instanceContext) {
return new ContextEntryImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
variableChild = sequenceBuilder.element(Variable.class).build();
expressionChild = sequenceBuilder.element(Expression.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DecisionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Decision.class, DMN_ELEMENT_DECISION).namespaceUri(DMN11_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<Decision>() {
public Decision newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
questionChild = sequenceBuilder.element(Question.class).build();
allowedAnswersChild = sequenceBuilder.element(AllowedAnswers.class).build();
variableChild = sequenceBuilder.element(Variable.class).build();
informationRequirementCollection = sequenceBuilder.elementCollection(InformationRequirement.class).build();
knowledgeRequirementCollection = sequenceBuilder.elementCollection(KnowledgeRequirement.class).build();
authorityRequirementCollection = sequenceBuilder.elementCollection(AuthorityRequirement.class).build();
supportedObjectiveChildElementCollection = sequenceBuilder.elementCollection(SupportedObjectiveReference.class).build();
impactedPerformanceIndicatorRefCollection = sequenceBuilder.elementCollection(ImpactedPerformanceIndicatorReference.class).uriElementReferenceCollection(PerformanceIndicator.class).build();
decisionMakerRefCollection = sequenceBuilder.elementCollection(DecisionMakerReference.class).uriElementReferenceCollection(OrganizationUnit.class).build();
decisionOwnerRefCollection = sequenceBuilder.elementCollection(DecisionOwnerReference.class).uriElementReferenceCollection(OrganizationUnit.class).build();
usingProcessCollection = sequenceBuilder.elementCollection(UsingProcessReference.class).build();
usingTaskCollection = sequenceBuilder.elementCollection(UsingTaskReference.class).build();
expressionChild = sequenceBuilder.element(Expression.class).build();
// camunda extensions
camundaHistoryTimeToLiveAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_HISTORY_TIME_TO_LIVE).namespace(CAMUNDA_NS).build();
camundaVersionTag = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_VERSION_TAG).namespace(CAMUNDA_NS).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DecisionMadeReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DecisionMadeReference.class, DMN_ELEMENT_DECISION_MADE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<DecisionMadeReference>() {
public DecisionMadeReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionMadeReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DecisionOwnedReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DecisionOwnedReference.class, DMN_ELEMENT_DECISION_OWNED).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<DecisionOwnedReference>() {
public DecisionOwnedReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionOwnedReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DecisionOwnerReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DecisionOwnerReference.class, DMN_ELEMENT_DECISION_OWNER).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<DecisionOwnerReference>() {
public DecisionOwnerReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionOwnerReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations