use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ResourceParameterBindingImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ResourceParameterBinding.class, BPMN_ELEMENT_RESOURCE_PARAMETER_BINDING).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<ResourceParameterBinding>() {
public ResourceParameterBinding newInstance(ModelTypeInstanceContext instanceContext) {
return new ResourceParameterBindingImpl(instanceContext);
}
});
parameterRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARAMETER_REF).required().qNameAttributeReference(ResourceParameter.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
expressionChild = sequenceBuilder.element(Expression.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ResourceRoleImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ResourceRole.class, BPMN_ELEMENT_RESOURCE_ROLE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<ResourceRole>() {
public ResourceRole newInstance(ModelTypeInstanceContext instanceContext) {
return new ResourceRoleImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
resourceRefChild = sequenceBuilder.element(ResourceRef.class).qNameElementReference(Resource.class).build();
resourceParameterBindingCollection = sequenceBuilder.elementCollection(ResourceParameterBinding.class).build();
resourceAssignmentExpressionChild = sequenceBuilder.element(ResourceAssignmentExpression.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ThrowEventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ThrowEvent.class, BPMN_ELEMENT_THROW_EVENT).namespaceUri(BPMN20_NS).extendsType(Event.class).abstractType();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataInputCollection = sequenceBuilder.elementCollection(DataInput.class).build();
dataInputAssociationCollection = sequenceBuilder.elementCollection(DataInputAssociation.class).build();
inputSetChild = sequenceBuilder.element(InputSet.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 ConversationNodeImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ConversationNode.class, BPMN_ELEMENT_CONVERSATION_NODE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).abstractType();
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
participantRefCollection = sequenceBuilder.elementCollection(ParticipantRef.class).qNameElementReferenceCollection(Participant.class).build();
messageFlowRefCollection = sequenceBuilder.elementCollection(MessageFlowRef.class).qNameElementReferenceCollection(MessageFlow.class).build();
correlationKeyCollection = sequenceBuilder.elementCollection(CorrelationKey.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CorrelationPropertyImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder;
typeBuilder = modelBuilder.defineType(CorrelationProperty.class, BPMN_ELEMENT_CORRELATION_PROPERTY).namespaceUri(BPMN20_NS).extendsType(RootElement.class).instanceProvider(new ModelTypeInstanceProvider<CorrelationProperty>() {
public CorrelationProperty newInstance(ModelTypeInstanceContext instanceContext) {
return new CorrelationPropertyImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
typeAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TYPE).qNameAttributeReference(ItemDefinition.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
correlationPropertyRetrievalExpressionCollection = sequenceBuilder.elementCollection(CorrelationPropertyRetrievalExpression.class).required().build();
typeBuilder.build();
}
Aggregations