Update Language Copy workflow | Community
Skip to main content
November 10, 2017

Update Language Copy workflow

  • November 10, 2017
  • 1 reply
  • 1308 views

Hi,

  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

  .getModel("/etc/workflow/models/wcm-translation/update_language_copy/jcr:content/model");

  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)

Thanks

Archie

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

sreevachanad970
June 16, 2022

Hi Archie,

 

did you find solution for this?