Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Workflow Model is not updating on change

Avatar

Level 3

Hi There,

 

I have developed custom workflow and installed it and it worked fine. I synced workflow model xml into codebase, made some changes (removed some steps and transition etc) and pushed it to AEM CaaS. But to surprise, AEM workflow is still using old workflow xml instead of using new one. Just FYI, I did not just update it manually but via local SDK and synced the code back. It changed `lastModified` and other properties as well, so it should recognize it as changed on deployment but it did not. On `/var/workflow/models` it still shows old nodes and transitions 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@bagwanpankaj 

Please assure that you have synced following to your codebase:

  •  /conf/global/settings/workflow/models/your-wf
  • /var/workflow/models/your-wf

 

Verify filter.xml. It should be set to replace for both of these paths

 

Couple of things:

  • The already running workflow instances would not pick the new workflow. You would need to initiate it on a different asset/page to test the latest changes.
  • Assure that the asset/page you are using doesn't have an old wf instance in execution. 

 


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @bagwanpankaj,

Ideally, The source of truth is in /conf/..., usually version-controlled and deployed via code. When you deploy a workflow model XML (e.g. under /conf/global/settings/workflow/models/xyz), AEM doesn’t automatically re-sync that to /var/workflow/models unless the model is either:

  • Modified through the UI

  • Programmatically re-synced

  • Explicitly deleted from /var before deployment (not ideal)


Santosh Sai

AEM BlogsLinkedIn


Avatar

Correct answer by
Community Advisor

@bagwanpankaj 

Please assure that you have synced following to your codebase:

  •  /conf/global/settings/workflow/models/your-wf
  • /var/workflow/models/your-wf

 

Verify filter.xml. It should be set to replace for both of these paths

 

Couple of things:

  • The already running workflow instances would not pick the new workflow. You would need to initiate it on a different asset/page to test the latest changes.
  • Assure that the asset/page you are using doesn't have an old wf instance in execution. 

 


Aanchal Sikka

Avatar

Administrator

@bagwanpankaj Did you find the suggestions helpful? If you need more information, please let us know. If a response resolved your issue, kindly mark it as correct to help others in the future. Alternatively, if you discovered a solution on your own, we'd appreciate it if you could share it with the community. Thank you !



Kautuk Sahni