Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Workflow Model Issues

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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. 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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. 

Avatar

Level 6

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.