Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Update Language Copy workflow


Level 1


  I have a custom workflow from which i trigger update_language_copy workflow from my root "en" language to other languages say "fr" if a language copy already exists. once this update_language_copy workflow finishes, the launch is getting created at "fr/xyz" page however, it does not pick "en/xyz" page source to do the launch instead it picks "fr/xyz" page and creates a launch for itself. below is the snippet of code of params im passing:

WorkflowData wfData = wfSession.newWorkflowData("JCR_PATH", "fr/xyz");

  MetaDataMap metadataMap_updateLC = wfData.getMetaDataMap();

  metadataMap_updateLC.put("language", "en"); //master language

  metadataMap_updateLC.put("destinationLanguage", "fr");

  metadataMap_updateLC.put("workflowLaunchTitle","Translation "  + lang);

  Date date = new Date();

  metadataMap_updateLC.put("liveDate", null);

  metadataMap_updateLC.put("deep", false);

  WorkflowModel wfModel = wfSession


  wf = wfSession.startWorkflow(wfModel, wfData);

can someone point what i am missing. I have manually triggered OOB update langauge copy feature and captured the workflow to see what all params its sending and they all match (esp. the payload, language and destinationlanguage)



1 Reply


Level 1

Hi Archie,


did you find solution for this?