Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

OOTB workflow in skip list. How to enable ?

Avatar

Level 3

I'm curious to find out the property which enables an OOTB workflow to be used.

There is an OOTB process step and workflow to add dam asset size (dam:size). Invoking this on an asset is resulting in the below warning. Any idea where this is configured to be skipped ?

 

12.05.2022 00:47:17.163 [cm-p16597-e60753-aem-author-79755bffdb-62c4w] *WARN* [JobHandler: /var/workflow/instances/server1261/2022-05-11/adddamsize_5:/content/dam/wknd/orange-unicorn.png] com.adobe.granite.workflow.core.job.JobHandler Skipping workflow step com.day.cq.dam.core.process.AddPropertyWorkflowProcess which is on the skip list.  Continuing with the next step.

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @subsul1,

The behavior you have described is characteristic for AEM as a Cloud Service only. In general in AEMaaCS implementation of com.adobe.granite.workflow.core.job.JobHandler has changed a bit, reference to com.adobe.granite.workflow.skiplist.WorkflowProcessSkiplist which is responsible to control if certain processes will be run or skipped.

job-handler.jpg

 

 

 

 

 

 

The list of processes is hardcoded and it is not possible to add or remove specific dam related processes.

There is one way to control if com.adobe.granite.workflow.skiplist.WorkflowProcessSkiplist  will be used or not. This service relays on com.adobe.dam.asset.nui.feature.flag feature flag. Value of this flag depends on fact if you have Adobe Granite Access Token provider OSGI configuration with name starting with Asset Compute phrase.

  • If Adobe Granite Access Token provider OSGI configuration exist with name starting with Asset Compute phrase. Most of asset processing using processes that can be run via workflow will be skipped, this include Add dam size property (com.day.cq.dam.core.process.AddPropertyWorkflowProcess) process. However functionalities like Bulk Asset Importer will be available.
    In logs you will see warning in case specific process has been skipped.
  • If Adobe Granite Access Token provider OSGI configuration does not exist with name starting with Asset Compute phrase. All dam related process will be working as expected, however few additional asset related tools will not be available.

Solution

Assuming you would like to Add dam size property (com.day.cq.dam.core.process.AddPropertyWorkflowProcess) process works correctly follow below steps.

Please be aware that removing Adobe Granite Access Token provider will disable availability of some functionalities.

  1. Got to OSGi console (/system/console/configMgr), and find Adobe Granite Access Token provider and remove all the configurations (especially those with Asset Compute phrase in name).
  2. Go to crx/de and navigate to /apps/system/config. Remove any configuration that starts with com.adobe.granite.auth.oauth.accesstoken.provider - sometimes removing entries from OSGi level is not removing above configuration.
  3. Restart your AEM instance.
  4. During instance start observe error log, you should see below entry
    *INFO* [FelixStartLevel] com.adobe.cq.assetcompute.impl.NuiFeatureFlag No Nui config found for com.adobe.dam.asset.nui.feature.flag
    If it did not appear it means that Adobe Granite Access Token provider still exist, so maybe you will have to check configuration provided by your project or what is inside launchpad on OS level.
  5. Assuming you see above message in the logs, you should be able to successfully run Add Asset Size workflow.

Summarizing, above behavior seems to be expected. If you are using Asset Compute service standard workflows for asset processing does not make any more.

View solution in original post

3 Replies

Avatar

Community Advisor

Hi,

Which version of AEM are you using, this step is unsupported in AEMaaCS.

 



Arun Patidar

Avatar

Correct answer by
Community Advisor

Hi @subsul1,

The behavior you have described is characteristic for AEM as a Cloud Service only. In general in AEMaaCS implementation of com.adobe.granite.workflow.core.job.JobHandler has changed a bit, reference to com.adobe.granite.workflow.skiplist.WorkflowProcessSkiplist which is responsible to control if certain processes will be run or skipped.

job-handler.jpg

 

 

 

 

 

 

The list of processes is hardcoded and it is not possible to add or remove specific dam related processes.

There is one way to control if com.adobe.granite.workflow.skiplist.WorkflowProcessSkiplist  will be used or not. This service relays on com.adobe.dam.asset.nui.feature.flag feature flag. Value of this flag depends on fact if you have Adobe Granite Access Token provider OSGI configuration with name starting with Asset Compute phrase.

  • If Adobe Granite Access Token provider OSGI configuration exist with name starting with Asset Compute phrase. Most of asset processing using processes that can be run via workflow will be skipped, this include Add dam size property (com.day.cq.dam.core.process.AddPropertyWorkflowProcess) process. However functionalities like Bulk Asset Importer will be available.
    In logs you will see warning in case specific process has been skipped.
  • If Adobe Granite Access Token provider OSGI configuration does not exist with name starting with Asset Compute phrase. All dam related process will be working as expected, however few additional asset related tools will not be available.

Solution

Assuming you would like to Add dam size property (com.day.cq.dam.core.process.AddPropertyWorkflowProcess) process works correctly follow below steps.

Please be aware that removing Adobe Granite Access Token provider will disable availability of some functionalities.

  1. Got to OSGi console (/system/console/configMgr), and find Adobe Granite Access Token provider and remove all the configurations (especially those with Asset Compute phrase in name).
  2. Go to crx/de and navigate to /apps/system/config. Remove any configuration that starts with com.adobe.granite.auth.oauth.accesstoken.provider - sometimes removing entries from OSGi level is not removing above configuration.
  3. Restart your AEM instance.
  4. During instance start observe error log, you should see below entry
    *INFO* [FelixStartLevel] com.adobe.cq.assetcompute.impl.NuiFeatureFlag No Nui config found for com.adobe.dam.asset.nui.feature.flag
    If it did not appear it means that Adobe Granite Access Token provider still exist, so maybe you will have to check configuration provided by your project or what is inside launchpad on OS level.
  5. Assuming you see above message in the logs, you should be able to successfully run Add Asset Size workflow.

Summarizing, above behavior seems to be expected. If you are using Asset Compute service standard workflows for asset processing does not make any more.

Avatar

Level 3

@lukasz-m Thanks for the excellent explanation and accompanying solution.