零代码低代码平台 用户生产软件 软件共享
快速信息化 行业盛会邀您共享
获取某个节点的流程处理人  【查看:969 回复:0
   
admin 发表于:2017/8/17 16:05:28   楼主 
var opts=$TOOLS.createOptions();
var userProcess = getUserProcess();
var doc = getCurrentDocument();
var domainid = getDomainid();
var nodeName="流程审批";  //流程节点名称
var sql="select id,actorid as item_actorid,name as item_name,'" + domainid + "' as domainid from T_ACTORHIS where NODEHIS_ID in (select ID from t_relationhis where docid='"+doc.getId()+"' and startnodename='"+nodeName+"')";
println(sql+"=====sql===");
var datas = queryBySQL(sql);
for (var it = datas.iterator(); it.hasNext();) {
       var d = it.next();
       var userid = d.getItemValueAsString("actorid");
       var username = d.getItemValueAsString("name");
      opts.add(username,userid);
}opts;