Versions Compared

Key

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


Excerpt
hiddentrue
nameRefined card image
Image Added
Info

Importing workflows

Find out how to Import Workflows

Content Expiry workflow

requires v6.0.0+

com.comalatech.workflow.repository.categories.label: General| Bundled|Document Management

-

...

Image Added

Builds on the Basic Approval workflow adding an Expired state after a set period of the approved page if no updates have occurred.

  • the expiry uses the value of a workflow parameter Due Date 

  • expiry period is reset as 5 months (ISO 8061 P5M) on each transition into the Approved state


Info

...

 This workflow is also bundled with the Comala Document Control app

...

Content Expiry Workflow

...

Code Block

...

{workflow:name=Content Expiry Workflow}
    {description}
        Builds on the Basic Approval workflow adding an Expired state after a set period of the page being approved with no updates.
    {description}
    {workflowparameter:Due Date|type=duration|edit=true|description=After this period pages will be set to 'Expired'}
        P5M
    {workflowparameter}
    {state:Review|approved=Approved|rejected=Rejected}
        {approval:Review this page|assignable=true}
    {state}
    {state:Approved|final=true|updated=Review|expired=Expired|duedate=@Due Date@|changeduedate=true}
    {state}
    {state:Expired|approved=Approved|rejected=Rejected|updated=Review|colour=#ff5630}
        {approval:Review this page|assignable=true}
    {state}
    {state:Rejected|approved=Approved|updated=Review|hidefrompath=true|colour=#ff5630}
        {approval:Review this page|assignable=true}
    {state}
{workflow}

This workflow includes a workflow parameter. When applying a space workflow

  • a parameter reference value may only be available for use by the workflow after a workflow process, such as a transition, occurs. For example, the initial state should not include the use of the parameter reference value for a due date or pre-assigned reviewers for approvals to avoid blocking your workflow. Alternatively, you can choose to Initialize states when applying a space workflow

  • the parameter value is retrieved from the space parameters dashboard on first application of a workflow to a page or blog post. This value may be different to the value used in the workflow template