|
本帖最后由 qweasdzxc 于 2017-6-9 11:24 编辑
- public static String getBZPosID(String DeptCode) {
- System.out.println("DeptCode:"+DeptCode);
- String BZPosID="";
- String ksql = "select a from SA_OPOrg a where a.sCode='"+DeptCode+"'";
- Table table=KSQL.select(ksql, null, "/BIZ/system/data", null);
- Iterator<Row> iter = table.iterator();
- while(iter.hasNext()){
- Row row = iter.next();
- BZPosID= row.getString(0);
- }
- // if(DeptCode.equals("dept01")){
- // BZPosID="jhvNxGLUS86YmmDvnOt";
- // }else if(DeptCode.equals("dept02")){
- // BZPosID="bUi6S8XNk2mJAXtaHQC";
- // }else if(DeptCode.equals("dept03")){
- // BZPosID="iCxrS9Ljt2EE0ZHLYKT";
- // }else if(DeptCode.equals("dept04")){
- // BZPosID="0Ro3S99JnK58nEIrJui";
- // }
- return BZPosID;
- }
复制代码- 2017-06-09 11:23:20 excute stream action, params:{"accept":"application/json","action":"externalAdvanceProcessQueryAction","actionFlag":"__action_0__","activity":"businessActivity1","contentType":"application/json","executeContext":"","executor":"/ORG01.ogn/0wHT7FqxM6TNiev6BOJ.dpt/EQhkpJCRwLg8j7nzPxL.pos/RQhS1r8a3BbLTskPmdp@EQhkpJCRwLg8j7nzPxL.psm","parameters":{"task":"DD71E0ACFDD843FF85EEF21DFD554AED"},"process":"/SAM/assetManage/process/assetout/assetoutProcess"}
- java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at com.justep.system.action.Engine.invokeActions(Native Method)
- at com.justep.system.action.Engine.invokeActions(Unknown Source)
- at com.justep.business.server.BusinessServer.doAction(Unknown Source)
- at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at com.justep.system.action.Engine.invokeAction(Native Method)
- at com.justep.system.action.Engine.invokeAction(Unknown Source)
- at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
- at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
- at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
- at com.justep.system.process.ProcessUtils.advanceProcessQuery(Unknown Source)
- at ExternalProcessProcedure.advanceProcessQuery(ExternalProcessProcedure.java:26)
- ... 27 more
- Caused by: com.justep.model.exception.ModelException: 编码: JUSTEP154064; 提示: 计算表达式findOrgUnitsHasCActivity(getBZPosID(currentDeptCode()), true)出错
- at com.justep.model.exception.ModelException.create(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.evaluate(Unknown Source)
- at com.justep.system.process.ExpressEngine.calculate(Unknown Source)
- at com.justep.system.process.ProcessRuleEngine.exprToOrgUnit(Unknown Source)
- at com.justep.system.process.ProcessRuleEngine.executorRangeToProcessControlItem(Unknown Source)
- at com.justep.system.process.ProcessRuleEngine.executeRuleToProcessControlItem(Unknown Source)
- at com.justep.system.process.ProcessRuleEngine.executeRuleToProcessControl(Unknown Source)
- at com.justep.system.process.ProcessQueryEngine.makeFlowIn(Unknown Source)
- at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
- at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
- at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
- at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
- at com.justep.system.process.AdvanceProcessQueryEngine.doFlowOutNormal(Unknown Source)
- at com.justep.system.process.AdvanceProcessQueryEngine.doFlowOut(Unknown Source)
- at com.justep.system.process.AdvanceProcessQueryEngine.doExecute(Unknown Source)
- at com.justep.system.process.AdvanceProcessQueryEngine.execute(Unknown Source)
- at com.justep.system.process.ProcessEngine.advanceQuery(Unknown Source)
- at ProcessProcedure.advanceProcessQuery(ProcessProcedure.java:338)
- ... 38 more
- Caused by: com.justep.model.exception.ModelException: 编码: JUSTEP154075; 提示: 调用函数findOrgUnitsHasCActivity出错
- at com.justep.model.exception.ModelException.create(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.functionExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.constExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.unaryExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.multiExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.addExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.compExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.notExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.andExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.orExpression(Unknown Source)
- ... 55 more
- Caused by: com.justep.model.exception.ModelException: 编码: JUSTEP154075; 提示: 调用函数getBZPosID出错
- at com.justep.model.exception.ModelException.create(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.functionExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.constExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.unaryExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.multiExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.addExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.compExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.notExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.andExpression(Unknown Source)
- at com.justep.system.ksql.parser.ExpressionImpl.orExpression(Unknown Source)
- ... 64 more
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- ... 73 more
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP151058; 提示: 模块"/BIZ"不存在
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.util.Utils.check(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadExtAttribute(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadModel(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadModel(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadModel(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadModel(Unknown Source)
- at com.justep.model.impl.ModelLoader.loadModel(Unknown Source)
- at com.justep.model.impl.ModelImpl.getModel(Unknown Source)
- at com.justep.model.impl.UtilImplementInstance.getModel(Unknown Source)
- at com.justep.model.ModelUtils.getModel(Unknown Source)
- at com.justep.system.data.KSQL.select(Unknown Source)
- at DefinedFn.getBZPosID(DefinedFn.java:40)
- ... 77 more
复制代码
|
|