use of org.camunda.bpm.model.bpmn.instance.ResourceAssignmentExpression in project camunda-bpmn-model by camunda.
the class ResourceAssignmentExpressionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ResourceAssignmentExpression.class, BPMN_ELEMENT_RESOURCE_ASSIGNMENT_EXPRESSION).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<ResourceAssignmentExpression>() {
public ResourceAssignmentExpression newInstance(ModelTypeInstanceContext instanceContext) {
return new ResourceAssignmentExpressionImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
expressionChild = sequenceBuilder.element(Expression.class).required().build();
typeBuilder.build();
}
Aggregations