Search in sources :

Example 1 with InputSet

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();
}
Also used : InputSet(org.camunda.bpm.model.bpmn.instance.InputSet) BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

BaseElement (org.camunda.bpm.model.bpmn.instance.BaseElement)1 InputSet (org.camunda.bpm.model.bpmn.instance.InputSet)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1