none
Workflow RRS feed

  • Question

  • Hi;

    How to implement Reject Activity in approval workflow using projec sever workflow for pwa site.


    Neeraj
    Monday, November 21, 2011 9:42 AM

All replies

  • Hi Neeraj,

    In a Project Server Workflow, when you get the results of the Approved or Reject you have to do like this:

     if (task.TaskResults["Approved"] != null)
                {
                    e.Result = true;
                    isApproved = true;
                  
                }
                else
                {
                    e.Result = false;
                    isApproved = false;
                }

    After, you have to create an IfElse Activity and control the value of the boolean isApproved. With that you can implement the Rejected case.

    Kind regards


    Miguel Soler
    Monday, November 21, 2011 10:31 AM
  • Hi,

    The Project Server 2010 SDK (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=15511) includes a code sample for the Branching Workflow that ships out of the box With Project Server. That workflow includes an approval / reject stage as I recall.

    Hope this helps,


    Alex Burton
    www.epmsource.com | Twitter
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    Monday, November 21, 2011 10:36 AM
    Moderator
  • DM Dynamic Workflow is free and you can just deploy it with PowerShell, then create the workflow via the PWA Site Settings > Workflow Settings section.

    Its nice and easy as it has forms, and you can set the approvers you want and you can even say everyone needs to approve it, majority needs to approve it or just one person needs to approve it. (or a project group if that is better).


    Rob Hardy
    Monday, November 21, 2011 4:09 PM