Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Wiki Markup
{repository-workflow:com.comalatech.sample.approvals.02|categories=bundled,general|chart=editorstaff.png|version=31990}
{repository-description:name=Editor and staff approval workflow}
* An Approvals Workflow with four stages: Draft, Ready, Reviewed and Published. 
* Staff edit a page, but it is not published until the Editor-in-Chief gives approval.
{repository-description}
    {workflow-body}
{workflow:name=Editor and staff approval workflow|key=com.comalatech.sample.approvals.02}
    {description}
        A Content Review Workflow that marks a page as 'Active' for now and that will automatically transition 'For Review' after a defined period of time.  Once expired to 'For Review', authors can change again to 'Active' or to 'Obsolete', or to 'Requires Approval' to be approved or rejected.
    {description}
    {workflowparameter:Expiration period|description=After this period pages will expire|type=duration}
        P7D
    {workflowparameter}
    {state:Active|expired=For Review|taskable=true|duedate=@Expiration period@}
    {state}
    {state:For Review|taskable=true}
    {state}
    {state:Requires Approval|approved=Active|rejected=Obsolete}
        {approval:Approve|assignable=true|user=@assigner@,@assignee@<at:var at:name="assigner" />,<at:var at:name="assignee" />}
    {state}
    {state:Obsolete|hidefrompath=true}
    {state}
    {trigger:statechanged|state=Active}
        {remove-label:for-review}
        {remove-label:obsolete}
    {trigger}
    {trigger:statechanged|state=For Review}
        {set-label:for-review}
        {remove-label:obsolete}
    {trigger}
    {trigger:statechanged|state=Obsolete}
        {remove-label:for-review}
        {set-label:obsolete}
    {trigger}
    {trigger:statechanged|state=Requires Approval}
        {set-metadata:assigner}@user@<at:var at:name="user" />{set-metadata}
    {trigger}
{workflow}

    {workflow-body}
{repository-workflow}

...