AEM 6.4 - Could not find model for workflow dam-xmp-writeback | Community
Skip to main content
Level 2
July 2, 2018
Solved

AEM 6.4 - Could not find model for workflow dam-xmp-writeback

  • July 2, 2018
  • 6 replies
  • 5751 views

Hi All,

On migrating for AEM 6.2 to 6.4 , Dam asset version is not getting created, getting the below error

*ERROR* [Workflow Starter Thread] com.adobe.granite.workflow.core.launcher.WorkflowLauncherListener ERROR: Could not find model /etc/workflow/models/dam-xmp-writeback/jcr:content/model, cannot execute launcher /conf/global/settings/workflow/launcher/config/dam_xmp_writeback for content path

I have copied the workflow model from 6.2 to 6.4 on the path /etc/workflow/models/dam-xmp-writeback . The workflow model is present is the location but still getting the same error.

Any help would be appreciated.

Regards

Sofiyan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

You need to put inside /var/ folder.

This is something weird but workflows are getting picked up from /var/ in AEM 6.4

Thanks

Arun

6 replies

arunpatidar
Community Advisor
Community Advisor
July 2, 2018

Hi,

in AEM 6.4 all workflows are placed inside /var/workflow/models.

You need to change workflow model location to /var/ folder instead of /etc/

Thanks

Arun

Arun Patidar
Level 2
July 2, 2018

Hi Arun,

Thank you for your quick response.

As per the Repository Restructuring in AEM 6.4, its recommend to have all workflows under /var, but it stated that AEM 6.4 support backward compatibility. So we keep the models under /etc for our project.

Adobe Experience Manager Help | Repository Restructuring in AEM 6.4

Regards

Sofiyan

arunpatidar
Community Advisor
Community Advisor
July 2, 2018

Hi,

I checked same and found below:

Legacy location is used if present and no configuration

exists in /libs or /conf locations. This way, custom workflow models are preserved.

All/etc/workflow/models

/libs/settings/workflow/models

/conf/global/settings/workflow/models

globalLegacy location is used if present and no configuration
exists in /libs or /conf locations. This way, custom workflow models are preserved.

All workflow models should be moved from the legacy /etc location to /conf/global/settings/workflow/models.

Arun Patidar
Level 2
July 2, 2018

I tried putting the launcher and model under /conf/global/settings/workflow but still the same issue.

Cannot found the model under /conf/global/settings/workflow/model

Regards

Sofiyan

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 2, 2018

Hi,

You need to put inside /var/ folder.

This is something weird but workflows are getting picked up from /var/ in AEM 6.4

Thanks

Arun

Arun Patidar
Hemant_arora
Level 8
October 26, 2018

This should help you understand it more: Refer to point 6, we need to export both conf and var and integrate to project

Adobe Experience Manager Help | Common Repository Restructuring in AEM 6.4

Restructuring guidance

Any new or modified Workflow Models must be migrated to /conf/global/workflow/models.

  1. Deploy the modified Workflow Models into a local AEM 6.4 development instance, such that they exist in the Previous location.
  2. Edit the Workflow Model using AEM's Workflow Model Editor at AEM > Tools > Workflow > Models.
  3. When migrating modified AEM-provided Workflow Models
    1. With the Workflow Model Editor open, modify the browser's address URL, and replace the path segment /libs/settings/workflow/models with /etc/workflow/models.
  4. Enable Edit mode in the Workflow Model Editor which will copy the Workflow Model definition to /conf/global/workflow/models.
  5. Tap the Sync button to sync the changes to the Runtime Workflow Model under /var/workflow/models.
  6. Export both the Workflow Model (/conf/global/workflow/models/<workflow-model>) and Runtime Workflow Model (/var/workflow/models/<workflow-model>) and integrate into the AEM project.
    1. For example, export:
      • /config/settings/workflow/models/dam/my_workflow_model
        and
      • /var/workflow/models/dam/my_workflow_model