use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class OutputSetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OutputSet.class, BPMN_ELEMENT_OUTPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<OutputSet>() {
public OutputSet newInstance(ModelTypeInstanceContext instanceContext) {
return new OutputSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataOutputRefsCollection = sequenceBuilder.elementCollection(DataOutputRefs.class).idElementReferenceCollection(DataOutput.class).build();
optionalOutputRefsCollection = sequenceBuilder.elementCollection(OptionalOutputRefs.class).idElementReferenceCollection(DataOutput.class).build();
whileExecutingOutputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingOutputRefs.class).idElementReferenceCollection(DataOutput.class).build();
inputSetInputSetRefsCollection = sequenceBuilder.elementCollection(InputSetRefs.class).idElementReferenceCollection(InputSet.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class AssignmentImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Assignment.class, BPMN_ELEMENT_ASSIGNMENT).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Assignment>() {
public Assignment newInstance(ModelTypeInstanceContext instanceContext) {
return new AssignmentImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
fromChild = sequenceBuilder.element(From.class).required().build();
toChild = sequenceBuilder.element(To.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CatchEventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CatchEvent.class, BPMN_ELEMENT_CATCH_EVENT).namespaceUri(BPMN20_NS).extendsType(Event.class).abstractType();
parallelMultipleAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_PARALLEL_MULTIPLE).defaultValue(false).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataOutputCollection = sequenceBuilder.elementCollection(DataOutput.class).build();
dataOutputAssociationCollection = sequenceBuilder.elementCollection(DataOutputAssociation.class).build();
outputSetChild = sequenceBuilder.element(OutputSet.class).build();
eventDefinitionCollection = sequenceBuilder.elementCollection(EventDefinition.class).build();
eventDefinitionRefCollection = sequenceBuilder.elementCollection(EventDefinitionRef.class).qNameElementReferenceCollection(EventDefinition.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class RelationshipImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Relationship.class, BPMN_ELEMENT_RELATIONSHIP).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Relationship>() {
public Relationship newInstance(ModelTypeInstanceContext instanceContext) {
return new RelationshipImpl(instanceContext);
}
});
typeAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TYPE).required().build();
directionAttribute = typeBuilder.enumAttribute(BPMN_ATTRIBUTE_DIRECTION, RelationshipDirection.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
sourceCollection = sequenceBuilder.elementCollection(Source.class).minOccurs(1).build();
targetCollection = sequenceBuilder.elementCollection(Target.class).minOccurs(1).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ResourceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Resource.class, BPMN_ELEMENT_RESOURCE).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<Resource>() {
public Resource newInstance(ModelTypeInstanceContext instanceContext) {
return new ResourceImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).required().build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
resourceParameterCollection = sequenceBuilder.elementCollection(ResourceParameter.class).build();
typeBuilder.build();
}
Aggregations