Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

💡 INTERNAL ONLY - DOT NOT SHARE WITH CUSTOMERS

Problem

Customer wants to have a Workflow solution where if 2 people are entered as reviewers, one releases, the other does notapproves, and one rejects, then the status of the page should return to draft.


Issue :
When there are TWO DIFFERENT APPROVERS in THE SAME STATEtwo different reviewers in the same State,
the state will not go back to the Draft state.

Solution

  1. To suit customer use case, they need to use partial=true option.
    When we use partial=true option in the trigger and set-state macro when one user rejects it, the page will transition to Draft state.

Info

Note
Content reviews

The approval parameter must be set on the trigger for these events to work.

By default, the trigger will only activate once all reviewers have agreed to Approve or Reject the content. To activate it for each individual Approve or Reject, set partial=true.For simple state transitions, you can also use the approved and rejected parameters on the state macro.

Macros: approval, state, approve-page, reject-page, approve-children, reject-children

Howto :

  1. Enable the "partial=true" option, and then establish the desired document state following a rejection.

    Code Block
    {trigger:pagerejected|approval=Review|partial=true}
          {set-state:Draft}   
      {trigger}

    references : Fast-track rejection