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

  • Question

  • 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 values InProgressRequestSent, InProgressRunning, or InProgressWaiting in Workflow.StageStatus are allowed.

    Has anybody done thos before?

    Can someone advise?

    Thursday, February 21, 2013 10:47 AM

All replies