Is it somehow possible to count the number of outcomes of an enumeration in Mendix? I would like to create functionality in an after startup that automatically creates objects based on an EnumType. Each type can only exist once, so what I would like to achieve is a count of all possible enumeration outcomes versus a count of my objects. This would give me the information to either continue or create (a) new object(s) based on a change within the enumeration. Thank you!
You could probably create a java action for this and simply loop through all the enumeration values and check if there is a corresponding object for it.
Remove all the objects you didn't 'touch' afterwards.