...
For example, if you want to display a message when a page is updated, but only if that page has child pages, you could use the children
key of the Page Supplier. It will return
this key returns a list (a collection), which can be inspected using a Collection Supplier to determine the number of child pages via its
size
key.
...
This can
...
be used in a custom Condition on a
...
...
macro and also in the body of a
...
...
macro like so:
Code Block | ||
---|---|---|
| ||
{workflow:name=Check child pages} {state:Test|description=Update the page to test the trigger} {state} {trigger:pageupdated|state=Approved|@content:children > size@=!0} {set-message}Please check the content of the @content:children > size@ child page(s){set-message} {trigger} {workflow} |
...