天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 1670|回复: 0

[源码] 自定义jsp页面获取某条记录的审批人【源码-当前审批人】

[复制链接]
bobo 发表于 2013-10-11 22:11:21 | 显示全部楼层 |阅读模式
Q:jsp文件中如何获取当前审批人?
A:您在jsp页面的代码类似如下:

  1. <% String applicationid="11e2-faba-29768458-ac72-af31f40dcc3f";
  2. DocumentProcess process = null;
  3. process = (DocumentProcess) DocumentProcessBean.createMonitoProcess(applicationid);
  4. Document doc1=(Document)process.doView("11e3-203e-96768e98-9ec7-0f778072de79");
  5.     out.println(doc1.getStateLabel()+"======");
  6.     if(doc1.getStateLabel()!=null){
  7.             List listActor=(List)doc1.getState().getActors();
  8.         if (listActor != null) {
  9.             for (Iterator iter = listActor.iterator(); iter.hasNext();) {  
  10.                     ActorRT actorrt=(ActorRT)iter.next();
  11.                     String userName=actorrt.getName();
  12.                     out.println("userName========"+userName);
  13.              }
  14.         }
  15.     } %>
复制代码
同时jsp页面需要导入文档和流程的包,如下:

  1. <%@ page import="cn.myapps.core.dynaform.document.ejb.*" %>
  2. <%@ page import="cn.myapps.core.workflow.storage.runtime.ejb.*" %>
复制代码
前台页面显示效果:
a58.gif

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 15:55

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表