Workflow Model Issues | Community
Skip to main content
September 28, 2015
Solved

Workflow Model Issues

  • September 28, 2015
  • 2 replies
  • 950 views

There seems to be an issue with the workflow model getting saved. In spite of removing few process & participant steps, when the workflow is initiated, the workflow executes those deleted steps.

However after deleting the process & participant steps, the package containing this model was taken as a backup & then the existing model was deleted from CRXDE. Then the backup package was installed. Hence a new version for the model was created. But still on triggering of this workflow, the deleted steps are executed.

This issue is found in the AEM6.1 version.

In general, are these workflow models cached? If yes, where exactly this happens?

Best answer by BrianKasingli

Here's what I would do to resolve the issue...

  1. Install the latest AEM service pack.
  2. Double-check the correct version of the model after restoring from the backup package.
  3. Restart AEM to apply changes effectively.

Following these simple steps it should resolve your issue. 

2 replies

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 21, 2023

Here's what I would do to resolve the issue...

  1. Install the latest AEM service pack.
  2. Double-check the correct version of the model after restoring from the backup package.
  3. Restart AEM to apply changes effectively.

Following these simple steps it should resolve your issue. 

AmitVishwakarma
Community Advisor
Community Advisor
January 18, 2025

Hi @poornima_jagadi 

The issue likely arises from AEM caching workflow models. When changes are made (e.g., deleting steps), the cached model might still be executed.

Solutions:

  1. Clear Workflow Cache: Clear cached data in the OSGi console under SlingScriptCache.
  2. Rebuild the Workflow Model: After deleting the model, ensure the updated version is correctly uploaded and referenced.
  3. Stop Active Workflows: Check and stop any running workflow instances under /var/workflow/instances.
  4. Check CRXDE: Ensure proper deletion of the model in CRXDE and verify versioning is correct.
  5. Version Management: Make sure the correct workflow version is active after reinstalling the package.

These steps should help clear old references and resolve the issue.