如何以编程方式设置 Nintex Flexi 任务的任务结果(任务响应)?
有没有办法通过Sharepoint的网络服务设置Nintex Flexi任务完成?我们尝试更新“WorkflowOutcome”、“ApproverComments”和“Status”字段,但没有成功(实际上评论和状态都成功已更新,但是我找不到更新 WorkflowOutcome 系统字段的方法)。
我无法使用 Nintex Web 服务 (ProcessTaskResponse),因为它需要任务分配的用户凭据(登录名、密码、域)。
Asp.net 页面没有该信息,它只有 Sharepoint 管理员凭据。 一种方法是先将任务委托给管理员,然后调用 ProcessTaskResponse,但效率不高且容易出错。
在我迄今为止的测试中,对 WorkflowOutcome 字段的任何更新 (UpdateListItems) 都会自动将 Status 字段设置为“Completed”,将 PercentComplete 字段设置为“1”(100%),从而结束任务(并继续流程),但是 答案错误:总是“拒绝”,无论我尝试将其设置为什么。
Is there any way of set a Nintex Flexi task completion through Sharepoint's web services? We have tried updating the "WorkflowOutcome", "ApproverComments" and "Status" fields without success (actually the comments and status are successfully updated, however I can find no way of updating the WorkflowOutcome system field).
I can't use the Nintex Web service (ProcessTaskResponse) because it needs the task's assigned user's credentials (login, password, domain).
The Asp.net page doesn't have that information, it has only the Sharepoint Administrator credentials.
One way is to delegate the task to the admin first, and then call ProcessTaskResponse, but it isn't efficient and is prone to errors.
In my tests so far, any update (UpdateListItems) to the WorkflowOutcome field automatically set the Status field to "Completed" and the PercentComplete field to "1" (100%), ending the task (and continuing the flow), but with the wrong answer: always "Reject", no matter what I try to set it to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过此代码:(带有重定向的 try-cacth 块可以解决问题)
?
Did you try this code: (try-cacth block with redirection does the trick)
?