Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

How to set workflow status as 'Workflow Complted' through PSI?

$
0
0

Hi

We have custom workflow Project Server 2010 custom Workflow and custom Submit button on PDP. Evrything works fine but at the last stage workflow is not completing properly. We tried to use the setProjectStatusInformation and tried to pass projectstate as 6 for 'Workflow Completed' but it gives error.

workflowClient.SetWorkflowStageStatusInformation(_projGUID, _projectRow.STAGE_UID,"Completed",6, true); //

In 2013 Error Code says that we cannot set the stage status withing wokflow.

WorkflowInvalidStageStatusValue = 35112

The value of the workflow stage status is not valid. When you set the stage status within the workflow, only the valuesInProgressRequestSent, InProgressRunning, orInProgressWaiting in Workflow.StageStatus are allowed.

Has anybody done thos before?

Can someone advise?


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>