Versions Compared

Key

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

...

Wiki Markup
{repository-workflow:dm.workflow|categories=sample,docmanagement|chart=qms-workflow.jpeg}
{repository-description:name=Quality Management System workflow}
{note}This workflow performs publishing to a different space, which requires our [Comala Publishing App|https://marketplace.atlassian.com/plugins/com.comalatech.remotepublishing].{note}

* This workflow implements a QMS workflow for document management.
* The workflow works in pages with the "qms_approval" label. The label cannot be removed (stickylabel).
{repository-description}
{workflow-body}
{workflow:name=Quality Management System|label=qms_approval|stickylabels=qms_approval}
    {description}
        Quality Management system workflow
    {description}
    {state:Draft|approved=In Approval|rejected=Obsolete}
        {approval:In Approval or Obsolete|credentials=2|assignable=true|group=controlled_documents_approvers|rejectlabel=Make Obsolete}
    {state}
    {state:In Approval|approved=Published|rejected=Draft|updated=Draft|taskable=true|colour=#6554c0}
        {approval:Approval|credentials=2|assignable=true|group=controlled_documents_approvers}
    {state}
    {state:Obsolete|updated=Draft|taskable=true|hidefrompath=true|colour=#ff5630}
    {state}
    {state:Published|final=true|approved=In Approval|rejected=Obsolete|updated=Draft}
        {approval:In Approval or Obsolete|credentials=2|assignable=true|group=controlled_documents_approvers|approvelabel=In Approval|rejectlabel=Make Obsolete}
    {state}
    {trigger:attachmentschanged}
        {set-state:Draft}
    {trigger}
    {trigger:statechanged|state=In Approval}
        {set-restrictions:type=Edit|group=confluence-users}
    {trigger}
    {trigger:statechanged|state=Draft}
        {remove-restriction:type=Edit|group=confluence-users}
        {remove-label:qms_obsolete}
        {set-message:style=error}{set-message}
    {trigger}
    {trigger:statechanged|state=Published}
        {publish-page}
    {trigger}
    {trigger:statechanged|state=Obsolete}
        {set-restrictions:type=Edit|group=confluence-users}
        {set-label:qms_obsolete}
        {set-message:style=error}This page is *obsolete*{set-message}
        {publish-page}
    {trigger}
{workflow}
{workflow-body}
{repository-workflow}

Draft state

  • Only members of the group controlled_documents_approvers can approve, using user+password. If I assign to members of that group, all them have to approve.
  • If approved, transitions to In Approval.
  • If rejected, transitions to Obsolete.
  • Page can be edited.

In Approval state

  • Same approval, only members of the group controlled_documents_approvers can approve, using user+password. If I assign to members of that group, all them have to approve.
  • Page cannot be edited.
  • If approved, transitions to Published.
  • If rejected, transitions to Draft.
  • Editions transition to Draft.
  • Tasks can be added.

Published state

  • The page is published to the target space using Comala Publishing.
  • Restrictions still apply.
  • Editions transition to Draft.
  • It could transition to In Approval or to Obsolete.

Obsolete state

  • A qms_obsolete label is added.
  • Page cannot be edited.
  • The page is published to the target space using Comala Publishing to transfer the new Obsolete state to the published space. Restrictions and label is copied to the page in the target space. 
  • Tasks can be added.
  • A message is displayed "This page is obsolete". 
    • An alternative to include a message also in the published page in the target space, is to use the macro include-segment.