Purging of completed translation projects after a period of time in aem 6.5 | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ManviSharma

Hi,

 

To purge completed translation projects in AEM 6.5, you can create a custom workflow process that identifies and deletes projects based on specific criteria (e.g., completion status and date). Schedule this workflow to run periodically using AEM's workflow launcher. This approach allows for easy automation and customization based on your requirements.

3 replies

yuriy_shestakov
Level 3
July 18, 2023

Hi! 

 

If I am not mistaken, there's nothing that you can do with the translation projects 😞

However, you can archive old translation jobs.

So you can create one translation project, then always add new jobs to it instead of creating a new project, then archive those jobs once the translation work is finished.

As that "Archive" button exists there for a job, I suppose the archive operation can be automated somehow, but I've never done this.

Removing incorrect translation projects would be an excellent addition to the AEM, let's wait for what the Adobe guys answer...

Tanika02
Level 7
July 18, 2023

Hello @madhuyadawad - 

 

In AEM 6.5, there are no out-of-the-box (OOTB) mechanisms specifically designed to automatically purge completed translation projects after a period of time. However, you can achieve this via some custom workflows.

 

  • Create a custom workflow in AEM that targets the translation project content structure. This workflow will handle the deletion of completed translation projects.
  • Configure a Workflow Launcher that triggers the custom workflow on a specific event. For example, you can set it to trigger when a translation project reaches a "Completed" status or after a certain time has passed since completion.

         OR

  •  If you want to purge projects after a specific period, you can include a time-based condition in the workflow to check the completion date and compare it against the desired timeframe.

 

https://experienceleague.adobe.com/docs/experience-manager-64/administering/introduction/tc-manage.html?lang=en 

 

ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
July 18, 2023

Hi,

 

To purge completed translation projects in AEM 6.5, you can create a custom workflow process that identifies and deletes projects based on specific criteria (e.g., completion status and date). Schedule this workflow to run periodically using AEM's workflow launcher. This approach allows for easy automation and customization based on your requirements.

Level 2
July 18, 2023

Hi,

 

Can you please provide any reference links for the above solution.

yuriy_shestakov
Level 3
July 19, 2023

Yea, I have just checked, there does exist a delete button for a translation project, I didn't know that 🙂 so it's possible to do the same using API / Workflows. 🕺

I found API for that, you should use ProjectManager.deleteProject command.

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/adobe/cq/projects/api/ProjectManager.html

Sample with some additional checks: https://gist.github.com/paulrohrbeck/574a59ad3887705f2f13e0a64f48da68