Loggers in ECMA scripts | Community
Skip to main content
Level 4
April 19, 2016

Loggers in ECMA scripts

  • April 19, 2016
  • 1 reply
  • 2302 views

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

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

1 reply

mkumar
Level 3
April 20, 2016

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