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:
parent
80146138ac
commit
30ce8cc5be
|
@ -184,6 +184,7 @@ public class MWFProcess extends X_AD_WF_Process
|
||||||
}
|
}
|
||||||
List<MWFActivity> list = new Query(getCtx(), MWFActivity.Table_Name, whereClause.toString(), trxName)
|
List<MWFActivity> list = new Query(getCtx(), MWFActivity.Table_Name, whereClause.toString(), trxName)
|
||||||
.setParameters(params)
|
.setParameters(params)
|
||||||
|
.setOrderBy(MWFActivity.COLUMNNAME_AD_WF_Activity_ID)
|
||||||
.list();
|
.list();
|
||||||
m_activities = new MWFActivity[list.size ()];
|
m_activities = new MWFActivity[list.size ()];
|
||||||
list.toArray (m_activities);
|
list.toArray (m_activities);
|
||||||
|
|
Loading…
Reference in New Issue