Is it advisable to deploy to /var? | Community
Skip to main content
Shubham_borole
New Participant
Aug 29, 2019 3:11 PM UTC
Solved

Is it advisable to deploy to /var?

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.
joerghoh
joerghohAccepted solution
Employee
Aug 29, 2019 4:56 PM UTC

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

4 replies

Shubham_borole
New Participant
Sep 19, 2019 3:05 PM UTC

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"/>

Translate
Employee
Sep 19, 2019 11:37 AM UTC

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

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

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

Translate
farahz913310
Level 2
Sep 19, 2019 3:02 AM UTC

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

Translate
joerghoh
joerghohAccepted solution
Employee
Aug 29, 2019 4:56 PM UTC

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

Translate