您好:此时您需要通过sql语句查询流程历史表中的记录,类似sql语句:
var sql="select a.id,a.docid,a.startnodename,a.endnodename,b.actorid,b.attitude,b.nodehis_id from T_RELATIONHIS a,T_ACTORHIS b where docid='"+getCurrentDocument().getId()+"' and startnodename='节点一' and endnodename='节点二' and actorid='"+getWebUser().getId()+"' and a.id=b.nodehis_id";
所以此时你可以采用数据源的方式去更新T_RELATIONHIS ,T_ACTORHIS这两个表的attitude字段。
数据源的使用可以参考帖子:http://www.teemlink.com/bbs/view ... =%CA%FD%BE%DD%D4%B4 |