Content Fragments workflows

This extension expands functionality by leveraging extension points and introducing the capability to initiate an AEM workflow for selected content fragments.

Extension overview

The extension enhances two AEM services: AEM Content Fragments Console and AEM Content Fragment Editor. It adds a button to the Action Bar for the Content Fragments Console and a button to the Header Menu for the AEM Content Fragment Editor.

When clicked, it opens a modal dialog through which you can initiate a workflow.

AEM Content Fragments Console:

AEM Content Fragments Console

AEM Content Fragment Editor:

AEM Content Fragment Editor

Workflows modal and workflow launching

Workflows Modal and Workflow launching

The modal dialog consists of several elements through which you can initiate a workflow:

To launch a workflow, you need to fill in all the required fields and click the Start Workflow button. This will initiate the workflow for each content fragment asynchronously. Each content fragment will have its own workflow process.

Working with references

Within the grid listing the content fragments, there are two additional columns: References and Referenced By along with the ability to mark these options for each content fragment in the list using checkboxes.

Notice: when selecting multiple content fragments and combining the selected options of References and Referenced By, workflows will be launched only once for each content fragment (the one selected and its children or parent reference, depending on the specified options).

For example, when selecting both parent and children content fragments and enabling the options References and Referenced By for them, only one workflow will be created for each content fragment, avoiding duplication of workflows and cyclic dependencies during workflows launching.

Learn about using references in Content Fragments

Result of running

After clicking the Start Workflow button, the initialization of starting the workflow with the selected parameters will begin. You will then see the result of the workflow process start and several links to AEM pages, where you can view the execution result of the launched workflow.

Result of running

Notice: the status of the workflow start will be displayed, but not the result of its completion, which occurs asynchronously in the background. To find out the final result of the workflow execution, you need to follow the links that will be displayed below the result grid.

Limitations

Extension source