- I found that following hotfix is required to be installed for Project Server 2010, If Workflow is enabled in Project center
open this link and search for the text
• Assume that a workflow for a project is successfully completed. When you try to open the project by using PWA after 60 days, you receive the following error message:
Unable to open the project. The workflow associated with the project has been terminated unexpectedly.
If we don’t want to install the hotfix immediately, I find the solution as follows
1)PWA->Server Settings-->Workflow and Project Detail Pages-->Change Or Restart the Workflow--> Modify the EPT of the ProjectClick on submit button in ribbon to move forward in worflow for every stage
This workflow creates the project site for Basic project plan EPT when workflow task is approved.(This is the correction done over the Branching workflow provided with Project Server 2010 SDK).
Workflow task is created using PSWApprovalTask Content type in Project Server Workflow Task List.
1)Configure Visual Studio for Project Server activities.
New Project SharePointWorkflow -Create site workflow
And enter the url of PWA site
2)Map workflow stages activities to actual Workflow stages in PWA SharePoint Site
3)Enable PSWEnableApprovalTask Content Type in Project Server Workflow Task List
4)Add the Web reference of Project.asmx and WssInterop.asmx to the Solution
5)Build and Deploy and Associate it Enterprise Project Type
For detailed description of above steps please visit CodePlex and download the source