Make AEM 6.5 custom Workflow location in project specific folder | Community
Skip to main content
June 24, 2020
Solved

Make AEM 6.5 custom Workflow location in project specific folder

  • June 24, 2020
  • 2 replies
  • 3764 views

Hi ,

Default location for Workflow model is : /conf/global/settings/workflow/models/MyCustomWF. How can i make the WF model location inside my project folder i.e /conf/global/settings/workflow/models/<My Project>/MyCustomWF.

Thanks in advance.

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 vanegi

Hi Rajesh,

Custom workflow models can be kept under /conf/global/settings/workflow/models/<My Project>/MyCustomWF directly by copying from older location to new one, see [0].

Locations - Workflow Models

Workflow models are stored in the repository according to type:
  • Out-of-the-box workflow designs are held under the following path:
    /libs/settings/workflow/models/
     
    Do not:
    • place any of your custom workflow models in this folder
    • edit anything in /libs
    As any changes may be overwritten at upgrade or when installing hot-fixes, cumulative fix packs or service packs.
  • Custom workflow designs are held under:
    /conf/global/settings/workflow/models/...
    
    
    
  • Runtime workflow designs (both out-of-the-box and custom) are held under the following path:
    /var/workflow/models/
  • Legacy workflow designs (both design-time and runtime) are held under the following path:
    /etc/workflow/models/
     
    If these designs are edited using the AEM UI , then the details will be copied to the new locations.
     
     
     
     
    Thanks,
    Vaishali

2 replies

vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
June 24, 2020

Hi Rajesh,

Custom workflow models can be kept under /conf/global/settings/workflow/models/<My Project>/MyCustomWF directly by copying from older location to new one, see [0].

Locations - Workflow Models

Workflow models are stored in the repository according to type:
  • Out-of-the-box workflow designs are held under the following path:
    /libs/settings/workflow/models/
     
    Do not:
    • place any of your custom workflow models in this folder
    • edit anything in /libs
    As any changes may be overwritten at upgrade or when installing hot-fixes, cumulative fix packs or service packs.
  • Custom workflow designs are held under:
    /conf/global/settings/workflow/models/...
    
    
    
  • Runtime workflow designs (both out-of-the-box and custom) are held under the following path:
    /var/workflow/models/
  • Legacy workflow designs (both design-time and runtime) are held under the following path:
    /etc/workflow/models/
     
    If these designs are edited using the AEM UI , then the details will be copied to the new locations.
     
     
     
     
    Thanks,
    Vaishali
June 24, 2020

Hi Vanegi , Thanks for the reply.This article says about the location of the Default/custom/legacy workflows. What I would like to know that after creating workflow , I can see the below location for my WF in CRX :

/conf/global/settings/workflow/models/

I want to move my worklfow to <MyProject>  folder inside Model folder  i.e. /conf/global/settings/workflow/models/<MyProject>/. If I do via crx (cut+paste), it gives error on the Model.html page. So how should  I proceed to change the folder for my model?

July 6, 2020

I got the answer after multiple attempts. You just need to shift your workflow node in the folder(created by you) in CRX and go to touch ui and open the new workflow by directly hitting the Workflow MODEL URL and not navigating through the navigation Model tile. After having Model opened in the Edit mode and click on sync model. Now your workflow is in new folder created by you.

July 26, 2022

Hi,

 

I did the same as you mentioned but when I Start the workflow it gives me an error stating that the Workflow model does not exist: /var/workflow/models/<workflow-model>.

What should i do?

March 26, 2024

Check cq:generatingPage property value of a metaData of a model inside /var/workflow/model 

value of this property should point to the model inside /conf/global/settings/workflow/models