use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class SentryImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Sentry.class, CMMN_ELEMENT_SENTRY).extendsType(CmmnElement.class).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Sentry>() {
public Sentry newInstance(ModelTypeInstanceContext instanceContext) {
return new SentryImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
onPartCollection = sequenceBuilder.elementCollection(OnPart.class).build();
ifPartChild = sequenceBuilder.element(IfPart.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class TableItemImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TableItem.class, CMMN_ELEMENT_TABLE_ITEM).namespaceUri(CMMN11_NS).abstractType().extendsType(CmmnElement.class);
applicabilityRuleRefCollection = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_APPLICABILITY_RULE_REFS).idAttributeReferenceCollection(ApplicabilityRule.class, CmmnAttributeElementReferenceCollection.class).build();
authorizedRoleRefCollection = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_AUTHORIZED_ROLE_REFS).idAttributeReferenceCollection(Role.class, CmmnAttributeElementReferenceCollection.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class TargetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Target.class, CMMN_ELEMENT_TARGET).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Target>() {
public Target newInstance(ModelTypeInstanceContext instanceContext) {
return new TargetImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class TaskImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Task.class, CMMN_ELEMENT_TASK).namespaceUri(CMMN11_NS).extendsType(PlanItemDefinition.class).instanceProvider(new ModelTypeInstanceProvider<Task>() {
public Task newInstance(ModelTypeInstanceContext instanceContext) {
return new TaskImpl(instanceContext);
}
});
isBlockingAttribute = typeBuilder.booleanAttribute(CMMN_ATTRIBUTE_IS_BLOCKING).defaultValue(true).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
inputsCollection = sequenceBuilder.elementCollection(InputsCaseParameter.class).build();
outputsCollection = sequenceBuilder.elementCollection(OutputsCaseParameter.class).build();
inputParameterCollection = sequenceBuilder.elementCollection(InputCaseParameter.class).build();
outputParameterCollection = sequenceBuilder.elementCollection(OutputCaseParameter.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class TextImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Text.class, CMMN_ELEMENT_TEXT).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Text>() {
public Text newInstance(ModelTypeInstanceContext instanceContext) {
return new TextImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations