locked
OOB Approval Workflow does not change the document "Approval state" after approval. RRS feed

  • Question

  • Hi,

    I have a blank site collection and a document libraray which has Require content approval checked and no versioning in the top level site.

    I have a OOB Approval workflow "My_Approval_workflow" which is set to be triggered for both item created and item changed conditions, and use this workflow for content approval checked.

    When I add an item to de library , workflow is triggered and a column named "My_Approval_workflow" is added to the library columns and shows "In Progress" , the "Approval status" column shows "Pending".

    When I appove the document through tasks list , "My_Approval_workflow" column shows "Approved" but the "Approval status" column still shows "Pending".

    Below is the workflow history:

     

    Workflow History


    The following events have occurred in this workflow.

     

    Date Occurred

    Event Type

    User ID

    Description

    Outcome

     

    1/25/2011 8:48 AM

    Error

    System Account

    The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.

     

     

    1/25/2011 8:48 AM

    Error

    System Account

    The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.

     

     

    1/25/2011 8:48 AM

    Workflow Initiated

    contoso\Administrator

    Approval was started. Participants: Özlem Arun

     

     

    1/25/2011 8:48 AM

    Task Created

    contoso\Administrator

    Task created for Özlem Arun. Due by: 1/1/0001 12:00:00 AM

     

     

    1/25/2011 8:50 AM

    Error

    System Account

    The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.

     

     

    1/25/2011 8:50 AM

    Task Completed

    Özlem Arun

    Task assigned to Özlem Arun was approved by Özlem Arun. Comments:

    Approved by Özlem Arun

     

    1/25/2011 8:50 AM

    Workflow Completed

    contoso\Administrator

    Approval was completed.

    Approval on 34334 has successfully completed. All participants have completed their tasks.

     

     

    Any ideas?

    Thank you.


    Facimus
    Tuesday, January 25, 2011 6:44 AM

Answers

  • Hi,

    When you alter the OOB Approval workflow in SPD, Approval state changes to "Approved"

    Steps are:

    1. Create a copy of original approval workflow.

    2. Open the new workflow and click "Change the behaviour of a single task"

    3. Go to step named "When a task completes" add the line "Set content approval of item that the task process running on to Approved (Run as the workflow author) just after the line "If Current Task:Outcome equals approved"

    4. publish the workflow.

    Approval state is set  to "Approved".

    Thx.


    Facimus
    • Marked as answer by Facimus Tuesday, January 25, 2011 11:28 AM
    Tuesday, January 25, 2011 11:28 AM

All replies

  • Hi,

    When you alter the OOB Approval workflow in SPD, Approval state changes to "Approved"

    Steps are:

    1. Create a copy of original approval workflow.

    2. Open the new workflow and click "Change the behaviour of a single task"

    3. Go to step named "When a task completes" add the line "Set content approval of item that the task process running on to Approved (Run as the workflow author) just after the line "If Current Task:Outcome equals approved"

    4. publish the workflow.

    Approval state is set  to "Approved".

    Thx.


    Facimus
    • Marked as answer by Facimus Tuesday, January 25, 2011 11:28 AM
    Tuesday, January 25, 2011 11:28 AM
  • Could someone please make step 3 more clear what I am supposed to write there, didn't get it to work I set the variable EnableContentApporval to Yes?

    Thanks for any help..

    //Martin

    Thursday, May 31, 2012 7:37 AM