Resolve workflow runtime model persistence failure during sync in AEM as a Cloud Service
Adobe Experience Manager as a Cloud Service (AEMaaCS) may display Workflow Runtime model persistence failure when a web application firewall (WAF) rule blocks the POST requests required to synchronize workflow models. To resolve the issue, identify the blocked workflow request, update the WAF rules to allow legitimate Author sync requests, deploy the configuration, and synchronize the workflow model again.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS) (all environments)
Issue/Symptoms
- Synchronizing a workflow model in the AEM Workflow Model Editor displays: Workflow Runtime model persistence failure.
- The affected workflow model can’t be synchronized.
- The issue may affect multiple workflow models across different environments.
- The corresponding runtime workflow model under
/var/workflow/modelsmay become out of sync or corrupted.
Root cause
A web application firewall (WAF) rule blocks workflow model synchronization POST requests based on content-type headers or other criteria. As a result, the requests don’t reach AEM and the workflow runtime model isn’t updated.
Resolution resolution
Follow the steps below to resolve the issue:
- Attempt to synchronize the workflow model from the AEM Workflow Model Editor.
- Check network logs or browser developer tools for failed POST requests to endpoints such as:
/conf/global/settings/workflow/models/<model-name>/jcr:content.generate.json - Check for HTTP errors that indicate the request was blocked before reaching AEM.
- Review the WAF or CDN configuration for rules that validate content-type headers or block specific POST requests.
- Update the WAF rules to handle Author and Publish environments separately, ensuring that legitimate workflow synchronization requests from the Author environment are allowed.
- Save and deploy the updated WAF configuration.
- Synchronize the workflow model again from the AEM Workflow Model Editor.
- Verify that the synchronization completes successfully and that the corresponding runtime model is updated under:
/var/workflow/models/...