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

Loggers in ECMA scripts

Avatar

Level 4

Hello Team,

Is writing a Process Step better or writing a ECMA scripts in AEM workflows ?

Further, How can I see the log statements that are written in ECMA scripts in workflows? 

Thanks,

Vish

1 Reply

Avatar

Level 3

It Basically depends on the requirement or the functionality you want to achieve.

1.You can use Java class in bundle if you are implementing the complex logic with various API 's like workflow,node , wcm and others, as we are more familiar in using API's in java class.Will be used normally in Process steps

2. You can use ECMA script if you are doing small logic -like checking the metadata variables of the workitem to perform the appropriate action, like in "OR Step"to determine the flow based on the boolean value passed in ECMA script

You can check ECMA logs in the error log, similar to other logs in AEM

Refer the below Doc for more information.

https://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-extending.html