(function(){
var applicationId=getApplication();
var docId=getCurrentDocument().getId();
var histortyList = new Packages.cn.myapps.runtime.workflow.service.WorkflowRunTimeServiceImpl().getHistorys(applicationId, docId);
for( var i = 0; i < histortyList.size() ; i++){
var historty=histortyList.get(i);
var value1=historty.getStartNodeName();//开始节点名称
var value2=historty.getTargetNodeName();//到达节点名称
var value3=historty.getAuditorName();//审批人名称
var value4=historty.getAuditorId();//审批人id
var value5=historty.getAgentAuditorId();//代理人id
var value6=historty.getAgentAuditorName();//代理人名称
var value7=historty.getAttitude();//审批意见
var value8=historty.getSignature();//签名
var value9=historty.getProcesstime();//审批日期
var value10=historty.getFlowOperation();//审批动作代码
var value11=historty.getFolowStateId();//流程实例Id
var value12=historty.getFlowId();//流程id
var value13=historty.getStartNodeId();//开始节点id
var value14=historty.getTargetNodeId();//目标节点id
var value15=historty.getStartNodeName();//开始节点名称
var value16=historty.getSummary();//流程摘要
var value17=historty.getActiontime();//处理时间
}