Tuesday, April 4, 2023

Adobe aem workflow

Workflow in Adobe AEM





 
Workflow

AEM Workflows allow you to automate a series of steps that are performed on (one or more) pages and/or assets. Workflow allows us to keep track of who made modifications to the pages and when or what they were changed., The workflow created the versions of the pages so any time we can compare our new and old changes on pages and we can revert the versions if required.

It's the finest method AEM offers for maintaining content/assets in an automated manner.


Creating a Workflow

To create a workflow first you should create a workflow model,

Create Workflow Model:
You create a workflow model to define the series of steps executed when a user starts the workflow. To create a new workflow with the editor:

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

  2. Select Create, then Create Model.

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

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

Select your new workflow, then use Edit to open it for configuration:

6. When you first create a new workflow model it contains:


  • 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.

  • 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.

  • Now we are deleting all steps between Flow Start and Flow End.

  • Drag the appropriate step(s) that is required to the required location in the model. You can add unlimited steps.

  • I will add two steps one participant step, and the Second, create a version.

  • when anyone will make changes on that page where we will apply this workflow model then the participant step will notify that user that we will add in the participant step about changes on pages.

  •  After approval of the participant creates version step will create the version of the page with new changes.








Configuring a Workflow Step

You w model and select Configure from the component toolbar.

  • Double-click on the step.

Configure the Step Properties as required; the properties available Configure and customize the behavior of a workflow step using the Step Properties dialogs.

  1. To open the Step Properties dialog for a step either:

  • Click/tap the* *step in the workflow

  1. le depend on the step type,
    * In my case I am adding the user to the participant setup that will approve this step.

  1. Confirm your updates with the tick.

  2. Confirm the changes with Sync (editor toolbar) to generate the runtime model




Apply Workflow model on Project:

Luncher :

In Luncher we will select the project on which we want to apply our workflow model.

The Workflow Launcher monitors changes in the content repository.

So I am going to configure Launcher in such a way that my workflow will be initiated on any changes in my project.


Launcher Configuration


  1. Navigate to the Workflow Launchers console using Tools, Workflow, then Launchers.

  2. Select Create, then Add Launcher to open the dialog:

  3. Configure the Luncher according to the bottom Image


In Launcher you will find Luncher is applied to the required project



Working on Project to Test Applid Workflow.
I am logged in AEM as Developer and I have done some changes on any page of the Project.






  • I the bottom Image you can check page analytics the page is modified by the Developer

  • On the Left side under the Timeline you can check Test Modal is initiated, 





Participating in Workflows

According to Our workflow model, it required admin approval first, then the model will create the page version, Let’s login with the Admin account and check is he has any notification about approval.


  • I logged in as Admin and I have a notification about the Approval 

  • By clicking on Payload Admin can check what changes are done on which page,

  • Click on the Complete Button there will be a popup, admin can add his comment here and can check what will be the next setup of this workflow modal and Click Ok

     

  • According to our workflow modal, the new version of the page will be created after admin approval.

  • I logged in again as a developer and if you check in the bottom image the Approval setup is completed and the New Version of the page is created.





 

Run Workflow on specific Page Manually.


We can run a workflow manually on any page in Project.
Follow the bottom image:



Next click on create button then in the timeline you can check the workflow started by the developer on a specific page.


Login in as Admin you will find a notification there will be the same payload and complete button next you can follow (Participating in Workflows)  I already have explained at the top.



 


Check the History of Workflow Models

Instances:
In instances, the admin can check all the workflow models that are in a running state yet and not completed.


Archive:
In Archive, the admin can check the list of all the workflows that are successfully completed 


Failures:
In Failures, the admin can check all the workflows that are failed.


Previous Post
Next Post

post written by:

0 comments: