There is a WCM feature, which automatically terminates workflows with a payload that matches an activated path.
If you have a payload such as the published page, then the workflow gets aborted.
Otherwise, if you have multiple steps in your workflow and one of them is a publish/activate step, then the workflow runs it until the publish/activate step is executed and the following step gets terminated.
This feature is optional.
To disable it, perform the following steps:
- Go to
http://aem-host:port/system/console/configMgr/com.day.cq.wcm.workflow.impl.WcmWorkflowServiceImpl. - Clear the Terminate on
activate check box or add the model name to the Terminate exclusion list such as /etc/workflow/models/custommodelname /jcr : content/model. - Click Save.