Expand my Community achievements bar.

SOLVED

Is it advisable to deploy to /var?

Avatar

Community Advisor

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

4 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 2

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

Avatar

Employee

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

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

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

Avatar

Community Advisor

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