This example shows a little trick for preventing a content review if there are any outstanding workflow tasks.
You must install the Reporting for Confluence app in addition to Comala Workflows.
It's achieved using a condition on the
When this workflow reaches the Review state, a single task is added. Only once that task is complete can reviewers Approve or Reject the content.
Note: People can still be assigned to the review even if there are tasks, but they cannot Approve or Reject until the tasks are complete.
How it works
Let's take a look at the condition:
Here's how that works:
- The content between the two
@symbols is a Value Reference.
workflow:indicates we are querying the Workflow Supplier
tasksindicates we want to access the tasks object within the supplier – it provides information about all the tasks on the current page or blog post
>indicates we want to query an attribute on the
tasksobject, in this case the
sizeattribute which tells us how many tasks there are
- We then equate that to a number, in this case
We could set it up so that the review is only enabled if there are one or more tasks by changing the condition to:
Adding the exclamation mark means "not", so this condition is requiring that "number of tasks is not zero".