In https://github.com/hpcc-systems/HPCC-Platform/pull/14660, we have added a fix to HPCC-Platform 8.0.0 for reporting WU Action in WsWorkunits.WUQuery. In this PR, the fix is back ported to 7.12.x. Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
@@ -1992,6 +1992,8 @@ void doWUQueryWithSort(IEspContext &context, IEspWUQueryRequest & req, IEspWUQue
// info.setSnapshot(cw->getSnapshot(s).str());
info->setStateID(cw.getState());
info->setState(cw.queryStateDesc());
+ info->setAction(cw.getAction());
+ info->setActionEx(cw.queryActionDesc());
unsigned totalThorTimeMS = cw.getTotalThorTime();
StringBuffer totalThorTimeStr;
formatDuration(totalThorTimeStr, totalThorTimeMS);