Is it advisable to deploy to /var? | Community
Skip to main content
Shubham_borole
Community Advisor
Community Advisor
August 29, 2019
Solved

Is it advisable to deploy to /var?

  • August 29, 2019
  • 4 replies
  • 2270 views

We are trying to deploy a workflow to the instance via code and the changes are withing "/conf/global/settings/workflow/models" and "/var/workflow/models". For the changes under /var and /conf, I have added filter to filter.xml. Is it advisable to deploy such changes through code? When I tried the changes seem to go in fine to the instance.

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 joerghoh

In this specific case, I would deploy to /var.

4 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
August 29, 2019

In this specific case, I would deploy to /var.

farahz913310
Level 2
September 19, 2019

Hi ,

I am also trying to add var node at code level.

Did it work for you.

I added a  /var/workflow/model/mymodel in filter.xml. Is this the right way

Thanks

Adobe Employee
September 19, 2019

You need to add two locations into a filter.xml:

    <filter root="/conf/global/settings/workflow/models/mymodel"/>

    <filter root="/var/workflow/models/mymodel"/>

Shubham_borole
Community Advisor
Community Advisor
September 19, 2019

yes it seems to work fine.  I added below to ui.content, filter.xml, matches to what berliant​ has mentioned. The "mode" is need basis.

<filter root="/var/workflow/models/customwf" mode="replace"/>

<filter root="/conf/global/settings/workflow/models/customwf" mode="replace"/>