Precedence error found in SQL workflow processor

This commit is contained in:
Carlos Ruiz 2007-11-11 10:43:07 +00:00
parent 4feb03df69
commit fff20c41c6
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class WorkflowProcessor extends AdempiereServer
+ " INNER JOIN AD_WF_Node wfn ON (wf.AD_Workflow_ID=wfn.AD_Workflow_ID) "
+ "WHERE a.AD_WF_Node_ID=wfn.AD_WF_Node_ID"
+ " AND wfn.Action='Z'" // sleeping
+ " AND wf.AD_WorkflowProcessor_ID IS NULL OR wf.AD_WorkflowProcessor_ID=?)";
+ " AND (wf.AD_WorkflowProcessor_ID IS NULL OR wf.AD_WorkflowProcessor_ID=?))";
PreparedStatement pstmt = null;
int count = 0;
int countEMails = 0;