diff --git a/org.adempiere.server/src/main/server/org/compiere/server/WorkflowProcessor.java b/org.adempiere.server/src/main/server/org/compiere/server/WorkflowProcessor.java index fba42bb4f0..0295dc6be8 100644 --- a/org.adempiere.server/src/main/server/org/compiere/server/WorkflowProcessor.java +++ b/org.adempiere.server/src/main/server/org/compiere/server/WorkflowProcessor.java @@ -244,7 +244,7 @@ public class WorkflowProcessor extends AdempiereServer String sql = "SELECT * " + "FROM AD_WF_Activity a " + "WHERE Processed='N' AND WFState='OS'" // suspended - + " AND EndWaitTime > getDate()" + + " AND EndWaitTime < getDate()" + " AND (DateLastAlert IS NULL"; if (m_model.getRemindDays() > 0) sql += " OR (DateLastAlert+" + m_model.getRemindDays()