Saving a workflow model as code | Community
Skip to main content
New Participant
February 8, 2023
Solved

Saving a workflow model as code

  • February 8, 2023
  • 2 replies
  • 1363 views

Hi,

I created a Workflow Model in my local AEM instance and I would like to know if I can pull it with IntelliVault inside the code and store it in order to later do a deployment on AEM aa Cloud.

Is that possible or do I need to re-create the model in the cloud instance?

Thank you.

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 Mayank_Gandhi

@ana-ensemble yes you need to add to filter

2 replies

Mayank_Gandhi
Employee
February 8, 2023

@ana-ensemble yes you should be able to pull from the local instance to code by updating filters and once it's part of the code you can deploy it using the pipeline to CS.  I have attached WF best practices too

 

https://jackrabbit.apache.org/filevault/filter.html

 

https://github.com/AdobeDocs/experience-manager-65.en/blob/main/help/sites-developing/workflows-best-practices.md

New Participant
February 9, 2023

Hi both,

Thank you for your quick replies!

I did change the filters to include this path:

/conf/global/settings/workflow/models/my-custom-workflow

And used IntelliVault to pull it under ui.content which was successful. 

But the Workflow Model doesn't appear in CS after a successful deployment. I believe I also need to add this path to the filters and code 

/var/workflow/models/my-custom-workflow

but I am not sure where in the project structure this var folder should be.

Can you let me know what I am missing?

 

Thank you in advance!

 

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
February 10, 2023

@ana-ensemble yes you need to add to filter