How do you reliably deploy workflows from code? I have put workflow model data in both places /conf/global/settings/workflow/models and /var/workflow/models. I deploy these to the target system(s) but I find these odd things sometimes:
- New workflows don't show up in the Touch UI until I open them in Classic UI and save them.
- If I update the workflow in code and then deploy, It runs the old workflow steps even though I see the new steps in both classic and touch UI editors. The old steps are run until I manually click save from Classic UI or click Sync from Touch UI editor.
What is the recommended process for deploying new or updated workflows?
Should the jcr:isCheckedOut="{Boolean}false" be in the XML file that I deploy /var/workflow/models/my-model-workflow/.content.xml ?
Do we need to add a "compile" step to our deployment process, to make the updated workflow models usable?
I feel like I must be doing something wrong here, but I can find no documentation on how to deploy workflow models from codebase.