IDEMPIERE-4376:order activity workflow by ID (also time it's created) (#187)

maybe order by seq-no of node link to activity is more stable than ID
This commit is contained in:
hieplq 2020-07-27 22:08:02 +07:00 committed by GitHub
parent 80146138ac
commit 30ce8cc5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ public class MWFProcess extends X_AD_WF_Process
}
List<MWFActivity> list = new Query(getCtx(), MWFActivity.Table_Name, whereClause.toString(), trxName)
.setParameters(params)
.setOrderBy(MWFActivity.COLUMNNAME_AD_WF_Activity_ID)
.list();
m_activities = new MWFActivity[list.size ()];
list.toArray (m_activities);