起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6077|回复: 3

[结贴] 流程回退报错

[复制链接]

59

主题

163

帖子

555

积分

高级会员

Rank: 4

积分
555
QQ
发表于 2018-10-25 09:26:53 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号: 3.7
数据库: MySQL 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
流程回退报错,下面是错误详细信息,这个方法是bex5的,没有做过更改。
查找之前的帖子http://bbs.wex5.com/forum.php?mo ... rguments&page=2
确认一下/BIZ/system/logic/action/processExternal.action.m中externalBackProcessQueryAction这个action的参数
/BIZ/system/logic/action/processExternal.procedure.m中externalBackProcessQueryProcedure这个Procedure的参数
/BIZ/system/logic/code/dsrc/ExternalProcessProcedure.java中backProcessQuery的参数
参数也都是一样的,不知道哪里出问题了。
excute stream action, params:{"actions":[{"accept":"application/json","action":"externalBackProcessAction","actionFlag":"__action_0__","activity":"startupMeetingTime","contentType":"application/json","executeContext":"","executor":"/ORG01.ogn/PSN01@ORG01.psm","parameters":{"control":{"class":"com.justep.system.process.ProcessControl","object":{"@@tag":"process-control","customized-enabled":"false","dialog-enabled":"true","jump-enabled":"false","message":"","notice":[],"postscript":"","save-history":"true","status":"none","task-join":"false","task-join-mode":"","to":[{"@activity-id":"2C81739B58F443DC9DE63D61E5B5CD43","@id":"2C81739B58F443DC9DE63D61E5B5CD43","@is-end":"false","@readonly":"false","@selected":"true","executor-kinds":"","executor-range":[{"@@tag":"org-unit","fid":"/ORG01.ogn/PSN01@ORG01.psm","fname":"/起步软件/system","responsible":"false"}],"executors":[{"@@tag":"org-unit","fid":"/ORG01.ogn/PSN01@ORG01.psm","fname":"/起步软件/system","responsible":false}],"process":"/edudiagnose/processmng/process/main/mainProcess","task-relation-value":{"@@tag":"task-relation-value","SA_Task":"B8BF7CA03FFA4420A400C752F0BD17A3","sActivity":"startDiagProc","sActivityInTemplate":"startDiagProc","sActivityName":"启动诊断过程","sCURL":"/edudiagnose/processmng/process/main/startupMeetingTime.a","sCatalogID":"tsProcess","sData1":"bj12z1822","sData2":"bj12z","sData3":"groupA","sEURL":"/edudiagnose/processmng/process/main/startDiagProc.a","sExecuteMode":"temPreempt","sExecuteMode2":"flowToAgain","sExecutorNames":"","sFrontID":"0342EF5525524864A3179BD73B2DA816","sKindID":"tkTask","sLastModifyTime":"2018-10-25T09:21:25.545Z","sLock":"35A058CBDC7D46ABBDE7743BD3C2491B","sName":"回退:bj12z1822:启动诊断过程","sPreemptMode":"tpmExecute","sProcess":"/edudiagnose/processmng/process/main/mainProcess","sProcessName":"诊断过程流程","sProcessTemplateID2":"","sResponsible":"false","sSequence":"0","sSourceID":"B8BF7CA03FFA4420A400C752F0BD17A3","sTypeName":"诊断过程流程","sVariable":"x=;"},"template":"","unit":"startDiagProc"}]}},"task":"999EDFC6CE454B4CAABC1C38C7760C30"},"process":"/edudiagnose/processmng/process/main/mainProcess"}]}
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.IllegalArgumentException: wrong number of arguments
    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.backProcess(Unknown Source)
    at ExternalProcessProcedure.backProcess(ExternalProcessProcedure.java:41)
    ... 27 more



59

主题

163

帖子

555

积分

高级会员

Rank: 4

积分
555
QQ
 楼主| 发表于 2018-10-25 09:40:44 | 显示全部楼层
本帖最后由 不要香菜 于 2018-10-25 09:44 编辑

action.m  
  <action name="externalBackProcessAction" global="true" procedure="externalBackProcessProcedure">
    <public name="task" type="String"/>  
    <public name="control" type="Object"/>  
    <label language="zh_CN">流程回退</label>
  </action>  
procedure.m
<procedure name="externalBackProcessProcedure"
        code-model="/system/logic/code"
        code="ExternalProcessProcedure.backProcess">
        <parameter name="task" type="String"/>
        <parameter name="control" type="Object"/>
    </procedure>

java
      public static List<Map<String, String>> backProcess(String task, ProcessControl control) {
        ProcessEngine engine = (ProcessEngine) ProcessUtils.getProcessContext();
        engine.back();
        engine.commit();
        saveProcessControl(ProcessConstants.BACK_PROCESS_ACTION);
        
        return outputActiveTasks(engine.getPI());
    }
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2018-10-25 10:06:56 | 显示全部楼层
所有的流程回退都报错?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

59

主题

163

帖子

555

积分

高级会员

Rank: 4

积分
555
QQ
 楼主| 发表于 2018-10-25 10:48:44 | 显示全部楼层
jishuang 发表于 2018-10-25 10:06
所有的流程回退都报错?

解决了。
报错是因为,之前在onAfterBack事件中写过代码。
后来直接在设计页面删除了onAfterBack事件,但是源码中仍有listener,不知道为什么没有同步删除。
把源码中的listener删除掉就好了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-26 12:32 , Processed in 0.059781 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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