// public static final long ACTION_PUBLISH = 5;
public static Action getActionById(long actionId) {
HibernateUtil dh = new HibernateUtil(Action.class);
Action myAction = null;
try {
dh.setQuery(
"from action in class com.dotmarketing.portlets.workflowmessages.model.Action where id = ?");
dh.setParam(actionId);
myAction = (Action) dh.load();