AEM workflow and AEM launcher

How to configure Launcher with AEM workflow in AEM cloud

Configuring AEM launcher with an AEM workflow in AEM as a Cloud Service, you can follow these steps:

  1. Design the Workflow Model: Using the AEM Workflow Model Editor, design your desired workflow model. Define the steps, participants, and actions involved in the workflow. Ensure that your workflow model is complete and ready for execution.
  2. Access the Launcher Configuration: Log in to the AEM Cloud Service author instance and navigate to the “Tools” menu. From there, select “Cloud Services” and then choose “Workflow Launchers” under the “Operations” section.
  3. Create a New Launcher: In the Workflow Launchers configuration, click on the “+ New” button to create a new launcher.
  4. Configure the Launcher: Specify the properties for the launcher, including:
    • Title: Provide a descriptive title for the launcher.
    • Path: Define the content path or resource type that will trigger the launcher. For example, “/content/mysite” or “myproject/components/page”.
    • Event Type: Select the event type that should trigger the launcher, such as “modify,” “create,” or “delete.”
    • Workflow Model: Choose the workflow model you designed in step 1 from the drop-down list.
  5. Save and Enable the Launcher: Save the launcher configuration and ensure that it is enabled by toggling the “Enabled” switch. Click on “Save” to apply the changes.
  6. Test the Configuration: Create or modify content that meets the trigger conditions set in the launcher configuration. The launcher should detect the event or condition and automatically initiate the associated workflow.
  7. Monitor Workflow Execution: Use the AEM Workflow console to monitor the execution of workflows. Track the progress of individual workflow instances, review task assignments, and access reports on workflow execution.
AEM workflow

AEM Workflow

An AEM workflow, in the context of Adobe Experience Manager (AEM), refers to a sequence of predefined steps or actions that automate content management processes within the AEM environment. It is a workflow engine built into AEM that allows organizations to create, manage, and execute workflows to streamline content creation, review, approval, and publishing processes.

AEM workflows are designed to facilitate collaboration among different stakeholders involved in content management, such as content authors, reviewers, editors, and approvers. Each stakeholder performs specific tasks within the workflow, following a predefined sequence of steps. Workflows can be customized to match the organization’s specific requirements and can be created using a visual interface provided by AEM, such as the Workflow Modeler.

The key features and capabilities of AEM workflows include:

  1. Automation: Workflows automate routine and repetitive tasks, reducing manual effort and ensuring consistency in content management processes. They can automatically trigger actions based on specific events or conditions, such as content creation, modification, or publishing.
  2. Task Assignment and Tracking: Workflows assign tasks to individuals or groups at each step, ensuring clear roles and responsibilities. Workflow participants can track the progress of tasks assigned to them and receive notifications for pending actions.
  3. Workflow Models: A workflow model serves as a template or blueprint for creating and executing workflows. It defines the sequence of steps, actions, and rules that govern the workflow. Workflow models can be customized and reused to streamline similar content management processes.
  4. Workflow Steps: Workflow steps represent individual actions or tasks within a workflow. AEM provides a set of predefined steps that cover common content management activities, such as content creation, review, approval, and publishing. Custom workflow steps can also be developed to cater to specific requirements.
  5. Workflow Routing and Rules: Workflows can include routing rules to determine the flow of content and decision points based on specific conditions. Routing rules allow for dynamic branching and conditional actions within the workflow, ensuring content follows the appropriate path based on predefined criteria.
  6. Workflow Instances and History: AEM tracks and maintains records of workflow instances, allowing users to monitor the progress, history, and status of ongoing or completed workflows. This provides transparency and visibility into the workflow execution and facilitates workflow management and troubleshooting.

AEM workflows are like helpful assistants that automate content management tasks, making your life easier in Adobe Experience Manager. By reducing manual work, minimizing errors, and streamlining collaboration, workflows save you time and effort. So, embrace the power of AEM workflows and enjoy smoother content management in Adobe Experience Manager!

Create AWS API Gateway To Upload Assets Into Amazon S3 Bucket

To create upload service Api through Amazon API Gateway to upload files into Amazon Simple Storage Service (Amazon S3) . Steps to create an Api.

  1. Create an IAM role for API Gateway
  2. Create and attach an IAM policy to the API Gateway role
  3. Create an API Gateway REST API
    1. Create an API to serve your requests
    2. Create resources for your API
    3. Create a PUT method for your API
  4. Configure parameter mappings for the PUT method
  5. Set up Binary Media Types for the API
  6. Deploy your API
  7. Upload an image file to S3 by invoking your API

Reference: https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-upload-image-s3/

GitHub – Support for password authentication was removed.

While accessing the GitHub repository (Eg: git pull or git push) through git bash I was getting below error.

Username for 'https://github.com': prahlad-dutta
Password for 'https://prahlad-dutta@github.com': 
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.

To fix this issue I found the solution on the forum, here is mentioned the steps to configure the authentication token for GitHub access.

GitHub has removed support for password authentication while working with GitHub repository through git bash from 13 August 2021. Need to use access token instead. Please refer https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

Solution

Create Personal Access Token on Github

  1. Open GitHub account.
  2. Go to Settings
  3. Click on Developer Settings
  4. Then click on Personal Access Token
  5. Click on Generate New Token button.
  6. Now fill the form and click Generate token.
  7. Now Copy the generated token.

For Windows OS

  1. Go to Credential Manager from Control Panel
  2. Click on Windows Credentials
  3. Now find git:https://github.com and click Edit
  4. Replace password with your Github Personal Access Token and save.

Reference:

https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to

AEM Launcher with AEM Workflow model

To configure a launcher with an AEM workflow in AEM 6.5, you can follow these steps:

  1. Design the Workflow Model: Using the AEM Workflow console, design your desired workflow model. Define the steps, participants, and actions involved in the workflow. Ensure that your workflow model is complete and ready for execution.
  2. Access the Launcher Configuration: Log in to AEM and navigate to the OSGi Configuration console, which is typically available at http://localhost:4502/system/console/configMgr.
  3. Create a New Launcher: In the OSGi Configuration console, search for “Day CQ Workflow Launcher” configuration and click on it. Then, click on the “New Configuration” button to create a new launcher.
  4. Configure the Launcher: In the launcher configuration, specify the properties as follows:
    • Title: Provide a descriptive title for the launcher.
    • Path: Define the content path or resource type that will trigger the launcher. For example, “/content/mysite” or “myproject/components/page”.
    • Event Filter: Specify the event or condition that should trigger the launcher. For example, “modify”, “create”, or “delete”.
    • Workflow Model: Select the workflow model you designed in step 1 from the drop-down list.
  5. Save and Enable the Launcher: Save the launcher configuration and ensure that it is enabled by checking the “Enabled” checkbox. Click on “Save” to apply the changes.
  6. Test the Configuration: Create or modify content that meets the trigger conditions set in the launcher configuration. The launcher should detect the event or condition and automatically initiate the associated workflow.
  7. Monitor Workflow Execution: Use the AEM Workflow console to monitor the execution of workflows. Track the progress of individual workflow instances, review task assignments, and access reports on workflow execution.

Refer the video to hands on how to configure Launcher with AEM workflow

Workflow Model and AEM Launcher