use of org.camunda.bpm.model.bpmn.instance.Assignment 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();
}
Aggregations