Skip to main content

Experience Management

Workflow Model in AEM

Istock 1361510800

Workflow Model

A Workflow Model represents a definition (model) of a workflow. It is made of Workflow Nodes and Workflow Transitions.

Workflow models in Adobe Experience Manager (AEM) are used to define the series of steps executed when a user starts a workflow, and it is used for the automatic processing of content as well as facilitating governance and processes requiring human decision-making. Workflows enable you to automate processes for managing resources and publishing content in your AEM environment.

AEM Workflow provides a way to collaborate, manage, and process content in AEM.

We can create a workflow model to define the steps executed when a user starts the workflow.

The workflow component could specify process arguments to the code; it always has a start and end node.

AEM Workflow Model Editor

The AEM Workflow Model Editor is a tool that allows you to create and edit workflow models.

Workflows implement business processes in AEM, and the workflow model is defined as a task. It is divided into two main categories.

  1. Scheduled Workflow – This uses AEM content.
  2. Manual Workflow – This retrieves content from a business process (e.g., content review workflow).

Steps to Create a Workflow

  1. The steps, Flow Start and Flow End. These represent the beginning and end of the workflow. These steps are required and cannot be edited/removed.
  2. An example Participant step is named Step 1. This step is configured to assign a work item to the workflow initiator. Edit or delete this step, and add steps as required.
Workflowm1

Fig: New Workflow Creation

Steps to Create a Workflow with the Editor

  1. Open the Workflow Models console; via Tools, Workflow, Models, for example, https://localhost:4502/aem/workflow

    Workflowm2

    Fig: AEM Tools

  2.  Select Create, then Create Model.

    Workflowm3

    Fig: AEM Workflow Models Console

  3. The Add Workflow Model dialog appears. Enter the Title and Name (optional) before selecting Done.

    Workflowm4

    Fig: Workflow model Author component

  4.  The new model is listed in the Workflow Models console.

    Workflowm5

    Fig: AEM Workflow Models Console

How to Edit/Update the Workflow Model

  1. Select a workflow and click Edit.
  2. Check the workflow steps that represent work from the workflow model.
  3. Validate Content – Used to validate a workflow payload.
  4. Publish Content – Copies content to an AEM publication for immediate publishing.

    Validateandpublish

    Fig: Workflow model author page

  5. Edit the workflow model that has settings for the workflow model and its entities.

    Wfconfig

    Fig: Workflow model page property

  6. Start and run the workflow model and synchronize and publish the workflow model.

    Createwf

    Fig: Publish Workflow model

We can apply more than one workflow to a page.

  1. We can implement any workflow (that you have access to as defined by your AEM administrator).
  2. Optionally, a title that helps identify the workflow instance in a user’s Inbox.
  3. Workflow payload, it can be one or more pages.

Apply Workflow to a Page

  1. Navigate and select the desired page.
  2. You can now select a workflow from the Create option in the toolbar.

    Create

    Fig: AEM author page

  3. Select the created workflow model, add a workflow title, and click the Next button.

    Details

    Fig: Create workflow

  4. Add content and click the Create button.    Addcontent
  5. We can also start the workflow from author mode. Go to Author Page > Select Work to start workflow; Add details and click Start Workflow. It will start directly from the AEM Site Editor.

    Start

    Fig: Start Workflow

  6. Click on complete and complete the workflow.

    Complete

    Fig: Complete Workflow

Conclusion

By understanding workflows, we can create a new workflow model. This gives you the flexibility and control to create custom workflows that meet the specific needs and scenarios of your business.

Workflows are a way to organize and automate tasks to achieve a specific goal. This helps you ensure content quality and consistency.

This gives you the flexibility and control to create custom workflows that fit the specific needs and scenarios of your business.

The workflow template editor allows us to define steps, activate the workflow, and update the workflow according to specific needs.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Ashish Kirme

Ashish Kirme is Senior Technical Consultant at Perficient GDC Nagpur; he has more than 8 years of experience (3 yr. in AEM). Experience in Manual and Automation testing; also worked as QA lead for offshore team. He likes to learn about new Automation technologies.

More from this Author

Follow Us
TwitterLinkedinFacebookYoutubeInstagram