protected static Attribute<String> camundaExpressionAttribute;
protected static Attribute<String> camundaResultVariableAttribute;
protected static Attribute<String> camundaTypeAttribute;
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BusinessRuleTask.class, BPMN_ELEMENT_BUSINESS_RULE_TASK)
.namespaceUri(BPMN20_NS)
.extendsType(Task.class)
.instanceProvider(new ModelTypeInstanceProvider<BusinessRuleTask>() {
public BusinessRuleTask newInstance(ModelTypeInstanceContext instanceContext) {
return new BusinessRuleTaskImpl(instanceContext);
}
});
implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
.defaultValue("##unspecified")
.build();
/** camunda extensions */
camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS)
.namespace(CAMUNDA_NS)
.build();
camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION)
.namespace(CAMUNDA_NS)
.build();
camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION)
.namespace(CAMUNDA_NS)
.build();
camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE)
.namespace(CAMUNDA_NS)
.build();
camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE)
.namespace(CAMUNDA_NS)
.build();
typeBuilder.build();
}