I made some enum classes that I would like to use with Input dialog forms in BPROC.
When I add a process variable, and select “Platfrom enum” as Type, there is a dropdown to pick the Enum class, and it lists various Haulmont defined enums, as well as some enums from a 3rd party addons such as Data Import. It doesn’t list enums defined by me.
Hello,
I created this enum using CUBA 7.2.20 New CUBA Enumeration artifact generator, right clicked under Data Model, I can see it is part of the Global module. (7.2.20 CUBA version)
package com.company.app.entity.process;
import com.haulmont.chile.core.datatypes.impl.EnumClass;
import javax.annotation.Nullable;
public enum SomeStatusEnum implements EnumClass<String> {
IN_PROGRESS("IN PROGRESS"),
SECOND_STATUS("SECOND STATUS"),
FINISHED("FINISHED");
private String id;
SomeStatusEnum(String value) {
this.id = value;
}
public String getId() {
return id;
}
@Nullable
public static SomeStatusEnum fromId(String id) {
for (SomeStatusEnum at : SomeStatusEnum.values()) {
if (at.getId().equals(id)) {
return at;
}
}
return null;
}
}
It seems that enums that do not participate as attribute of any entity are not displayed in the list. If you add this enum to any entity, it will be displayed in the modeler. I’ve created an issue.