use of org.camunda.bpm.model.bpmn.instance.InputSet in project camunda-bpmn-model by camunda.
the class InputSetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<InputSet>() {
public InputSet newInstance(ModelTypeInstanceContext instanceContext) {
return new InputSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute("name").build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(DataInputRefs.class).idElementReferenceCollection(DataInput.class).build();
optionalInputRefsCollection = sequenceBuilder.elementCollection(OptionalInputRefs.class).idElementReferenceCollection(DataInput.class).build();
whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingInputRefs.class).idElementReferenceCollection(DataInput.class).build();
outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(OutputSetRefs.class).idElementReferenceCollection(OutputSet.class).build();
typeBuilder.build();
}
Aggregations