01-25-2013 11:54 AM
${status==a.b.c.StatusEnum.REJECTED}
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'a'
at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
01-26-2013 04:04 AM
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"}
${status=="rejected"}
01-28-2013 04:26 AM
01-30-2013 11:55 AM
01-30-2013 03:14 PM
${myCDIBean.isEqualToField(myField)}
import a.b.c.Clazz.Field
@Named
public class MyCDIBean {
public boolean isEqualToField(a.b.c.Clazz.Field myValue) {
return Field == myValue;
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.