protected static Attribute<String> camundaFormHandlerClassAttribute;
protected static Attribute<String> camundaFormKeyAttribute;
protected static Attribute<String> camundaPriorityAttribute;
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(UserTask.class, BPMN_ELEMENT_USER_TASK)
.namespaceUri(BPMN20_NS)
.extendsType(Task.class)
.instanceProvider(new ModelTypeInstanceProvider<UserTask>() {
public UserTask newInstance(ModelTypeInstanceContext instanceContext) {
return new UserTaskImpl(instanceContext);
}
});
implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
.defaultValue("##unspecified")
.build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
renderingCollection = sequenceBuilder.elementCollection(Rendering.class)
.build();
/** camunda extensions */
camundaAssigneeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_ASSIGNEE)
.namespace(CAMUNDA_NS)
.build();
camundaCandidateGroupsAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CANDIDATE_GROUPS)
.namespace(CAMUNDA_NS)
.build();
camundaCandidateUsersAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CANDIDATE_USERS)
.namespace(CAMUNDA_NS)
.build();
camundaDueDateAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DUE_DATE)
.namespace(CAMUNDA_NS)
.build();
camundaFormHandlerClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FORM_HANDLER_CLASS)
.namespace(CAMUNDA_NS)
.build();
camundaFormKeyAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FORM_KEY)
.namespace(CAMUNDA_NS)
.build();
camundaPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_PRIORITY)
.namespace(CAMUNDA_NS)
.build();
typeBuilder.build();
}