how to deploy ecma script on aem cloud | Community
Skip to main content
June 13, 2022

how to deploy ecma script on aem cloud

  • June 13, 2022
  • 3 replies
  • 1547 views

I'm looking for a way to upload or deploy ecma script in aem cloud in order to create custom workflow

Thanks

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

3 replies

SantoshSai
Community Advisor
Community Advisor
June 13, 2022
milind_bachani
Adobe Employee
Adobe Employee
June 13, 2022

Hi @alexborgo ,

 

Here's an article talking about ECMAScript :
https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-workflows/workflows-step-ref.html?lang=en


The article says :

Store your custom scripts in, for example, the /apps/myapp/workflow/scripts folder, or a subfolder.

Then you can simply include the script in your codebase (analogous to including overlays in code).
Add a filter in META-INF/filter.xml to get the mentioned path as part of code deployment.

This strategy should work for AEMaaCS as well older versions.

Thanks,

Milind

sunil_kumar_
Level 5
June 15, 2022

Hi @alexborgo ,
Store ecma script in your project specific filter. There is no fix rule but try to keep under workflow folder as 

/apps/<your-project>/workflow/scripts

You have to make sure this script should has property "jcr:mixinTypes" and it's one of the value should be "mix:title". You can have other values to. 
Add a filter in META-INF/filter.xml as per your code. 
Make sure you don't over write this location by Repository Initialization (repoinit) config. Generally, code location not overwritten by repo init config. But as you are using aem cloud, just make sure you don't over write this.