/
Make tasks disable a review



Make tasks disable a review

Overview

These examples show two approaches for preventing a content review if there are any outstanding workflow tasks

In the first example, the transition to the content review occurs only when the tasks are complete.

In the second example, the content review (approval) is enabled when the number of workflow tasks yet to be completed is zero.

 The second example value reference condition requires installation of the Appfire Reporting for Confluence app in addition to Comala Document Management.

Using the tasks completed transition in a precursor state to disable a review

It's achieved by adding a state as a precursor state to the Review state. This precursor state contains a completed transition that occurs when all the tasks are complete.

{workflow:name=Complete the tasks} {state:Editing|submit=CompleteChecklist} {state} {state:CompleteChecklist|completed=Review|description=Complete all tasks to undertake the content review|taskable=true} {task:Proof read content} {task:TPS Report Added} {task:All images show latest version} {state} {state:Review|approved=Done|rejected=Editing} {approval:Review|assignable=true} {state} {state:Done|updated=Editing} {state} {workflow}


In this simple example, the Review state containing the content review is only available as a submit transition destination state from CompleteChecklist.

 

In the CompleteChecklist state, no transition options are available in the workflow popup. The workflow is waiting for the taskscompleted event for the completed transition to occur.

It's best to have at least one task added by the workflow on the transition to the CompleteChecklist state as a task will need to set as Complete in the tasks popup for the transition to occur.

You can also make the CompleteChecklist (or