processsteps.bsh
来自「Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电」· BSH 代码 · 共 40 行
BSH
40 行
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 steps count = proc.how_many_step(); steps = proc.get_sequence_step(count); context.put("steps", steps);}// disconnect from the engineexMgr.disconnect();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?