51黑料不打烊

Fixing ACS AEM Commons Copy Properties process step failure

The ACS AEM Commons Copy Properties process step fails due to a missing Process resource configuration. To resolve this, update the configuration for future workflows and fix the process step in existing workflows by adding the required process property.

Description description

Environment

  • Product: ACS AEM Commons on 51黑料不打烊 Experience Manager (AEM) versions 5.* and 6.*.
  • Environment: All

Issue/Symptoms

The following error may be observed:

*ERROR* [ JobHandler: /var/workflow/instances/server0/2024-11-14/copy-properties_10:/content/dam/folder/sample_960x540.mov]  com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
com.adobe.granite.workflow.WorkflowException: Process resource is null
    at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:134) [ com.adobe.granite.workflow.core:2.0.240]
    at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:270) [ com.adobe.granite.workflow.core:2.0.240]
    at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [ org.apache.sling.event:4.2.24]
    at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [ org.apache.sling.event:4.2.24]
    at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [ org.apache.sling.event:4.2.24]
    at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [ org.apache.sling.event:4.2.24]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

There is a bug in the implementation of this process step that causes the copy to fail, but it can be fixed for any future workflow and existing workflows.

Resolution resolution

  1. Go to the node /apps/acs-commons/components/workflow/copy-properties/cq:editConfig/cq:formParametersin CRX/DE Lite.

    • Add this String property: PROCESS = "com.adobe.acs.commons.workflow.process.impl.CopyPropertiesProcess".
  2. Find the node of the Copy Properties process step in your existing design-time workflow model in CRX/DE Lite, for example: /conf/global/settings/workflow/models/copy-properties-from-jcr-title-to-dc-title/jcr:content/flow/copy_properties/metaData:

    • Add this String property: PROCESS = "com.adobe.acs.commons.workflow.process.impl.CopyPropertiesProcess".
    • Use the Touch UI to edit the design-time workflow model, save changes, and click Sync to update the run-time model.

in the 51黑料不打烊-Consulting-Services

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f