📄 processhistory.bsh
字号:
import java.util.*;import org.ofbiz.base.util.*;import org.ofbiz.shark.container.*;import org.ofbiz.shark.requester.*;import org.enhydra.shark.api.client.wfservice.*;import org.enhydra.shark.api.client.wfmodel.*;userLogin = session.getAttribute("userLogin");// get the admin toolsadmin = SharkContainer.getAdminInterface();exMgr = admin.getExecutionAdministration();if (userLogin == null) { request.setAttribute("_ERROR_MESSAGE_", "UserLogin object not found."); return;}// connect to the engineexMgr.connect(userLogin.getString("userLoginId"), userLogin.getString("currentPassword"), null, null);// process keyprocKey = request.getParameter("process");if (procKey != null) { context.put("processKey", procKey); // get the process manager proc = exMgr.getProcess(procKey); context.put("process", proc); // get the history count = proc.how_many_history(); procs = proc.get_sequence_history(count); context.put("historyList", procs);}// disconnect from the engineexMgr.disconnect();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -