As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
${entity.getState().toString().equals("STATE")}
This will work, although doesn't look as clean as it should :${entity.getState().toString().equals("STATE")}
When referencing an enum constant with an expression, you use a String literal. For example, consider this Enum class:public enum Suit {hearts, spades, diamonds, clubs}To refer to the Suit constant, Suit.hearts with an expression, you use the String literal, "hearts". Depending on the context, the String literal is converted to the enum constant automatically. For example, in the following expression in which mySuit is an instance of Suit, "hearts" is first converted to a Suit.hearts before it is compared to the instance.${mySuit == "hearts"}
<br>${var == 'ORANGE'}<br>${var == MyEnum.ORANGE}<br>