Expand my Community achievements bar.

SOLVED

Saving a workflow model as code

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@anas-ensemble yes you need to add to filter

View solution in original post

4 Replies

Avatar

Employee Advisor

@anas-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...

Avatar

Level 1

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!

 

Avatar

Correct answer by
Employee Advisor

@anas-ensemble yes you need to add to filter