最近在使用imc的接口时,根据提供的流程实例信息,执行流程实例。调用/som/processInstance/execute接口返回409错误,
"Error-Code":"85430";查看官方说明204(No Content):成功。404(Not Found):查不到 ID 对应的数据。
409(Confilict):失败,错误码说明如下:
85401:流程不存在;
85410:流程已经废弃;
85406:流程实例不存在;
85407:任务不存在;
85412:任务参数保存失败;
85428:执行流程失败;
85430:用户没有执行流程实例的权限;
85434:流程实例已经执行结束;
85436: 没有执行下一步任务的权限。
意思用户没有执行流程实例的权限,但是我用的是admin用户调用的,问什么会这样?
(0)
最佳答案
流程实例里面增加这个账号的执行权限,跟管理员不管理员没关系
(0)
您好: 该步骤的可操作用户,我已经把admin添加进去了,调用该接口传入的xml数据如下:<processInstance><processName>test11</processName><accountName>admin</accountName><currentTaskName>派单</currentTaskName><nextOutcome>创建工单-排障 - 排障</nextOutcome><title>test</title><needDefinedPrivilege>false</needDefinedPrivilege><needCheckCurrTaskPrivilege>true</needCheckCurrTaskPrivilege><needCheckNextTaskPrivilege>false</needCheckNextTaskPrivilege><currentTaskVariableList><processInstanceVariable><key>KQPopupSelect396267</key><value><![CDATA[model.ComputerName]]></value></processInstanceVariable><processInstanceVariable><key>TextField551427</key><value><![CDATA[model.IPAddress]]></value></processInstanceVariable><processInstanceVariable><key>TextField870346</key><value><![CDATA[model.CPUUsage]]></value></processInstanceVariable><processInstanceVariable><key>TextField293136</key><value><![CDATA[ model.MemoryUsage]]></value></processInstanceVariable><processInstanceVariable><key>TextField463959</key><value><![CDATA[model.HardDiskInfo]]></value></processInstanceVariable><processInstanceVariable><key>TextField624892</key><value><![CDATA[model.ReportPerson]]></value></processInstanceVariable><processInstanceVariable><key>TextField416133</key><value><![CDATA[model.FaultTime]]></value></processInstanceVariable><processInstanceVariable><key>TextField259852</key><value><![CDATA[model.DeviceAddress]]></value></processInstanceVariable><processInstanceVariable><key>TextField93886</key><value><![CDATA[model.TelephoneNumber]]></value></processInstanceVariable><processInstanceVariable><key>TextArea169244</key><value><![CDATA[ model.ProblemDescription]]></value></processInstanceVariable><processInstanceVariable><key>ListMenu424798</key><value><![CDATA[网络设备]]></value></processInstanceVariable><processInstanceVariable><key>FileUpload206916</key><value><![CDATA[{srcFileName}20171023154734655.zip{destFilePath}C:\Program Files\iMC\client\web\apps\imc\bpmtaskfile\1517275484023\upload_4018697293064723562.dat]]></value></processInstanceVariable></currentTaskVariableList><nextTaskAppendVariableList><processInstanceVariable><key>KQPopupSelect396267</key><value><![CDATA[model.ComputerName]]></value></processInstanceVariable><processInstanceVariable><key>TextField551427</key><value><![CDATA[model.IPAddress]]></value></processInstanceVariable><processInstanceVariable><key>TextField870346</key><value><![CDATA[model.CPUUsage]]></value></processInstanceVariable><processInstanceVariable><key>TextField293136</key><value><![CDATA[ model.MemoryUsage]]></value></processInstanceVariable><processInstanceVariable><key>TextField463959</key><value><![CDATA[model.HardDiskInfo]]></value></processInstanceVariable><processInstanceVariable><key>TextField624892</key><value><![CDATA[model.ReportPerson]]></value></processInstanceVariable><processInstanceVariable><key>TextField416133</key><value><![CDATA[model.FaultTime]]></value></processInstanceVariable><processInstanceVariable><key>TextField259852</key><value><![CDATA[model.DeviceAddress]]></value></processInstanceVariable><processInstanceVariable><key>TextField93886</key><value><![CDATA[model.TelephoneNumber]]></value></processInstanceVariable><processInstanceVariable><key>TextArea169244</key><value><![CDATA[ model.ProblemDescription]]></value></processInstanceVariable><processInstanceVariable><key>ListMenu424798</key><value><![CDATA[网络设备]]></value></processInstanceVariable><processInstanceVariable><key>FileUpload206916</key><value><![CDATA[{srcFileName}20171023154734655.zip{destFilePath}C:\Program Files\iMC\client\web\apps\imc\bpmtaskfile\1517275484023\upload_4018697293064723562.dat]]></value></processInstanceVariable></nextTaskAppendVariableList></processInstance>,帮忙看一下,是不是我的某个参数配置错了?谢谢
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
谢谢你的回答,原因是有个参数配错了,已解决