Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

Sharepoint 2013 workflow: Setting Task Status to Complete causes other tasks to disappear

I have two SP2013 workflows. The first one is on an item list, which generates approval tasks in another list for three approvers. The approval task list also has a SP2013 workflow which gets triggered when the task gets modified by a custom form. The custom form sets the Task Outcome to Approved/Rejected, but does not set the Task Status nor Task Completion %.

Once the first approver approves or rejects, the task workflow completes but the rest of the tasks get canceled and deleted. The Task outcome in the item list shows rejected. Not sure what is causing this unexpected behavior. Any help would be great. Thanks in advance.

I have attached the simplified workflow which outlines the issue

Stage:Item List Workflow

Log Starting Test Approval process to the workflow history list

Set Variable: ApproverGroup1 to G1
Set Variable: ApproverGroup2 to G2
Set Variable: ApproverGroup3 to G3

Start a task process with Variable: ApproverGroup1; Variable: ApproverGroup2; Variable: ApproverGroup3 (Task outcome to Variable: Outcome )

Log Task Outcome: [%Variable: Outcome%] to the workflow history list

Transition to stage

Go to End of Workflow

Stage:Task List Workflow

Log Starting Test Task Workflow... to the workflow history list

Set % Complete to 1

Set Task Status to Completed

Log Complete to the workflow history list

Transition to stage

Go to End of Workflow
question from:https://stackoverflow.com/questions/65950359/sharepoint-2013-workflow-setting-task-status-to-complete-causes-other-tasks-to

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...