This site has moved to the integrated Appfire documentation and information site for our apps.

From February 2024 this site is no longer updated.

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Importing workflows

Find out how to Import Workflows

Content Review workflow (3.1)

v.62 requires v3.0.2+

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

-

  • Marks a page as Active initially, then automatically transitions to For Review after a defined period of time

  • Authors can change from For Review to Active, Obsolete, or Requires Approval

Content Review workflow (3.1) markup

{workflow:name=Content Review Workflow|key=com.comalatech.sample.approvals.01.03}
	{description}
		Content review workflow that enforces mandatory page review after a set period of time. Active pages automatically transition to review state, and can either remain active if approved or set to obsolete if 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|assignable=true}
        {approval:Approve|user=<at:var at:name="assigner" />,<at:var at:name="assignee" />}
    {state}
    {state:Obsolete}
    {state}
    {trigger:taskassigned}
        {send-email:user=<at:var at:name="assignee" />|subject=<at:var at:name="task" /> has been assigned to you}
        Task <at:var at:name="task" /> on <at:var at:name="page" /> has been assigned to you by [~<at:var at:name="user" />].
        {quote}<at:var at:name="comment" />{quote}
        {pageactivity}
        {send-email}
    {trigger}
    {trigger:pageassigned}
		{send-email:user=<at:var at:name="assignee" />|subject=A document has been assigned to you}
        The document <at:var at:name="page" /> has been assigned to you by [~<at:var at:name="user" />].
        {quote}<at:var at:name="comment" />{quote}
        {pageactivity}
        {send-email}
    {trigger}
    {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}<at:var at:name="user" />{set-metadata}
    {trigger}
{workflow}

In later versions of Comala Document Management added variables such as <at:var at:name='page'> have been replaced with simpler value references. For example:

  • <at:var at:name='page'> is @pagetitle@ for the current page

  • <at:var at:name="user" /> is @user@ for current user

  • <at:var at:name="assignee" /> is @assigner@ for users who assigned reviewers to an approval

See: Content Review Workflow

  • No labels