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

QQ登录

只需一步,快速开始

楼主: shuaigej

[结贴] 批量流转的问题

[复制链接]

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-6-30 14:47:47 | 显示全部楼层
无标题2.jpg
不应该结束,task里也显示还需要下一节点,后台提示如下,也是在显示下一节点是businessActivity2,已标红。
2016-06-30 14:39:25 [SQL Time]sql 执行时间:2ms, exec KSQL: select SA_Task from SA_Task SA_Task where  SA_Task.sData1  like  'CEED3517A19844268AB2A32415168C51%'  and SA_Task.sAIStatusID='run'
  --> sql:SELECT  SA_Task.sID FROM SA_Task SA_Task  WHERE  (SA_Task.SDATA1 LIKE ?) AND (SA_Task.SAISTATUSID = ?)
--> binds:[CEED3517A19844268AB2A32415168C51%, run]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:1ms, exec KSQL: select SA_Task.sName, SA_Task.sProcess, SA_Task.sActivity, SA_Task.sFlowID from SA_Task SA_Task where SA_Task='8CEBC79D4802438D83B9A2216FBFD55B'
  --> sql:SELECT  SA_Task.SNAME AS sName, SA_Task.SPROCESS AS sProcess, SA_Task.SACTIVITY AS sActivity, SA_Task.SFLOWID AS sFlowID FROM SA_Task SA_Task  WHERE SA_Task.sID = ?
--> binds:[8CEBC79D4802438D83B9A2216FBFD55B]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:2ms, exec KSQL: select t.sFlowID, t.sProcess, t.sActivity, t.sName from SA_Task t where t=:task
  --> sql:SELECT  t.SFLOWID AS sFlowID, t.SPROCESS AS sProcess, t.SACTIVITY AS sActivity, t.SNAME AS sName FROM SA_Task t  WHERE t.sID =  ?
--> binds:[8CEBC79D4802438D83B9A2216FBFD55B]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:4ms, exec KSQL: select t,t.sCustomerID,t.sWithdraw,t.sStatusID,t.sActualFinishTime,t.sPlanName,t.sVariable,t.sProcessTemplateItemSequence,t.sSummary,t.sFlowID,t.sAIStatusName,t.sDistributeTime,t.sETField32,t.sExecutorPosName,t.sStatusName,t.sETField31,t.sCreatorFName,t.sEDField21,t.sCreatorOgnName,t.sEDField24,t.sEIField41,t.sEIField42,t.sEDField22,t.sEIField43,t.sEDField23,t.sEIField44,t.sETField34,t.version,t.sETField33,t.sExpectFinishTime,t.sExecutorPersonName,t.sData2,t.sTypeName,t.sExecutorOgnName,t.sData1,t.sData4,t.sCreatorDeptName,t.sData3,t.sActivityNames,t.sCreatorPosName,t.sAIID,t.sLock,t.sActivity,t.sExpectStartTime,t.sProcessTemplateID2,t.sENField13,t.sENField14,t.sPlanID,t.sActive,t.sActivityInTemplate,t.sSequence,t.sKindID,t.sProcessName,t.sExecutorOgnID,t.sImportanceName,t.sCreatorPersonID,t.sCURL,t.sENField11,t.sENField12,t.sCode,t.sHints,t.sCreatorOgnID,t.sExecutorNames,t.sParent,t.sEmergencyName,t.sESField03,t.sTypeID,t.sESField04,t.sESField05,t.sESField06,t.sESField01,t.sESField02,t.sContent,t.sProcess,t.sExecuteMode,t.sCreatorPersonName,t.sCreateTime,t.sLimitTime,t.sWarningTime,t.sTempPermissionID,t.sSourceID,t.sEURL,t.sImportanceID,t.sCreatorPosID,t.sLastModifyTime,t.sESField07,t.sESField08,t.sExecutorPosID,t.sCreatorDeptID,t.sExecutorPersonID,t.sExecuteTime,t.sEBField51,t.sEBField52,t.sExecutorFName,t.sEBField53,t.sEBField54,t.sCreatorFID,t.sEmergencyID,t.sRemark,t.sAIStatusID,t.sActualStartTime,t.sCustomerName,t.sExecutorFID,t.sProjectID,t.sResponsible,t.sFrontID,t.sPreemptMode,t.sExecutorDeptName,t.sAIActive,t.sExecuteMode2,t.sName,t.sRemindMode,t.sProcessTemplateID,t.sExecutorDeptID,t.sCatalogID,t.sShortcut,t.sActivityName,t.sProjectName from SA_Task t  where  t.sFlowID = :flowID
  --> sql:SELECT  t.sID, t.SCUSTOMERID AS sCustomerID, t.SWITHDRAW AS sWithdraw, t.SSTATUSID AS sStatusID, t.SACTUALFINISHTIME AS sActualFinishTime, t.SPLANNAME AS sPlanName, t.SVARIABLE AS sVariable, t.SPROCESSTEMPLATEITEMSEQUENCE AS sProcessTemplateItemSequence, t.SSUMMARY AS sSummary, t.SFLOWID AS sFlowID, t.SAISTATUSNAME AS sAIStatusName, t.SDISTRIBUTETIME AS sDistributeTime, t.SETFIELD32 AS sETField32, t.SEXECUTORPOSNAME AS sExecutorPosName, t.SSTATUSNAME AS sStatusName, t.SETFIELD31 AS sETField31, t.SCREATORFNAME AS sCreatorFName, t.SEDFIELD21 AS sEDField21, t.SCREATOROGNNAME AS sCreatorOgnName, t.SEDFIELD24 AS sEDField24, t.SEIFIELD41 AS sEIField41, t.SEIFIELD42 AS sEIField42, t.SEDFIELD22 AS sEDField22, t.SEIFIELD43 AS sEIField43, t.SEDFIELD23 AS sEDField23, t.SEIFIELD44 AS sEIField44, t.SETFIELD34 AS sETField34, t.VERSION AS version, t.SETFIELD33 AS sETField33, t.SEXPECTFINISHTIME AS sExpectFinishTime, t.SEXECUTORPERSONNAME AS sExecutorPersonName, t.SDATA2 AS sData2, t.STYPENAME AS sTypeName, t.SEXECUTOROGNNAME AS sExecutorOgnName, t.SDATA1 AS sData1, t.SDATA4 AS sData4, t.SCREATORDEPTNAME AS sCreatorDeptName, t.SDATA3 AS sData3, t.SACTIVITYNAMES AS sActivityNames, t.SCREATORPOSNAME AS sCreatorPosName, t.SAIID AS sAIID, t.SLOCK AS sLock, t.SACTIVITY AS sActivity, t.SEXPECTSTARTTIME AS sExpectStartTime, t.SPROCESSTEMPLATEID2 AS sProcessTemplateID2, t.SENFIELD13 AS sENField13, t.SENFIELD14 AS sENField14, t.SPLANID AS sPlanID, t.SACTIVE AS sActive, t.SACTIVITYINTEMPLATE AS sActivityInTemplate, t.SSEQUENCE AS sSequence, t.SKINDID AS sKindID, t.SPROCESSNAME AS sProcessName, t.SEXECUTOROGNID AS sExecutorOgnID, t.SIMPORTANCENAME AS sImportanceName, t.SCREATORPERSONID AS sCreatorPersonID, t.SCURL AS sCURL, t.SENFIELD11 AS sENField11, t.SENFIELD12 AS sENField12, t.SCODE AS sCode, t.SHINTS AS sHints, t.SCREATOROGNID AS sCreatorOgnID, t.SEXECUTORNAMES AS sExecutorNames, t.sParentID AS sParent, t.SEMERGENCYNAME AS sEmergencyName, t.SESFIELD03 AS sESField03, t.STYPEID AS sTypeID, t.SESFIELD04 AS sESField04, t.SESFIELD05 AS sESField05, t.SESFIELD06 AS sESField06, t.SESFIELD01 AS sESField01, t.SESFIELD02 AS sESField02, t.SCONTENT AS sContent, t.SPROCESS AS sProcess, t.SEXECUTEMODE AS sExecuteMode, t.SCREATORPERSONNAME AS sCreatorPersonName, t.SCREATETIME AS sCreateTime, t.SLIMITTIME AS sLimitTime, t.SWARNINGTIME AS sWarningTime, t.STEMPPERMISSIONID AS sTempPermissionID, t.SSOURCEID AS sSourceID, t.SEURL AS sEURL, t.SIMPORTANCEID AS sImportanceID, t.SCREATORPOSID AS sCreatorPosID, t.SLASTMODIFYTIME AS sLastModifyTime, t.SESFIELD07 AS sESField07, t.SESFIELD08 AS sESField08, t.SEXECUTORPOSID AS sExecutorPosID, t.SCREATORDEPTID AS sCreatorDeptID, t.SEXECUTORPERSONID AS sExecutorPersonID, t.SEXECUTETIME AS sExecuteTime, t.SEBFIELD51 AS sEBField51, t.SEBFIELD52 AS sEBField52, t.SEXECUTORFNAME AS sExecutorFName, t.SEBFIELD53 AS sEBField53, t.SEBFIELD54 AS sEBField54, t.SCREATORFID AS sCreatorFID, t.SEMERGENCYID AS sEmergencyID, t.SREMARK AS sRemark, t.SAISTATUSID AS sAIStatusID, t.SACTUALSTARTTIME AS sActualStartTime, t.SCUSTOMERNAME AS sCustomerName, t.SEXECUTORFID AS sExecutorFID, t.SPROJECTID AS sProjectID, t.SRESPONSIBLE AS sResponsible, t.SFRONTID AS sFrontID, t.SPREEMPTMODE AS sPreemptMode, t.SEXECUTORDEPTNAME AS sExecutorDeptName, t.SAIACTIVE AS sAIActive, t.SEXECUTEMODE2 AS sExecuteMode2, t.SNAME AS sName, t.SREMINDMODE AS sRemindMode, t.SPROCESSTEMPLATEID AS sProcessTemplateID, t.SEXECUTORDEPTID AS sExecutorDeptID, t.SCATALOGID AS sCatalogID, t.SSHORTCUT AS sShortcut, t.SACTIVITYNAME AS sActivityName, t.SPROJECTNAME AS sProjectName FROM SA_Task t  WHERE t.SFLOWID =  ?
--> binds:[C683AEC0924542A1BF0F4DB5E7C69BA2]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:1ms, exec KSQL: select tr.sTaskID1, tr.sTaskID2 from SA_TaskRelation tr where tr.sTaskID1=:tid0 or tr.sTaskID1=:tid1 or tr.sTaskID1=:tid2 or tr.sTaskID1=:tid3 or tr.sTaskID1=:tid4 or tr.sTaskID1=:tid5 or tr.sTaskID1=:tid6 or tr.sTaskID1=:tid7 or tr.sTaskID1=:tid8 or tr.sTaskID1=:tid9
  --> sql:SELECT  tr.STASKID1 AS sTaskID1, tr.STASKID2 AS sTaskID2 FROM SA_TaskRelation tr  WHERE  (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? ) OR (tr.STASKID1 =  ? )
--> binds:[029FD0589E5B46DDB5F719293007695E, B59C51D33DEC49B59C4D929436A35E58, BE98A843072F4B5D8B02EE34FA19A614, 0B0BE307FEA04DC8B0D2EEF931DDD6DF, 8CEBC79D4802438D83B9A2216FBFD55B, D339138856684CE79AC3A38DC6F8EBB0, 6E99431C4D1E49F0A80767B3CE0F82F2, 5EE4F30C49CA444491EBA3CADA6DA170, EE82ADD21D22416B8F403E70E6755845, C683AEC0924542A1BF0F4DB5E7C69BA2]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:1ms, exec KSQL: select t, t.sProcessTemplateID2, t.sProcess, t.sProcessInstanceID, t.sPlace, t.sFromActivity, t.sFromActivityInstanceID, t.sToActivity, t.sToActivityInstanceID, t.sValue, t.sActive from SA_TokenInstance t where t.sProcessInstanceID = :flowID
  --> sql:SELECT  t.sID, t.SPROCESSTEMPLATEID2 AS sProcessTemplateID2, t.SPROCESS AS sProcess, t.SPROCESSINSTANCEID AS sProcessInstanceID, t.SPLACE AS sPlace, t.SFROMACTIVITY AS sFromActivity, t.SFROMACTIVITYINSTANCEID AS sFromActivityInstanceID, t.STOACTIVITY AS sToActivity, t.STOACTIVITYINSTANCEID AS sToActivityInstanceID, t.SVALUE AS sValue, t.SACTIVE AS sActive FROM SA_TokenInstance t  WHERE t.SPROCESSINSTANCEID =  ?
--> binds:[C683AEC0924542A1BF0F4DB5E7C69BA2]
2016-06-30 14:39:26 [SQL Time]sql 执行时间:1ms, exec KSQL: select c.sContent from SA_ProcessControl c where c.sProcess='/jiaban/result/process/result/resultProcess' and c.sActivity='businessActivity2' and c.sOperatorID='mSg458o6WB6YcRi3olS' and c.sAction='advanceProcessAction' and (c.sProcessTemplateID2 IS NULL or c.sProcessTemplateID2 = '')
  --> sql:SELECT  c.SCONTENT AS sContent FROM SA_ProcessControl c  WHERE  (c.SPROCESS = ?) AND (c.SACTIVITY = ?) AND (c.SOPERATORID = ?) AND (c.SACTION = ?) AND ( (c.SPROCESSTEMPLATEID2 IS NULL) OR (c.SPROCESSTEMPLATEID2 = ?) )
--> binds:[/jiaban/result/process/result/resultProcess, businessActivity2, mSg458o6WB6YcRi3olS, advanceProcessAction, ]


回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-6-30 14:54:39 | 显示全部楼层
我90楼已经说了,我发的那个代码是直接在后端就流转的,前端不会弹出这个框
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-6-30 14:56:56 | 显示全部楼层
我知道,可是事实已经弹出了,所以我才问的,要是正常的,我怎么还发图配提示呢
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-6-30 15:01:44 | 显示全部楼层
弹出肯定是js中获取java中调用的不对

js中直接用一个按钮去调用这个java对应的action,不要再去调用process组件的流转查询或者流转的API
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-7-4 11:05:32 | 显示全部楼层
本帖最后由 shuaigej 于 2016-7-4 11:07 编辑

试了,提示:

Object [object Array] has no method 'toJson'
隐藏详细
TypeError: Object [object Array] has no method 'toJson' at toJson 提交过去的action为:
public static String batchAdvanceProcess1(List<String> tasks, List<String> tasksid){
                        for (String task : tasks){
                                if(task!="")
                               
                                {
                                 ProcessUtils.advanceProcess(task, null);
                                }
                        }
                        return "1";
                }

现在确认tasks和tasksid传过去了,但是为什么会这样提示呢?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-7-4 11:20:21 | 显示全部楼层
action调用的时候具体怎么写的?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-7-4 12:29:00 | 显示全部楼层
var params1 = new biz.Request.ActionParam();
              params1.setList("tasks",rows_task2);
              params1.setList("tasksid",rows_id2);
              biz.Request.sendBizRequest({
                            dataType: "application/json",
                            action: "batchAdvanceProcess1Action",
                            "context" : this.getContext(),
                           parameters: params1,

                           callback: function(result) {
                                if (result.state) {

                            stand11=result.response;  

                                                  }
                                                      }
                                           })


回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-7-4 13:08:53 | 显示全部楼层
rows_task2具体怎么来的?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-7-5 14:38:46 | 显示全部楼层
是先获取的字符串,以;间隔,然后split(";")
字符串是:

无标题.jpg
无标题.jpg
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-7-5 14:41:20 | 显示全部楼层
js和java中具体调试跟踪看看具体到什么地方报错的
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 18:07 , Processed in 0.057856 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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