use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-dmn-model by camunda.
the class AssociationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Association.class, DMN_ELEMENT_ASSOCIATION).namespaceUri(DMN11_NS).extendsType(Artifact.class).instanceProvider(new ModelTypeInstanceProvider<Association>() {
public Association newInstance(ModelTypeInstanceContext instanceContext) {
return new AssociationImpl(instanceContext);
}
});
associationDirectionAttribute = typeBuilder.enumAttribute(DMN_ATTRIBUTE_ASSOCIATION_DIRECTION, AssociationDirection.class).defaultValue(AssociationDirection.None).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
sourceRef = sequenceBuilder.element(SourceRef.class).required().uriElementReference(DmnElement.class).build();
targetRef = sequenceBuilder.element(TargetRef.class).required().uriElementReference(DmnElement.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-dmn-model by camunda.
the class AuthorityRequirementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(AuthorityRequirement.class, DMN_ELEMENT_AUTHORITY_REQUIREMENT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<AuthorityRequirement>() {
public AuthorityRequirement newInstance(ModelTypeInstanceContext instanceContext) {
return new AuthorityRequirementImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
requiredDecisionRef = sequenceBuilder.element(RequiredDecisionReference.class).uriElementReference(Decision.class).build();
requiredInputRef = sequenceBuilder.element(RequiredInputReference.class).uriElementReference(InputData.class).build();
requiredAuthorityRef = sequenceBuilder.element(RequiredAuthorityReference.class).uriElementReference(KnowledgeSource.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder 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.type.child.SequenceBuilder 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.type.child.SequenceBuilder in project camunda-dmn-model by camunda.
the class DecisionRuleImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DecisionRule.class, DMN_ELEMENT_DECISION_RULE).namespaceUri(DMN11_NS).extendsType(DmnElement.class).instanceProvider(new ModelTypeInstanceProvider<DecisionRule>() {
public DecisionRule newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionRuleImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
inputEntryCollection = sequenceBuilder.elementCollection(InputEntry.class).build();
outputEntryCollection = sequenceBuilder.elementCollection(OutputEntry.class).required().build();
typeBuilder.build();
}
Aggregations