Versions Compared

Key

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


Excerpt
hiddentrue

Image Added


Info

Importing workflows

Find out how to Import Workflows


Content Expiry workflowrequires 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.


Code Block
titleContent Expiry Workflow
collapsetrue
{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}