I'm trying to include a custom workflow and launcher in my maven package. I've created an archetype using the aem-project-archetype 27 settings for AEM 6.5. I have created a custom workflow that has one step which is a process step. I have also added a launcher for this workflow as well. I then created a package with the settings for the workflow and launcher held in the /var/workflows/models/custom-workflow, /conf/global/settings/workflow/launcher/config/[workflow-id] and /conf/global/setting/workflow/models/custom-workflow. I then downloaded the package and expanded it and added the files to my project.
I added the paths to the filter.xml and set the mode to merge. Then when I build, all of the OOTB workflows are deleted and only my custom workflow is left.
Including the path all the way to the custom workflow name only generates build errors due to rules violations.
Does someone know of an example of including a workflow in a build package that I could review to correct mine?